rollup 0.43.1 → 0.45.2
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 +19 -0
- package/LICENSE.md +1 -1
- package/bin/rollup +16 -9
- package/dist/rollup.browser.js +264 -169
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.es.js +264 -169
- package/dist/rollup.es.js.map +1 -1
- package/dist/rollup.js +264 -169
- package/dist/rollup.js.map +1 -1
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 0.45.2
|
|
4
|
+
|
|
5
|
+
* Fix interop when import is a string ([#1486](https://github.com/rollup/rollup/issues/1486))
|
|
6
|
+
* Separate `resolvedIds` from `resolvedExternalIds` ([#1490](https://github.com/rollup/rollup/pull/1490))
|
|
7
|
+
* Add `--extend` flag to CLI ([#1482](https://github.com/rollup/rollup/pull/1482))
|
|
8
|
+
|
|
9
|
+
## 0.45.1
|
|
10
|
+
|
|
11
|
+
* Remove `weak` from `optionalDependencies` ([#1483](https://github.com/rollup/rollup/issues/1483))
|
|
12
|
+
|
|
13
|
+
## 0.45.0
|
|
14
|
+
|
|
15
|
+
* [BREAKING] `bundle.generate(...)` returns a Promise, so that `transformBundle` plugin hooks can be asynchronous ([#1474](https://github.com/rollup/rollup/issues/1474))
|
|
16
|
+
|
|
17
|
+
## 0.44.0
|
|
18
|
+
|
|
19
|
+
* [BREAKING] Don't extend existing globals, unless `options.extend` is true ([#827](https://github.com/rollup/rollup/issues/827))
|
|
20
|
+
* Fix handling of catch clause parameters ([#1462](https://github.com/rollup/rollup/issues/1462))
|
|
21
|
+
|
|
3
22
|
## 0.43.1
|
|
4
23
|
|
|
5
24
|
* Fix memory leak on incremental rebuilds ([#883](https://github.com/rollup/rollup/issues/883))
|
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2017 [these people](https://github.com/rollup/rollup/graphs/contributors)
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
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.
|
|
250
|
+
var version = "0.45.2";
|
|
251
251
|
|
|
252
252
|
var modules = {};
|
|
253
253
|
|
|
@@ -661,9 +661,11 @@ function runRollup ( command ) {
|
|
|
661
661
|
onwarn: handleWarning
|
|
662
662
|
})
|
|
663
663
|
.then( function (bundle) {
|
|
664
|
-
|
|
664
|
+
return bundle.generate({
|
|
665
665
|
format: 'cjs'
|
|
666
666
|
});
|
|
667
|
+
})
|
|
668
|
+
.then( function (ref) {
|
|
667
669
|
var code = ref.code;
|
|
668
670
|
|
|
669
671
|
if ( command.watch ) { process.env.ROLLUP_WATCH = 'true'; }
|
|
@@ -749,6 +751,10 @@ function execute ( options, command ) {
|
|
|
749
751
|
external = ( optionsExternal || [] ).concat( commandExternal );
|
|
750
752
|
}
|
|
751
753
|
|
|
754
|
+
if (typeof command.extend !== 'undefined') {
|
|
755
|
+
options.extend = command.extend;
|
|
756
|
+
}
|
|
757
|
+
|
|
752
758
|
if ( command.silent ) {
|
|
753
759
|
options.onwarn = function () {};
|
|
754
760
|
}
|
|
@@ -859,15 +865,16 @@ function bundle ( options ) {
|
|
|
859
865
|
});
|
|
860
866
|
}
|
|
861
867
|
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
868
|
+
return bundle.generate(options).then( function (ref) {
|
|
869
|
+
var code = ref.code;
|
|
870
|
+
var map = ref.map;
|
|
865
871
|
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
872
|
+
if ( options.sourceMap === 'inline' ) {
|
|
873
|
+
code += "\n//# " + SOURCEMAPPING_URL$1 + "=" + (map.toUrl()) + "\n";
|
|
874
|
+
}
|
|
869
875
|
|
|
870
|
-
|
|
876
|
+
process.stdout.write( code );
|
|
877
|
+
});
|
|
871
878
|
})
|
|
872
879
|
.catch( handleError );
|
|
873
880
|
}
|