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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.24.1
4
- Sat, 10 Jun 2023 04:40:07 GMT - commit be39a579ac40a1f97d1b8e491aade0cd8717d22b
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.24.1
4
- Sat, 10 Jun 2023 04:40:07 GMT - commit be39a579ac40a1f97d1b8e491aade0cd8717d22b
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.errorInvalidOption('watch', rollup.URL_WATCH, 'there must be at least one config where "watch" is not set to "false"'));
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'));
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.24.1
4
- Sat, 10 Jun 2023 04:40:07 GMT - commit be39a579ac40a1f97d1b8e491aade0cd8717d22b
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "3.24.1",
3
+ "version": "3.25.1",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",