rollup 4.11.0 → 4.12.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 +9 -3
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +993 -167
- package/dist/es/shared/parseAst.js +83 -43
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +3 -3
- package/dist/parseAst.js +2 -2
- package/dist/rollup.d.ts +13 -4
- package/dist/rollup.js +3 -3
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +100 -42
- package/dist/shared/rollup.js +1014 -188
- package/dist/shared/watch-cli.js +3 -3
- package/dist/shared/watch.js +2 -2
- package/package.json +38 -38
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.12.1
|
|
5
|
+
Wed, 06 Mar 2024 06:02:59 GMT - commit f44dac3170a671b0978afa3af43818617904f544
|
|
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) {
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED