rollup 3.9.0 → 3.10.0
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/LICENSE.md +46 -29
- package/dist/bin/rollup +5 -5
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/rollup.js +434 -343
- package/dist/es/shared/watch.js +27 -15
- package/dist/loadConfigFile.js +3 -3
- package/dist/rollup.d.ts +4 -0
- package/dist/rollup.js +3 -3
- package/dist/shared/index.js +25 -13
- package/dist/shared/loadConfigFile.js +5 -5
- package/dist/shared/rollup.js +445 -355
- package/dist/shared/watch-cli.js +20 -12
- package/dist/shared/watch.js +3 -3
- package/package.json +36 -35
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.10.0
|
|
4
|
+
Thu, 12 Jan 2023 07:56:20 GMT - commit ffc19b0091267d9bf5072b16969599e457a63f5c
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const promises = require('node:fs/promises');
|
|
15
15
|
const process$2 = require('node:process');
|
|
16
16
|
const index = require('./index.js');
|
|
17
17
|
const cli = require('../bin/rollup');
|
|
@@ -70,14 +70,22 @@ function dateTime(options = {}) {
|
|
|
70
70
|
.replace(/\..+/, end);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var signalExitExports = {};
|
|
74
|
+
var signalExit = {
|
|
75
|
+
get exports(){ return signalExitExports; },
|
|
76
|
+
set exports(v){ signalExitExports = v; },
|
|
77
|
+
};
|
|
74
78
|
|
|
75
|
-
var
|
|
79
|
+
var signalsExports = {};
|
|
80
|
+
var signals$1 = {
|
|
81
|
+
get exports(){ return signalsExports; },
|
|
82
|
+
set exports(v){ signalsExports = v; },
|
|
83
|
+
};
|
|
76
84
|
|
|
77
85
|
var hasRequiredSignals;
|
|
78
86
|
|
|
79
87
|
function requireSignals () {
|
|
80
|
-
if (hasRequiredSignals) return
|
|
88
|
+
if (hasRequiredSignals) return signalsExports;
|
|
81
89
|
hasRequiredSignals = 1;
|
|
82
90
|
(function (module) {
|
|
83
91
|
// This is not the set of all possible signals.
|
|
@@ -134,7 +142,7 @@ function requireSignals () {
|
|
|
134
142
|
);
|
|
135
143
|
}
|
|
136
144
|
} (signals$1));
|
|
137
|
-
return
|
|
145
|
+
return signalsExports;
|
|
138
146
|
}
|
|
139
147
|
|
|
140
148
|
// Note: since nyc uses this module to output coverage, any lines
|
|
@@ -233,7 +241,7 @@ if (!processOk(process$1)) {
|
|
|
233
241
|
process$1.reallyExit = originalProcessReallyExit;
|
|
234
242
|
emitter.count -= 1;
|
|
235
243
|
};
|
|
236
|
-
|
|
244
|
+
signalExitExports.unload = unload;
|
|
237
245
|
|
|
238
246
|
var emit = function emit (event, code, signal) {
|
|
239
247
|
/* istanbul ignore if */
|
|
@@ -274,7 +282,7 @@ if (!processOk(process$1)) {
|
|
|
274
282
|
};
|
|
275
283
|
});
|
|
276
284
|
|
|
277
|
-
|
|
285
|
+
signalExitExports.signals = function () {
|
|
278
286
|
return signals
|
|
279
287
|
};
|
|
280
288
|
|
|
@@ -304,7 +312,7 @@ if (!processOk(process$1)) {
|
|
|
304
312
|
process$1.emit = processEmit;
|
|
305
313
|
process$1.reallyExit = processReallyExit;
|
|
306
314
|
};
|
|
307
|
-
|
|
315
|
+
signalExitExports.load = load;
|
|
308
316
|
|
|
309
317
|
var originalProcessReallyExit = process$1.reallyExit;
|
|
310
318
|
var processReallyExit = function processReallyExit (code) {
|
|
@@ -396,7 +404,7 @@ async function watch(command) {
|
|
|
396
404
|
let resetScreen;
|
|
397
405
|
const configFile = command.config ? await cli.getConfigPath(command.config) : null;
|
|
398
406
|
const runWatchHook = createWatchHooks(command);
|
|
399
|
-
|
|
407
|
+
signalExitExports(close);
|
|
400
408
|
process$2.on('uncaughtException', close);
|
|
401
409
|
if (!process$2.stdin.isTTY) {
|
|
402
410
|
process$2.stdin.on('end', close);
|
|
@@ -409,7 +417,7 @@ async function watch(command) {
|
|
|
409
417
|
await reloadConfigFile();
|
|
410
418
|
async function reloadConfigFile() {
|
|
411
419
|
try {
|
|
412
|
-
const newConfigFileData = await
|
|
420
|
+
const newConfigFileData = await promises.readFile(configFile, 'utf8');
|
|
413
421
|
if (newConfigFileData === configFileData) {
|
|
414
422
|
return;
|
|
415
423
|
}
|
package/dist/shared/watch.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.10.0
|
|
4
|
+
Thu, 12 Jan 2023 07:56:20 GMT - commit ffc19b0091267d9bf5072b16969599e457a63f5c
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ const index = require('./index.js');
|
|
|
19
19
|
require('path');
|
|
20
20
|
require('node:perf_hooks');
|
|
21
21
|
require('node:crypto');
|
|
22
|
-
require('node:fs');
|
|
22
|
+
require('node:fs/promises');
|
|
23
23
|
require('node:events');
|
|
24
24
|
require('tty');
|
|
25
25
|
require('fs');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -58,69 +58,70 @@
|
|
|
58
58
|
"fsevents": "~2.3.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@
|
|
62
|
-
"@rollup/plugin-
|
|
63
|
-
"@rollup/plugin-
|
|
64
|
-
"@rollup/plugin-
|
|
65
|
-
"@rollup/plugin-
|
|
66
|
-
"@rollup/plugin-
|
|
67
|
-
"@rollup/plugin-
|
|
68
|
-
"@rollup/
|
|
61
|
+
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
62
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
63
|
+
"@rollup/plugin-buble": "^1.0.1",
|
|
64
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
65
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
66
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
67
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
68
|
+
"@rollup/plugin-terser": "^0.3.0",
|
|
69
|
+
"@rollup/plugin-typescript": "^11.0.0",
|
|
70
|
+
"@rollup/pluginutils": "^5.0.2",
|
|
69
71
|
"@types/estree": "1.0.0",
|
|
70
|
-
"@types/node": "^14.18.
|
|
72
|
+
"@types/node": "^14.18.36",
|
|
71
73
|
"@types/signal-exit": "^3.0.1",
|
|
72
74
|
"@types/yargs-parser": "^21.0.0",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
74
|
-
"@typescript-eslint/parser": "^5.
|
|
75
|
-
"acorn": "^8.8.
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "^5.48.0",
|
|
76
|
+
"@typescript-eslint/parser": "^5.48.0",
|
|
77
|
+
"acorn": "^8.8.1",
|
|
76
78
|
"acorn-import-assertions": "^1.8.0",
|
|
77
79
|
"acorn-jsx": "^5.3.2",
|
|
78
80
|
"acorn-walk": "^8.2.0",
|
|
79
81
|
"buble": "^0.20.0",
|
|
82
|
+
"builtin-modules": "^3.3.0",
|
|
80
83
|
"chokidar": "^3.5.3",
|
|
81
84
|
"colorette": "^2.0.19",
|
|
82
|
-
"concurrently": "^7.
|
|
83
|
-
"core-js": "^3.
|
|
85
|
+
"concurrently": "^7.6.0",
|
|
86
|
+
"core-js": "^3.27.1",
|
|
84
87
|
"date-time": "^4.0.0",
|
|
85
88
|
"es5-shim": "^4.6.7",
|
|
86
|
-
"es6-shim": "^0.35.
|
|
87
|
-
"eslint": "^8.
|
|
88
|
-
"eslint-config-prettier": "^8.
|
|
89
|
+
"es6-shim": "^0.35.7",
|
|
90
|
+
"eslint": "^8.31.0",
|
|
91
|
+
"eslint-config-prettier": "^8.6.0",
|
|
89
92
|
"eslint-plugin-import": "^2.26.0",
|
|
90
93
|
"eslint-plugin-prettier": "^4.2.1",
|
|
91
|
-
"eslint-plugin-unicorn": "^
|
|
92
|
-
"fixturify": "^
|
|
94
|
+
"eslint-plugin-unicorn": "^45.0.2",
|
|
95
|
+
"fixturify": "^3.0.0",
|
|
93
96
|
"flru": "^1.0.2",
|
|
94
|
-
"fs-extra": "^
|
|
97
|
+
"fs-extra": "^11.1.0",
|
|
95
98
|
"github-api": "^3.4.0",
|
|
96
99
|
"hash.js": "^1.1.7",
|
|
97
|
-
"husky": "^8.0.
|
|
98
|
-
"inquirer": "^9.1.
|
|
99
|
-
"is-reference": "^3.0.
|
|
100
|
-
"lint-staged": "^13.0
|
|
100
|
+
"husky": "^8.0.3",
|
|
101
|
+
"inquirer": "^9.1.4",
|
|
102
|
+
"is-reference": "^3.0.1",
|
|
103
|
+
"lint-staged": "^13.1.0",
|
|
101
104
|
"locate-character": "^2.0.5",
|
|
102
|
-
"magic-string": "^0.
|
|
103
|
-
"mocha": "^10.
|
|
105
|
+
"magic-string": "^0.27.0",
|
|
106
|
+
"mocha": "^10.2.0",
|
|
104
107
|
"nyc": "^15.1.0",
|
|
105
|
-
"prettier": "^2.
|
|
108
|
+
"prettier": "^2.8.2",
|
|
106
109
|
"pretty-bytes": "^6.0.0",
|
|
107
110
|
"pretty-ms": "^8.0.0",
|
|
108
111
|
"requirejs": "^2.3.6",
|
|
109
|
-
"rollup": "^
|
|
110
|
-
"rollup-plugin-license": "^
|
|
112
|
+
"rollup": "^3.9.1",
|
|
113
|
+
"rollup-plugin-license": "^3.0.1",
|
|
111
114
|
"rollup-plugin-string": "^3.0.0",
|
|
112
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
113
115
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
114
116
|
"semver": "^7.3.8",
|
|
115
117
|
"shx": "^0.3.4",
|
|
116
118
|
"signal-exit": "^3.0.7",
|
|
117
119
|
"source-map": "^0.7.4",
|
|
118
120
|
"source-map-support": "^0.5.21",
|
|
119
|
-
"sourcemap-codec": "^1.4.8",
|
|
120
121
|
"systemjs": "^6.13.0",
|
|
121
|
-
"terser": "^5.
|
|
122
|
-
"tslib": "^2.4.
|
|
123
|
-
"typescript": "^4.
|
|
122
|
+
"terser": "^5.16.1",
|
|
123
|
+
"tslib": "^2.4.1",
|
|
124
|
+
"typescript": "^4.9.4",
|
|
124
125
|
"weak-napi": "^2.0.2",
|
|
125
126
|
"yargs-parser": "^21.1.1"
|
|
126
127
|
},
|