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 +5 -0
- package/bin/rollup +1 -1
- package/dist/rollup.browser.js +17 -9
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.es.js +17 -9
- package/dist/rollup.es.js.map +1 -1
- package/dist/rollup.js +17 -9
- package/dist/rollup.js.map +1 -1
- package/package.json +1 -1
package/dist/rollup.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rollup.js v0.41.
|
|
3
|
-
|
|
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
|
|
@@ -5992,12 +5992,14 @@ function callHasEffects ( scope, callee, isNew ) {
|
|
|
5992
5992
|
}
|
|
5993
5993
|
}
|
|
5994
5994
|
|
|
5995
|
-
else {
|
|
5996
|
-
if ( !node.gatherPossibleValues ) {
|
|
5997
|
-
throw new Error( 'TODO' );
|
|
5998
|
-
}
|
|
5995
|
+
else if ( node.gatherPossibleValues ) {
|
|
5999
5996
|
node.gatherPossibleValues( values );
|
|
6000
5997
|
}
|
|
5998
|
+
|
|
5999
|
+
else {
|
|
6000
|
+
// probably an error in the user's code — err on side of caution
|
|
6001
|
+
return true;
|
|
6002
|
+
}
|
|
6001
6003
|
}
|
|
6002
6004
|
|
|
6003
6005
|
return false;
|
|
@@ -8103,6 +8105,12 @@ Module.prototype.trace = function trace ( name ) {
|
|
|
8103
8105
|
Module.prototype.traceExport = function traceExport ( name ) {
|
|
8104
8106
|
var this$1 = this;
|
|
8105
8107
|
|
|
8108
|
+
// export * from 'external'
|
|
8109
|
+
if ( name[0] === '*' ) {
|
|
8110
|
+
var module = this.bundle.moduleById.get( name.slice( 1 ) );
|
|
8111
|
+
return module.traceExport( '*' );
|
|
8112
|
+
}
|
|
8113
|
+
|
|
8106
8114
|
// export { foo } from './other.js'
|
|
8107
8115
|
var reexportDeclaration = this.reexports[ name ];
|
|
8108
8116
|
if ( reexportDeclaration ) {
|
|
@@ -8130,8 +8138,8 @@ Module.prototype.traceExport = function traceExport ( name ) {
|
|
|
8130
8138
|
if ( name === 'default' ) return;
|
|
8131
8139
|
|
|
8132
8140
|
for ( var i = 0; i < this.exportAllModules.length; i += 1 ) {
|
|
8133
|
-
var module = this$1.exportAllModules[i];
|
|
8134
|
-
var declaration$2 = module.traceExport( name );
|
|
8141
|
+
var module$1 = this$1.exportAllModules[i];
|
|
8142
|
+
var declaration$2 = module$1.traceExport( name );
|
|
8135
8143
|
|
|
8136
8144
|
if ( declaration$2 ) return declaration$2;
|
|
8137
8145
|
}
|
|
@@ -9809,7 +9817,7 @@ Bundle$$1.prototype.warn = function warn ( warning ) {
|
|
|
9809
9817
|
this.onwarn( warning );
|
|
9810
9818
|
};
|
|
9811
9819
|
|
|
9812
|
-
var VERSION = '0.41.
|
|
9820
|
+
var VERSION = '0.41.4';
|
|
9813
9821
|
|
|
9814
9822
|
var ALLOWED_KEYS = [
|
|
9815
9823
|
'acorn',
|