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/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*
2
- Rollup.js v0.41.3
3
- Fri Jan 13 2017 19:56:39 GMT-0500 (EST) - commit 4bbf9fd27227b8c1124dda2b8c5fec4455b34e5a
2
+ Rollup.js v0.41.4
3
+ Sat Jan 14 2017 15:42:04 GMT-0500 (EST) - commit 80da8ecf3e377820a5fc7ca6fcff8a273339614c
4
4
 
5
5
 
6
6
  https://github.com/rollup/rollup
@@ -5995,12 +5995,14 @@ function callHasEffects ( scope, callee, isNew ) {
5995
5995
  }
5996
5996
  }
5997
5997
 
5998
- else {
5999
- if ( !node.gatherPossibleValues ) {
6000
- throw new Error( 'TODO' );
6001
- }
5998
+ else if ( node.gatherPossibleValues ) {
6002
5999
  node.gatherPossibleValues( values );
6003
6000
  }
6001
+
6002
+ else {
6003
+ // probably an error in the user's code — err on side of caution
6004
+ return true;
6005
+ }
6004
6006
  }
6005
6007
 
6006
6008
  return false;
@@ -8106,6 +8108,12 @@ Module.prototype.trace = function trace ( name ) {
8106
8108
  Module.prototype.traceExport = function traceExport ( name ) {
8107
8109
  var this$1 = this;
8108
8110
 
8111
+ // export * from 'external'
8112
+ if ( name[0] === '*' ) {
8113
+ var module = this.bundle.moduleById.get( name.slice( 1 ) );
8114
+ return module.traceExport( '*' );
8115
+ }
8116
+
8109
8117
  // export { foo } from './other.js'
8110
8118
  var reexportDeclaration = this.reexports[ name ];
8111
8119
  if ( reexportDeclaration ) {
@@ -8133,8 +8141,8 @@ Module.prototype.traceExport = function traceExport ( name ) {
8133
8141
  if ( name === 'default' ) return;
8134
8142
 
8135
8143
  for ( var i = 0; i < this.exportAllModules.length; i += 1 ) {
8136
- var module = this$1.exportAllModules[i];
8137
- var declaration$2 = module.traceExport( name );
8144
+ var module$1 = this$1.exportAllModules[i];
8145
+ var declaration$2 = module$1.traceExport( name );
8138
8146
 
8139
8147
  if ( declaration$2 ) return declaration$2;
8140
8148
  }
@@ -9812,7 +9820,7 @@ Bundle$$1.prototype.warn = function warn ( warning ) {
9812
9820
  this.onwarn( warning );
9813
9821
  };
9814
9822
 
9815
- var VERSION = '0.41.3';
9823
+ var VERSION = '0.41.4';
9816
9824
 
9817
9825
  var ALLOWED_KEYS = [
9818
9826
  'acorn',