rollup-preset-isomorphic
v1.1.0-1
Published
Everything you need to rollup isomorphic modules.
Downloads
12
Maintainers
Readme
rollup-preset-isomorphic
Everything you need to rollup isomorphic modules, in the proper order, with sane defaults.
Install
$ npm install --save-dev rollup rollup-preset-isomorphic
Usage
// rollup.config.js
import isomorphic from 'rollup-preset-isomorphic';
export default {
plugins: [
...isomorphic(),
// other plugins
]
};
$ rollup src/client/index.js -o src/client/bundle.js -mc
API
node([options]): Array<object>
options
{Object}
multiEntry
{Object|Boolean}
- Options forrollup-plugin-multi-entry
, orfalse
to disable.commonjs
{Object|Boolean}
- Options forrollup-plugin-commonjs
, orfalse
to disable.globals
{Object|Boolean}
- Options forrollup-plugin-node-globals
, orfalse
to disable.resolve
{Object|Boolean}
- Options forrollup-plugin-node-resolve
, orfalse
to disable.builtins
{Object|Boolean}
- Options forrollup-plugin-node-builtins
, orfalse
to disable.
MIT © Shannon Moeller