rollup 3.24.0 → 3.25.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/dist/bin/rollup +14 -14
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +652 -511
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.d.ts +5 -3
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.d.ts +50 -7
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +68 -43
- package/dist/shared/rollup.js +21934 -21747
- package/dist/shared/watch-cli.js +8 -7
- package/dist/shared/watch-proxy.js +4 -4
- package/dist/shared/watch.js +2 -2
- package/package.json +13 -13
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.25.0
|
|
4
|
+
Sun, 11 Jun 2023 05:02:46 GMT - commit 23c111c87145d15b0de032a6c7eeb6596764d1cf
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -408,7 +408,7 @@ function createWatchHooks(command) {
|
|
|
408
408
|
if (watchHooks[hook]) {
|
|
409
409
|
const cmd = watchHooks[hook];
|
|
410
410
|
if (!command.silent) {
|
|
411
|
-
rollup.stderr(rollup.cyan(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
|
|
411
|
+
rollup.stderr(rollup.cyan$1(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
|
|
412
412
|
}
|
|
413
413
|
try {
|
|
414
414
|
// !! important - use stderr for all writes from execSync
|
|
@@ -454,7 +454,7 @@ async function watch(command) {
|
|
|
454
454
|
rollup.stderr(`\nReloading updated config...`);
|
|
455
455
|
}
|
|
456
456
|
configFileData = newConfigFileData;
|
|
457
|
-
const { options, warnings } = await loadConfigFile_js.loadConfigFile(configFile, command);
|
|
457
|
+
const { options, warnings } = await loadConfigFile_js.loadConfigFile(configFile, command, true);
|
|
458
458
|
if (currentConfigFileRevision !== configFileRevision) {
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
@@ -472,7 +472,7 @@ async function watch(command) {
|
|
|
472
472
|
await loadConfigFromFileAndTrack(configFile);
|
|
473
473
|
}
|
|
474
474
|
else {
|
|
475
|
-
const { options, warnings } = await cli.loadConfigFromCommand(command);
|
|
475
|
+
const { options, warnings } = await cli.loadConfigFromCommand(command, true);
|
|
476
476
|
await start(options, warnings);
|
|
477
477
|
}
|
|
478
478
|
async function start(configs, warnings) {
|
|
@@ -503,7 +503,7 @@ async function watch(command) {
|
|
|
503
503
|
? input.join(', ')
|
|
504
504
|
: Object.values(input).join(', ');
|
|
505
505
|
}
|
|
506
|
-
rollup.stderr(rollup.cyan(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(rollup.relativeId).join(', '))}...`));
|
|
506
|
+
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)} → ${rollup.bold(event.output.map(rollup.relativeId).join(', '))}...`));
|
|
507
507
|
}
|
|
508
508
|
runWatchHook('onBundleStart');
|
|
509
509
|
break;
|
|
@@ -538,7 +538,8 @@ async function watch(command) {
|
|
|
538
538
|
await watcher.close();
|
|
539
539
|
if (configWatcher)
|
|
540
540
|
configWatcher.close();
|
|
541
|
-
|
|
541
|
+
if (code)
|
|
542
|
+
process$2.exit(code);
|
|
542
543
|
}
|
|
543
544
|
// return a promise that never resolves to keep the process running
|
|
544
545
|
return new Promise(() => { });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.25.0
|
|
4
|
+
Sun, 11 Jun 2023 05:02:46 GMT - commit 23c111c87145d15b0de032a6c7eeb6596764d1cf
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -73,10 +73,10 @@ function watch(configs) {
|
|
|
73
73
|
return emitter;
|
|
74
74
|
}
|
|
75
75
|
async function watchInternal(configs, emitter) {
|
|
76
|
-
const optionsList = await Promise.all(rollup.ensureArray(configs).map(config => rollup.mergeOptions(config)));
|
|
76
|
+
const optionsList = await Promise.all(rollup.ensureArray(configs).map(config => rollup.mergeOptions(config, true)));
|
|
77
77
|
const watchOptionsList = optionsList.filter(config => config.watch !== false);
|
|
78
78
|
if (watchOptionsList.length === 0) {
|
|
79
|
-
return rollup.error(rollup.
|
|
79
|
+
return rollup.error(rollup.logInvalidOption('watch', rollup.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
|
|
80
80
|
}
|
|
81
81
|
await fseventsImporter.loadFsEvents();
|
|
82
82
|
const { Watcher } = await Promise.resolve().then(() => require('./watch.js'));
|
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@codemirror/commands": "^6.2.4",
|
|
67
|
-
"@codemirror/lang-javascript": "^6.1.
|
|
67
|
+
"@codemirror/lang-javascript": "^6.1.9",
|
|
68
68
|
"@codemirror/language": "^6.7.0",
|
|
69
|
-
"@codemirror/search": "^6.
|
|
69
|
+
"@codemirror/search": "^6.5.0",
|
|
70
70
|
"@codemirror/state": "^6.2.1",
|
|
71
|
-
"@codemirror/view": "^6.
|
|
71
|
+
"@codemirror/view": "^6.13.0",
|
|
72
72
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
73
73
|
"@mermaid-js/mermaid-cli": "^10.1.0",
|
|
74
74
|
"@rollup/plugin-alias": "^5.0.0",
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
"@types/mocha": "^10.0.1",
|
|
85
85
|
"@types/node": "~14.18.48",
|
|
86
86
|
"@types/yargs-parser": "^21.0.0",
|
|
87
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
88
|
-
"@typescript-eslint/parser": "^5.59.
|
|
87
|
+
"@typescript-eslint/eslint-plugin": "^5.59.9",
|
|
88
|
+
"@typescript-eslint/parser": "^5.59.9",
|
|
89
89
|
"@vue/eslint-config-prettier": "^7.1.0",
|
|
90
90
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
91
91
|
"acorn": "^8.8.2",
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"builtin-modules": "^3.3.0",
|
|
97
97
|
"chokidar": "^3.5.3",
|
|
98
98
|
"colorette": "^2.0.20",
|
|
99
|
-
"concurrently": "^8.0
|
|
99
|
+
"concurrently": "^8.1.0",
|
|
100
100
|
"core-js": "^3.30.2",
|
|
101
101
|
"date-time": "^4.0.0",
|
|
102
102
|
"es5-shim": "^4.6.7",
|
|
103
103
|
"es6-shim": "^0.35.8",
|
|
104
|
-
"eslint": "^8.
|
|
104
|
+
"eslint": "^8.42.0",
|
|
105
105
|
"eslint-config-prettier": "^8.8.0",
|
|
106
106
|
"eslint-plugin-import": "^2.27.5",
|
|
107
107
|
"eslint-plugin-prettier": "^4.2.1",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"github-api": "^3.4.0",
|
|
114
114
|
"hash.js": "^1.1.7",
|
|
115
115
|
"husky": "^8.0.3",
|
|
116
|
-
"inquirer": "^9.2.
|
|
116
|
+
"inquirer": "^9.2.7",
|
|
117
117
|
"is-reference": "^3.0.1",
|
|
118
118
|
"lint-staged": "^13.2.2",
|
|
119
119
|
"locate-character": "^2.0.5",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"pretty-bytes": "^6.1.0",
|
|
126
126
|
"pretty-ms": "^8.0.0",
|
|
127
127
|
"requirejs": "^2.3.6",
|
|
128
|
-
"rollup": "^3.23.
|
|
128
|
+
"rollup": "^3.23.1",
|
|
129
129
|
"rollup-plugin-license": "^3.0.1",
|
|
130
130
|
"rollup-plugin-string": "^3.0.0",
|
|
131
131
|
"rollup-plugin-thatworks": "^1.0.4",
|
|
@@ -135,9 +135,9 @@
|
|
|
135
135
|
"source-map": "^0.7.4",
|
|
136
136
|
"source-map-support": "^0.5.21",
|
|
137
137
|
"systemjs": "^6.14.1",
|
|
138
|
-
"terser": "^5.17.
|
|
139
|
-
"tslib": "^2.5.
|
|
140
|
-
"typescript": "^5.
|
|
138
|
+
"terser": "^5.17.7",
|
|
139
|
+
"tslib": "^2.5.3",
|
|
140
|
+
"typescript": "^5.1.3",
|
|
141
141
|
"vitepress": "^1.0.0-beta.1",
|
|
142
142
|
"vue": "^3.3.4",
|
|
143
143
|
"weak-napi": "^2.0.2",
|