rollup 2.16.1 → 2.18.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 +51 -0
- package/dist/bin/rollup +10 -10
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +16042 -15986
- package/dist/es/shared/watch.js +5 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.d.ts +15 -3
- package/dist/rollup.js +6 -6
- package/dist/shared/index.js +9 -9
- package/dist/shared/loadConfigFile.js +32 -19
- package/dist/shared/mergeOptions.js +14 -11
- package/dist/shared/rollup.js +16051 -15995
- package/dist/shared/watch-cli.js +8 -8
- package/dist/shared/watch.js +4 -4
- package/package.json +7 -5
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.18.1
|
|
4
|
+
Fri, 26 Jun 2020 19:42:28 GMT - commit 1aeb23b23ef1aafe2edcbfd5c4062dd97186f700
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
13
|
var cli = require('../bin/rollup');
|
|
14
|
-
var
|
|
14
|
+
var rollup = require('./rollup.js');
|
|
15
15
|
require('path');
|
|
16
16
|
require('util');
|
|
17
17
|
require('./mergeOptions.js');
|
|
@@ -72,7 +72,7 @@ var dateTime_1 = dateTime;
|
|
|
72
72
|
var _default = dateTime;
|
|
73
73
|
dateTime_1.default = _default;
|
|
74
74
|
|
|
75
|
-
var signals =
|
|
75
|
+
var signals = rollup.createCommonjsModule(function (module) {
|
|
76
76
|
// This is not the set of all possible signals.
|
|
77
77
|
//
|
|
78
78
|
// It IS, however, the set of all signals that trigger
|
|
@@ -379,7 +379,7 @@ async function watch(command) {
|
|
|
379
379
|
const resetScreen = getResetScreen(configs, isTTY);
|
|
380
380
|
function start(configs) {
|
|
381
381
|
try {
|
|
382
|
-
watcher =
|
|
382
|
+
watcher = rollup.watch(configs);
|
|
383
383
|
}
|
|
384
384
|
catch (err) {
|
|
385
385
|
return loadConfigFile_js.handleError(err);
|
|
@@ -392,7 +392,7 @@ async function watch(command) {
|
|
|
392
392
|
break;
|
|
393
393
|
case 'START':
|
|
394
394
|
if (!silent) {
|
|
395
|
-
resetScreen(loadConfigFile_js.colorette.underline(`rollup v${
|
|
395
|
+
resetScreen(loadConfigFile_js.colorette.underline(`rollup v${rollup.version}`));
|
|
396
396
|
}
|
|
397
397
|
break;
|
|
398
398
|
case 'BUNDLE_START':
|
|
@@ -405,13 +405,13 @@ async function watch(command) {
|
|
|
405
405
|
.map(key => input[key])
|
|
406
406
|
.join(', ');
|
|
407
407
|
}
|
|
408
|
-
loadConfigFile_js.stderr(loadConfigFile_js.colorette.cyan(`bundles ${loadConfigFile_js.colorette.bold(input)} → ${loadConfigFile_js.colorette.bold(event.output.map(
|
|
408
|
+
loadConfigFile_js.stderr(loadConfigFile_js.colorette.cyan(`bundles ${loadConfigFile_js.colorette.bold(input)} → ${loadConfigFile_js.colorette.bold(event.output.map(rollup.relativeId).join(', '))}...`));
|
|
409
409
|
}
|
|
410
410
|
break;
|
|
411
411
|
case 'BUNDLE_END':
|
|
412
412
|
warnings.flush();
|
|
413
413
|
if (!silent)
|
|
414
|
-
loadConfigFile_js.stderr(loadConfigFile_js.colorette.green(`created ${loadConfigFile_js.colorette.bold(event.output.map(
|
|
414
|
+
loadConfigFile_js.stderr(loadConfigFile_js.colorette.green(`created ${loadConfigFile_js.colorette.bold(event.output.map(rollup.relativeId).join(', '))} in ${loadConfigFile_js.colorette.bold(cli.prettyMs(event.duration))}`));
|
|
415
415
|
if (event.result && event.result.getTimings) {
|
|
416
416
|
cli.printTimings(event.result.getTimings());
|
|
417
417
|
}
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.18.1
|
|
4
|
+
Fri, 26 Jun 2020 19:42:28 GMT - commit 1aeb23b23ef1aafe2edcbfd5c4062dd97186f700
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var rollup = require('./rollup.js');
|
|
14
14
|
var path = require('path');
|
|
15
15
|
var util = require('util');
|
|
16
16
|
var mergeOptions = require('./mergeOptions.js');
|
|
@@ -712,7 +712,7 @@ class Task {
|
|
|
712
712
|
output: this.outputFiles
|
|
713
713
|
});
|
|
714
714
|
try {
|
|
715
|
-
const result = await
|
|
715
|
+
const result = await rollup.rollupInternal(options, this.watcher.emitter);
|
|
716
716
|
if (this.closed) {
|
|
717
717
|
return;
|
|
718
718
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.1",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"pretty-ms": "^7.0.0",
|
|
111
111
|
"require-relative": "^0.8.7",
|
|
112
112
|
"requirejs": "^2.3.6",
|
|
113
|
-
"rollup": "^2.
|
|
113
|
+
"rollup": "^2.18.0",
|
|
114
114
|
"rollup-plugin-license": "^2.1.0",
|
|
115
115
|
"rollup-plugin-string": "^3.0.0",
|
|
116
116
|
"rollup-plugin-terser": "^6.1.0",
|
|
@@ -141,9 +141,11 @@
|
|
|
141
141
|
},
|
|
142
142
|
"exports": {
|
|
143
143
|
".": {
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
"node": {
|
|
145
|
+
"require": "./dist/rollup.js",
|
|
146
|
+
"import": "./dist/es/rollup.js"
|
|
147
|
+
},
|
|
148
|
+
"default": "./dist/es/rollup.browser.js"
|
|
147
149
|
},
|
|
148
150
|
"./dist/": "./dist/"
|
|
149
151
|
}
|