|
@ -95,12 +95,17 @@ rollup.rollup({ |
|
|
// The bundle's starting point |
|
|
// The bundle's starting point |
|
|
entry: 'app.js', |
|
|
entry: 'app.js', |
|
|
|
|
|
|
|
|
|
|
|
// Any external modules you don't want to include |
|
|
|
|
|
// in the bundle (includes node built-ins) |
|
|
|
|
|
external: [ 'path', 'fs', 'some-other-lib' ], |
|
|
|
|
|
|
|
|
// Override the default path resolution |
|
|
// Override the default path resolution |
|
|
resolvePath: function ( importee, importer ) { |
|
|
resolvePath: function ( importee, importer, options ) { |
|
|
// return a string or a falsy value - if falsy, |
|
|
// return a string or a falsy value - if falsy, |
|
|
// import is kept external to the bundle. |
|
|
// import is kept external to the bundle. Alternatively, |
|
|
// Alternative, return a Promise that fulfils |
|
|
// return a Promise that fulfils with a string or falsy |
|
|
// with a string or falsy value |
|
|
// value. `options` is whatever you passed to `rollup` |
|
|
|
|
|
// initially |
|
|
} |
|
|
} |
|
|
}).then( function ( bundle ) { |
|
|
}).then( function ( bundle ) { |
|
|
// generate code and a sourcemap |
|
|
// generate code and a sourcemap |
|
|