From f177eb057c009258adb570cd7382ca34a7a35de7 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 26 May 2015 15:26:52 -0400 Subject: [PATCH] update README --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fdbc700..3a125f8 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,17 @@ rollup.rollup({ // The bundle's starting point 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 - resolvePath: function ( importee, importer ) { + resolvePath: function ( importee, importer, options ) { // return a string or a falsy value - if falsy, - // import is kept external to the bundle. - // Alternative, return a Promise that fulfils - // with a string or falsy value + // import is kept external to the bundle. Alternatively, + // return a Promise that fulfils with a string or falsy + // value. `options` is whatever you passed to `rollup` + // initially } }).then( function ( bundle ) { // generate code and a sourcemap