rollup 0.36.3 → 0.36.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 +4 -0
- package/bin/rollup +1 -1
- package/dist/rollup.browser.js +18 -5
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.es.js +18 -5
- package/dist/rollup.es.js.map +1 -1
- package/dist/rollup.js +18 -5
- package/dist/rollup.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/rollup
CHANGED
|
@@ -257,7 +257,7 @@ var minimist = interopDefault(index);
|
|
|
257
257
|
|
|
258
258
|
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--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";
|
|
259
259
|
|
|
260
|
-
var version = "0.36.
|
|
260
|
+
var version = "0.36.4";
|
|
261
261
|
|
|
262
262
|
var index$1 = createCommonjsModule(function (module) {
|
|
263
263
|
/*
|
package/dist/rollup.browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Rollup.js v0.36.
|
|
3
|
-
|
|
2
|
+
Rollup.js v0.36.4
|
|
3
|
+
Wed Nov 23 2016 09:01:44 GMT-0500 (EST) - commit fca14dbab102a9fa8efc7249287e2145583712ea
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
@@ -5334,7 +5334,7 @@ Parameter.prototype.getName = function getName () {
|
|
|
5334
5334
|
};
|
|
5335
5335
|
|
|
5336
5336
|
var Scope = function Scope ( options ) {
|
|
5337
|
-
options
|
|
5337
|
+
if ( options === void 0 ) options = {};
|
|
5338
5338
|
|
|
5339
5339
|
this.parent = options.parent;
|
|
5340
5340
|
this.isBlockScope = !!options.isBlockScope;
|
|
@@ -5906,7 +5906,9 @@ var CallExpression = (function (Node) {
|
|
|
5906
5906
|
};
|
|
5907
5907
|
|
|
5908
5908
|
CallExpression.prototype.initialise = function initialise ( scope ) {
|
|
5909
|
-
|
|
5909
|
+
if ( isProgramLevel( this ) ) {
|
|
5910
|
+
this.module.bundle.dependentExpressions.push( this );
|
|
5911
|
+
}
|
|
5910
5912
|
Node.prototype.initialise.call( this, scope );
|
|
5911
5913
|
};
|
|
5912
5914
|
|
|
@@ -5917,6 +5919,17 @@ var CallExpression = (function (Node) {
|
|
|
5917
5919
|
return CallExpression;
|
|
5918
5920
|
}(Node$1));
|
|
5919
5921
|
|
|
5922
|
+
function isProgramLevel ( node ) {
|
|
5923
|
+
do {
|
|
5924
|
+
if ( node.type === 'Program' ) {
|
|
5925
|
+
return true;
|
|
5926
|
+
}
|
|
5927
|
+
node = node.parent;
|
|
5928
|
+
} while ( node && !/Function/.test( node.type ) );
|
|
5929
|
+
|
|
5930
|
+
return false;
|
|
5931
|
+
}
|
|
5932
|
+
|
|
5920
5933
|
// TODO is this basically identical to FunctionDeclaration?
|
|
5921
5934
|
var ClassDeclaration = (function (Node) {
|
|
5922
5935
|
function ClassDeclaration () {
|
|
@@ -9156,7 +9169,7 @@ Bundle.prototype.render = function render ( options ) {
|
|
|
9156
9169
|
return ordered;
|
|
9157
9170
|
};
|
|
9158
9171
|
|
|
9159
|
-
var VERSION = '0.36.
|
|
9172
|
+
var VERSION = '0.36.4';
|
|
9160
9173
|
|
|
9161
9174
|
var ALLOWED_KEYS = [
|
|
9162
9175
|
'acorn',
|