rollup 4.48.1 → 4.49.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 +2 -2
- 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 +3 -3
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- 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 +15 -3
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +3 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +21 -21
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.49.0
|
|
5
|
+
Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.49.0
|
|
4
|
+
Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.
|
|
30
|
+
var version = "4.49.0";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.49.0
|
|
4
|
+
Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -496,13 +496,25 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
|
496
496
|
const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
|
|
497
497
|
const warnings = batchWarnings(commandOptions);
|
|
498
498
|
const inputOptions = {
|
|
499
|
-
external
|
|
499
|
+
// Do *not* specify external callback here - instead, perform the externality check it via fallback-plugin just below this comment.
|
|
500
|
+
// This allows config plugin to first decide whether some import is external or not, and only then trigger the check in fallback-plugin.
|
|
501
|
+
// Since the check is ultra-simple during this stage of transforming the config file itself, it should be fallback instead of primary check.
|
|
502
|
+
// That way, e.g. importing workspace packages will work as expected - the workspace package will be bundled.
|
|
500
503
|
input: fileName,
|
|
501
504
|
onwarn: warnings.add,
|
|
502
505
|
plugins: [],
|
|
503
506
|
treeshake: false
|
|
504
507
|
};
|
|
505
508
|
await addPluginsFromCommandOption(configPlugin, inputOptions);
|
|
509
|
+
// Add plugin as *last* item after addPluginsFromCommandOption is complete.
|
|
510
|
+
// This plugin will trigger for imports not resolved by config plugin, and mark all non-relative imports as external.
|
|
511
|
+
inputOptions.plugins.push({
|
|
512
|
+
name: 'external-fallback',
|
|
513
|
+
resolveId: source => {
|
|
514
|
+
const looksLikeExternal = (source[0] !== '.' && !path.isAbsolute(source)) || source.slice(-5) === '.json';
|
|
515
|
+
return looksLikeExternal ? false : source;
|
|
516
|
+
}
|
|
517
|
+
});
|
|
506
518
|
const bundle = await rollup.rollup(inputOptions);
|
|
507
519
|
const { output: [{ code }] } = await bundle.generate({
|
|
508
520
|
exports: 'named',
|
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.49.0
|
|
4
|
+
Wed, 27 Aug 2025 07:24:52 GMT - commit b12c061d27d63062b91c1830a698de53fd6c2067
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.
|
|
45
|
+
var version = "4.49.0";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.49.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -104,26 +104,26 @@
|
|
|
104
104
|
"homepage": "https://rollupjs.org/",
|
|
105
105
|
"optionalDependencies": {
|
|
106
106
|
"fsevents": "~2.3.2",
|
|
107
|
-
"@rollup/rollup-darwin-arm64": "4.
|
|
108
|
-
"@rollup/rollup-android-arm64": "4.
|
|
109
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
110
|
-
"@rollup/rollup-freebsd-arm64": "4.
|
|
111
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
112
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
113
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
114
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
115
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.
|
|
116
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
117
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.
|
|
118
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.
|
|
119
|
-
"@rollup/rollup-linux-riscv64-musl": "4.
|
|
120
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.
|
|
121
|
-
"@rollup/rollup-linux-s390x-gnu": "4.
|
|
122
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
123
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
124
|
-
"@rollup/rollup-freebsd-x64": "4.
|
|
125
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
126
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
107
|
+
"@rollup/rollup-darwin-arm64": "4.49.0",
|
|
108
|
+
"@rollup/rollup-android-arm64": "4.49.0",
|
|
109
|
+
"@rollup/rollup-win32-arm64-msvc": "4.49.0",
|
|
110
|
+
"@rollup/rollup-freebsd-arm64": "4.49.0",
|
|
111
|
+
"@rollup/rollup-linux-arm64-gnu": "4.49.0",
|
|
112
|
+
"@rollup/rollup-linux-arm64-musl": "4.49.0",
|
|
113
|
+
"@rollup/rollup-android-arm-eabi": "4.49.0",
|
|
114
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.49.0",
|
|
115
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.49.0",
|
|
116
|
+
"@rollup/rollup-win32-ia32-msvc": "4.49.0",
|
|
117
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.49.0",
|
|
118
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.49.0",
|
|
119
|
+
"@rollup/rollup-linux-riscv64-musl": "4.49.0",
|
|
120
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.49.0",
|
|
121
|
+
"@rollup/rollup-linux-s390x-gnu": "4.49.0",
|
|
122
|
+
"@rollup/rollup-darwin-x64": "4.49.0",
|
|
123
|
+
"@rollup/rollup-win32-x64-msvc": "4.49.0",
|
|
124
|
+
"@rollup/rollup-freebsd-x64": "4.49.0",
|
|
125
|
+
"@rollup/rollup-linux-x64-gnu": "4.49.0",
|
|
126
|
+
"@rollup/rollup-linux-x64-musl": "4.49.0"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@types/estree": "1.0.8"
|