rollup 4.46.1 → 4.46.2
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 +14 -8
- 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 +2 -2
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +14 -8
- 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.46.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.46.2
|
|
5
|
+
Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
|
|
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.46.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.46.2
|
|
4
|
+
Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
|
|
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.46.
|
|
30
|
+
var version = "4.46.2";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
|
@@ -11829,7 +11829,10 @@ class BinaryExpression extends NodeBase {
|
|
|
11829
11829
|
return UnknownValue;
|
|
11830
11830
|
// Optimize `'export' in namespace`
|
|
11831
11831
|
if (this.operator === 'in' && this.right.variable instanceof NamespaceVariable) {
|
|
11832
|
-
|
|
11832
|
+
const [variable] = this.right.variable.context.traceExport(String(leftValue));
|
|
11833
|
+
if (variable instanceof ExternalVariable)
|
|
11834
|
+
return UnknownValue;
|
|
11835
|
+
return !!variable;
|
|
11833
11836
|
}
|
|
11834
11837
|
const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
|
|
11835
11838
|
if (typeof rightValue === 'symbol')
|
|
@@ -11841,8 +11844,9 @@ class BinaryExpression extends NodeBase {
|
|
|
11841
11844
|
}
|
|
11842
11845
|
getRenderedLiteralValue() {
|
|
11843
11846
|
// Only optimize `'export' in ns`
|
|
11844
|
-
if (this.operator !== 'in' || !this.right.variable
|
|
11847
|
+
if (this.operator !== 'in' || !(this.right.variable instanceof NamespaceVariable)) {
|
|
11845
11848
|
return UnknownValue;
|
|
11849
|
+
}
|
|
11846
11850
|
if (this.renderedLiteralValue !== UNASSIGNED$1)
|
|
11847
11851
|
return this.renderedLiteralValue;
|
|
11848
11852
|
return (this.renderedLiteralValue = getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
|
|
@@ -11859,10 +11863,12 @@ class BinaryExpression extends NodeBase {
|
|
|
11859
11863
|
hasEffectsOnInteractionAtPath(path, { type }) {
|
|
11860
11864
|
return type !== INTERACTION_ACCESSED || path.length > 1;
|
|
11861
11865
|
}
|
|
11862
|
-
include(context, includeChildrenRecursively,
|
|
11863
|
-
this.included
|
|
11866
|
+
include(context, includeChildrenRecursively, options) {
|
|
11867
|
+
if (!this.included)
|
|
11868
|
+
this.includeNode(context);
|
|
11864
11869
|
if (typeof this.getRenderedLiteralValue() === 'symbol') {
|
|
11865
|
-
|
|
11870
|
+
this.left.include(context, includeChildrenRecursively, options);
|
|
11871
|
+
this.right.include(context, includeChildrenRecursively, options);
|
|
11866
11872
|
}
|
|
11867
11873
|
}
|
|
11868
11874
|
includeNode(context) {
|
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
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.46.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.46.2
|
|
4
|
+
Tue, 29 Jul 2025 19:44:27 GMT - commit 4e19badeda6f116a13a2f617ae3c6e1e14606023
|
|
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.46.
|
|
45
|
+
var version = "4.46.2";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -13438,7 +13438,10 @@ class BinaryExpression extends NodeBase {
|
|
|
13438
13438
|
return UnknownValue;
|
|
13439
13439
|
// Optimize `'export' in namespace`
|
|
13440
13440
|
if (this.operator === 'in' && this.right.variable instanceof NamespaceVariable) {
|
|
13441
|
-
|
|
13441
|
+
const [variable] = this.right.variable.context.traceExport(String(leftValue));
|
|
13442
|
+
if (variable instanceof ExternalVariable)
|
|
13443
|
+
return UnknownValue;
|
|
13444
|
+
return !!variable;
|
|
13442
13445
|
}
|
|
13443
13446
|
const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
|
|
13444
13447
|
if (typeof rightValue === 'symbol')
|
|
@@ -13450,8 +13453,9 @@ class BinaryExpression extends NodeBase {
|
|
|
13450
13453
|
}
|
|
13451
13454
|
getRenderedLiteralValue() {
|
|
13452
13455
|
// Only optimize `'export' in ns`
|
|
13453
|
-
if (this.operator !== 'in' || !this.right.variable
|
|
13456
|
+
if (this.operator !== 'in' || !(this.right.variable instanceof NamespaceVariable)) {
|
|
13454
13457
|
return UnknownValue;
|
|
13458
|
+
}
|
|
13455
13459
|
if (this.renderedLiteralValue !== UNASSIGNED$1)
|
|
13456
13460
|
return this.renderedLiteralValue;
|
|
13457
13461
|
return (this.renderedLiteralValue = getRenderedLiteralValue(this.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this)));
|
|
@@ -13468,10 +13472,12 @@ class BinaryExpression extends NodeBase {
|
|
|
13468
13472
|
hasEffectsOnInteractionAtPath(path, { type }) {
|
|
13469
13473
|
return type !== INTERACTION_ACCESSED || path.length > 1;
|
|
13470
13474
|
}
|
|
13471
|
-
include(context, includeChildrenRecursively,
|
|
13472
|
-
this.included
|
|
13475
|
+
include(context, includeChildrenRecursively, options) {
|
|
13476
|
+
if (!this.included)
|
|
13477
|
+
this.includeNode(context);
|
|
13473
13478
|
if (typeof this.getRenderedLiteralValue() === 'symbol') {
|
|
13474
|
-
|
|
13479
|
+
this.left.include(context, includeChildrenRecursively, options);
|
|
13480
|
+
this.right.include(context, includeChildrenRecursively, options);
|
|
13475
13481
|
}
|
|
13476
13482
|
}
|
|
13477
13483
|
includeNode(context) {
|
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.46.
|
|
3
|
+
"version": "4.46.2",
|
|
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.46.
|
|
108
|
-
"@rollup/rollup-android-arm64": "4.46.
|
|
109
|
-
"@rollup/rollup-win32-arm64-msvc": "4.46.
|
|
110
|
-
"@rollup/rollup-freebsd-arm64": "4.46.
|
|
111
|
-
"@rollup/rollup-linux-arm64-gnu": "4.46.
|
|
112
|
-
"@rollup/rollup-linux-arm64-musl": "4.46.
|
|
113
|
-
"@rollup/rollup-android-arm-eabi": "4.46.
|
|
114
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.46.
|
|
115
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.46.
|
|
116
|
-
"@rollup/rollup-win32-ia32-msvc": "4.46.
|
|
117
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.46.
|
|
118
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.46.
|
|
119
|
-
"@rollup/rollup-linux-riscv64-musl": "4.46.
|
|
120
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.46.
|
|
121
|
-
"@rollup/rollup-linux-s390x-gnu": "4.46.
|
|
122
|
-
"@rollup/rollup-darwin-x64": "4.46.
|
|
123
|
-
"@rollup/rollup-win32-x64-msvc": "4.46.
|
|
124
|
-
"@rollup/rollup-freebsd-x64": "4.46.
|
|
125
|
-
"@rollup/rollup-linux-x64-gnu": "4.46.
|
|
126
|
-
"@rollup/rollup-linux-x64-musl": "4.46.
|
|
107
|
+
"@rollup/rollup-darwin-arm64": "4.46.2",
|
|
108
|
+
"@rollup/rollup-android-arm64": "4.46.2",
|
|
109
|
+
"@rollup/rollup-win32-arm64-msvc": "4.46.2",
|
|
110
|
+
"@rollup/rollup-freebsd-arm64": "4.46.2",
|
|
111
|
+
"@rollup/rollup-linux-arm64-gnu": "4.46.2",
|
|
112
|
+
"@rollup/rollup-linux-arm64-musl": "4.46.2",
|
|
113
|
+
"@rollup/rollup-android-arm-eabi": "4.46.2",
|
|
114
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.46.2",
|
|
115
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.46.2",
|
|
116
|
+
"@rollup/rollup-win32-ia32-msvc": "4.46.2",
|
|
117
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.46.2",
|
|
118
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.46.2",
|
|
119
|
+
"@rollup/rollup-linux-riscv64-musl": "4.46.2",
|
|
120
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.46.2",
|
|
121
|
+
"@rollup/rollup-linux-s390x-gnu": "4.46.2",
|
|
122
|
+
"@rollup/rollup-darwin-x64": "4.46.2",
|
|
123
|
+
"@rollup/rollup-win32-x64-msvc": "4.46.2",
|
|
124
|
+
"@rollup/rollup-freebsd-x64": "4.46.2",
|
|
125
|
+
"@rollup/rollup-linux-x64-gnu": "4.46.2",
|
|
126
|
+
"@rollup/rollup-linux-x64-musl": "4.46.2"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
129
|
"@types/estree": "1.0.8"
|