rollup 3.24.1 → 3.25.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/dist/bin/rollup +14 -14
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +653 -513
- 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 +21850 -21664
- package/dist/shared/watch-cli.js +6 -6
- package/dist/shared/watch-proxy.js +4 -4
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
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.1
|
|
4
|
+
Mon, 12 Jun 2023 04:38:12 GMT - commit b1341bf9cd719670a670905e0308418b37621d70
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v3.
|
|
4
|
-
|
|
3
|
+
Rollup.js v3.25.1
|
|
4
|
+
Mon, 12 Jun 2023 04:38:12 GMT - commit b1341bf9cd719670a670905e0308418b37621d70
|
|
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