rollup 0.41.3 → 0.41.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # rollup changelog
2
2
 
3
+ ## 0.41.4
4
+
5
+ * Fix cases of multiple `export * from 'external'` declarations ([#1252](https://github.com/rollup/rollup/issues/1252))
6
+ * Fix 'TODO' error message ([#1257](https://github.com/rollup/rollup/issues/1257))
7
+
3
8
  ## 0.41.3
4
9
 
5
10
  * Don't treat `this.foo` as possible namespace ([#1258](https://github.com/rollup/rollup/issues/1258))
package/bin/rollup CHANGED
@@ -247,7 +247,7 @@ function isNumber (x) {
247
247
 
248
248
  var help = "rollup version __VERSION__\n=====================================\n\nUsage: rollup [options] <entry file>\n\nBasic options:\n\n-v, --version Show version number\n-h, --help Show this help message\n-c, --config Use this config file (if argument is used but value\n is unspecified, defaults to rollup.config.js)\n-w, --watch Watch files in bundle and rebuild on changes\n-i, --input Input (alternative to <entry file>)\n-o, --output <output> Output (if absent, prints to stdout)\n-f, --format [es] Type of output (amd, cjs, es, iife, umd)\n-e, --external Comma-separate list of module IDs to exclude\n-g, --globals Comma-separate list of `module ID:Global` pairs\n Any module IDs defined here are added to external\n-n, --name Name for UMD export\n-u, --id ID for AMD module (default is anonymous)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n--no-strict Don't emit a `\"use strict\";` in the generated modules.\n--no-indent Don't indent result\n--environment <values> Settings passed to config file (see example)\n--no-conflict Generate a noConflict method for UMD globals\n--silent Don't print warnings\n--intro Content to insert at top of bundle (inside wrapper)\n--outro Content to insert at end of bundle (inside wrapper)\n--banner Content to insert at top of bundle (outside wrapper)\n--footer Content to insert at end of bundle (outside wrapper)\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --output=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://github.com/rollup/rollup/wiki\n";
249
249
 
250
- var version = "0.41.3";
250
+ var version = "0.41.4";
251
251
 
252
252
  var path$1 = path__default;
253
253
  var Module = module$1;
@@ -1,6 +1,6 @@
1
1
  /*
2
- Rollup.js v0.41.3
3
- Fri Jan 13 2017 19:56:49 GMT-0500 (EST) - commit 4bbf9fd27227b8c1124dda2b8c5fec4455b34e5a
2
+ Rollup.js v0.41.4
3
+ Sat Jan 14 2017 15:42:17 GMT-0500 (EST) - commit 80da8ecf3e377820a5fc7ca6fcff8a273339614c
4
4
 
5
5
 
6
6
  https://github.com/rollup/rollup
@@ -6047,12 +6047,14 @@ function callHasEffects ( scope, callee, isNew ) {
6047
6047
  }
6048
6048
  }
6049
6049
 
6050
- else {
6051
- if ( !node.gatherPossibleValues ) {
6052
- throw new Error( 'TODO' );
6053
- }
6050
+ else if ( node.gatherPossibleValues ) {
6054
6051
  node.gatherPossibleValues( values );
6055
6052
  }
6053
+
6054
+ else {
6055
+ // probably an error in the user's code — err on side of caution
6056
+ return true;
6057
+ }
6056
6058
  }
6057
6059
 
6058
6060
  return false;
@@ -8158,6 +8160,12 @@ Module.prototype.trace = function trace ( name ) {
8158
8160
  Module.prototype.traceExport = function traceExport ( name ) {
8159
8161
  var this$1 = this;
8160
8162
 
8163
+ // export * from 'external'
8164
+ if ( name[0] === '*' ) {
8165
+ var module = this.bundle.moduleById.get( name.slice( 1 ) );
8166
+ return module.traceExport( '*' );
8167
+ }
8168
+
8161
8169
  // export { foo } from './other.js'
8162
8170
  var reexportDeclaration = this.reexports[ name ];
8163
8171
  if ( reexportDeclaration ) {
@@ -8185,8 +8193,8 @@ Module.prototype.traceExport = function traceExport ( name ) {
8185
8193
  if ( name === 'default' ) return;
8186
8194
 
8187
8195
  for ( var i = 0; i < this.exportAllModules.length; i += 1 ) {
8188
- var module = this$1.exportAllModules[i];
8189
- var declaration$2 = module.traceExport( name );
8196
+ var module$1 = this$1.exportAllModules[i];
8197
+ var declaration$2 = module$1.traceExport( name );
8190
8198
 
8191
8199
  if ( declaration$2 ) return declaration$2;
8192
8200
  }
@@ -9864,7 +9872,7 @@ Bundle$$1.prototype.warn = function warn ( warning ) {
9864
9872
  this.onwarn( warning );
9865
9873
  };
9866
9874
 
9867
- var VERSION = '0.41.3';
9875
+ var VERSION = '0.41.4';
9868
9876
 
9869
9877
  var ALLOWED_KEYS = [
9870
9878
  'acorn',