rollup 0.43.0 → 0.43.1
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 +9 -1
- package/bin/rollup +6 -3
- package/dist/rollup.browser.js +320 -206
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.es.js +317 -203
- package/dist/rollup.es.js.map +1 -1
- package/dist/rollup.js +317 -203
- package/dist/rollup.js.map +1 -1
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
# rollup changelog
|
|
2
2
|
|
|
3
|
+
## 0.43.1
|
|
4
|
+
|
|
5
|
+
* Fix memory leak on incremental rebuilds ([#883](https://github.com/rollup/rollup/issues/883))
|
|
6
|
+
* Allow `this.warn` and `this.error` to accept a `{line, column}` object as an alternative to a character index ([#1265](https://github.com/rollup/rollup/issues/1265))
|
|
7
|
+
* Print more useful error if entry module is 'external' ([#1264](https://github.com/rollup/rollup/issues/1264))
|
|
8
|
+
* Catch errors in `bundle.generate` options ([#1463](https://github.com/rollup/rollup/pull/1463))
|
|
9
|
+
* Fix magic-string deprecation warning ([#1445](https://github.com/rollup/rollup/pull/1445))
|
|
10
|
+
|
|
3
11
|
## 0.43.0
|
|
4
12
|
|
|
5
13
|
* Allow config files to import JSON ([#1426](https://github.com/rollup/rollup/issues/1426))
|
|
6
14
|
* Allow undefined imports in interop block ([#1341](https://github.com/rollup/rollup/issues/1341))
|
|
7
15
|
* Add `process.env.ROLLUP_WATCH = 'true'` in watch mode ([#1429](https://github.com/rollup/rollup/issues/1429))
|
|
8
|
-
* Add `
|
|
16
|
+
* Add `pureExternalModules` option ([#1352](https://github.com/rollup/rollup/issues/1352))
|
|
9
17
|
* Allow plugins to specify `options.entry` ([#1270](https://github.com/rollup/rollup/issues/1270))
|
|
10
18
|
* Update dependencies
|
|
11
19
|
|
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.43.
|
|
250
|
+
var version = "0.43.1";
|
|
251
251
|
|
|
252
252
|
var modules = {};
|
|
253
253
|
|
|
@@ -557,16 +557,19 @@ var errorSymbol = process.stderr.isTTY ? "🚨 " : "Error: ";
|
|
|
557
557
|
var stderr = console.error.bind( console ); // eslint-disable-line no-console
|
|
558
558
|
|
|
559
559
|
function log ( object, symbol ) {
|
|
560
|
-
var
|
|
560
|
+
var description = object.message || object;
|
|
561
|
+
if (object.name) { description = object.name + ': ' + description; }
|
|
562
|
+
var message = (object.plugin ? ("(" + (object.plugin) + " plugin) " + description) : description) || object;
|
|
561
563
|
|
|
562
564
|
stderr( ("" + symbol + (index$3.bold( message ))) );
|
|
563
565
|
|
|
566
|
+
// TODO should this be "object.url || (object.file && object.loc.file) || object.id"?
|
|
564
567
|
if ( object.url ) {
|
|
565
568
|
stderr( index$3.cyan( object.url ) );
|
|
566
569
|
}
|
|
567
570
|
|
|
568
571
|
if ( object.loc ) {
|
|
569
|
-
stderr( ((relativeId( object.loc.file )) + " (" + (object.loc.line) + ":" + (object.loc.column) + ")") );
|
|
572
|
+
stderr( ((relativeId( object.loc.file || object.id )) + " (" + (object.loc.line) + ":" + (object.loc.column) + ")") );
|
|
570
573
|
} else if ( object.id ) {
|
|
571
574
|
stderr( relativeId( object.id ) );
|
|
572
575
|
}
|