Comparing version 0.15.0 to 0.15.1
@@ -79,3 +79,3 @@ 'use strict'; | ||
if (format === 'umd') { | ||
if (format === 'umd' || options.resolve) { | ||
plugins.push(require('rollup-plugin-node-resolve')({ | ||
@@ -82,0 +82,0 @@ skip: options.skip, |
@@ -26,3 +26,3 @@ 'use strict'; | ||
cli.option('config, c', 'Path to config file', 'bili.config.js').option('watch, w', 'Run in watch mode').option('name, n', 'The filename of output file, no extension').option('out-dir, d', 'The output directory', 'dist').option('format', 'Bundle format, array of string', 'cjs').option('module-name', 'The module name for UMD builds').option('map', 'Generate sourcemap, boolean or `inline`', false).option('compress', 'Generate a UMD bundle and compress it with sourcemaps').option('skip', 'Exclude specfic modules in node_modules dir from bundled file').option('es-module', 'Respect `jsnext:main` and `module` field in package.json', true).option('browser', 'Respect `browser` field in package.json', false).option('alias', 'Set option for rollup-plugin-alias').option('replace', 'Set option for rollup-plugin-replace').option('flow', 'Remove flow type annotations', false).option('exports', 'Specific what export mode to use, `default` or `named`'); | ||
cli.option('config, c', 'Path to config file', 'bili.config.js').option('watch, w', 'Run in watch mode').option('name, n', 'The filename of output file, no extension').option('out-dir, d', 'The output directory', 'dist').option('format', 'Bundle format, array of string', 'cjs').option('module-name', 'The module name for UMD builds').option('map', 'Generate sourcemap, boolean or `inline`', false).option('compress', 'Generate a UMD bundle and compress it with sourcemaps').option('skip', 'Exclude specfic modules in node_modules dir from bundled file').option('es-module', 'Respect `jsnext:main` and `module` field in package.json', true).option('browser', 'Respect `browser` field in package.json', false).option('alias', 'Set option for rollup-plugin-alias').option('replace', 'Set option for rollup-plugin-replace').option('flow', 'Remove flow type annotations', false).option('exports', 'Specific what export mode to use, `default` or `named`').option('resolve', 'Resolve external dependencies', false); | ||
@@ -29,0 +29,0 @@ cli.command('*', 'Bundle with bili', function (input, flags) { |
{ | ||
"name": "bili", | ||
"version": "0.15.0", | ||
"version": "0.15.1", | ||
"description": "Transpile ESnext code with Rollup and Buble.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
17661