rollup 4.11.0 → 4.12.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.11.0
5
- Thu, 15 Feb 2024 06:09:01 GMT - commit 90ad652b745c5fe7167d92b4ad671cc387577a99
4
+ Rollup.js v4.12.0
5
+ Fri, 16 Feb 2024 13:31:42 GMT - commit 0146b84be33a8416b4df4b9382549a7ca19dd64a
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -23,8 +23,8 @@ const promises = require('node:fs/promises');
23
23
  const node_path = require('node:path');
24
24
  const loadConfigFile_js = require('../shared/loadConfigFile.js');
25
25
  require('tty');
26
- require('node:perf_hooks');
27
26
  require('../native.js');
27
+ require('node:perf_hooks');
28
28
  require('node:url');
29
29
  require('../getLogFilter.js');
30
30
 
@@ -1699,6 +1699,12 @@ async function runRollup(command) {
1699
1699
  const { options, warnings } = await getConfigs(command);
1700
1700
  try {
1701
1701
  for (const inputOptions of options) {
1702
+ if (!inputOptions.cache) {
1703
+ // We explicitly disable the cache when unused as the CLI will not
1704
+ // use the cache object on the bundle when not in watch mode. This
1705
+ // improves performance as the cache is not generated.
1706
+ inputOptions.cache = false;
1707
+ }
1702
1708
  await build(inputOptions, warnings, command.silent);
1703
1709
  }
1704
1710
  if (command.failAfterWarnings && warnings.warningOccurred) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.11.0
4
- Thu, 15 Feb 2024 06:09:01 GMT - commit 90ad652b745c5fe7167d92b4ad671cc387577a99
3
+ Rollup.js v4.12.0
4
+ Fri, 16 Feb 2024 13:31:42 GMT - commit 0146b84be33a8416b4df4b9382549a7ca19dd64a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.11.0
4
- Thu, 15 Feb 2024 06:09:01 GMT - commit 90ad652b745c5fe7167d92b4ad671cc387577a99
3
+ Rollup.js v4.12.0
4
+ Fri, 16 Feb 2024 13:31:42 GMT - commit 0146b84be33a8416b4df4b9382549a7ca19dd64a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.11.0
4
- Thu, 15 Feb 2024 06:09:01 GMT - commit 90ad652b745c5fe7167d92b4ad671cc387577a99
3
+ Rollup.js v4.12.0
4
+ Fri, 16 Feb 2024 13:31:42 GMT - commit 0146b84be33a8416b4df4b9382549a7ca19dd64a
5
5
 
6
6
  https://github.com/rollup/rollup
7
7