importbuiltinsfrom'rollup-plugin-node-builtins';rollup({entry:'main.js',plugins:[builtins()]}) and now if main contains this, it should just work importEventEmitterfrom'events';import{inherits}from'util';// etc Config for something more complicated like http ...
import builtins from 'rollup-plugin-node-builtins'; rollup({ entry: 'main.js', plugins: [ builtins() ] }) and now if main contains this, it should just work import EventEmitter from 'events'; import {inherits} from 'util'; // etc Config for something more complicated like http impor...
calvinmetcalf / rollup-plugin-node-builtins Public Notifications Fork 40 Star 138 Commit Permalink Compatibility fixes (#26) Browse files master (#26) v2.1.2 v2.1.1 caseyWebb authored and calvinmetcalf committed May 3, 2017 Unverified 1 parent c4f3346 commit 963066b S...
Set the `builtins` option to `false` if you'd like to use some shims/polyfills for those. You'll most certainly need [an other plugin](https://github.com/ionic-team/rollup-plugin-node-polyfills) for this. Set the `builtins` option to `false` if you'd like to use some shims/...
github-url-to-object has a browser field for the url node package, but it's ignored unless preferBuiltins:true is also set. I don't understand why preferBuiltins is even an option, it should just behave like node/browserify/webpack and g...