rollup 4.29.0-0 → 4.29.0-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 +23 -10
- 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 +23 -10
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +20 -20
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.29.0-
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.29.0-2
|
|
5
|
+
Fri, 20 Dec 2024 06:55:29 GMT - commit bbb7e7b1d4e208a923b0f18ceb8dd886838e1a01
|
|
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.29.0-
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.29.0-2
|
|
4
|
+
Fri, 20 Dec 2024 06:55:29 GMT - commit bbb7e7b1d4e208a923b0f18ceb8dd886838e1a01
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
|
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version = "4.29.0-
|
|
19
|
+
var version = "4.29.0-2";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -7243,6 +7243,8 @@ class MemberExpression extends NodeBase {
|
|
|
7243
7243
|
init.deoptimizePath([...destructuredInitPath, UnknownKey]);
|
|
7244
7244
|
}
|
|
7245
7245
|
deoptimizeCache() {
|
|
7246
|
+
if (this.propertyKey === this.dynamicPropertyKey)
|
|
7247
|
+
return;
|
|
7246
7248
|
const { expressionsToBeDeoptimized, object } = this;
|
|
7247
7249
|
this.expressionsToBeDeoptimized = EMPTY_ARRAY;
|
|
7248
7250
|
this.dynamicPropertyKey = this.propertyKey;
|
|
@@ -7279,7 +7281,8 @@ class MemberExpression extends NodeBase {
|
|
|
7279
7281
|
}
|
|
7280
7282
|
const propertyKey = this.getDynamicPropertyKey();
|
|
7281
7283
|
if (propertyKey !== UnknownKey && path.length < MAX_PATH_DEPTH) {
|
|
7282
|
-
this.
|
|
7284
|
+
if (propertyKey !== this.propertyKey)
|
|
7285
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
7283
7286
|
return this.object.getLiteralValueAtPath([propertyKey, ...path], recursionTracker, origin);
|
|
7284
7287
|
}
|
|
7285
7288
|
return UnknownValue;
|
|
@@ -7302,7 +7305,8 @@ class MemberExpression extends NodeBase {
|
|
|
7302
7305
|
}
|
|
7303
7306
|
const propertyKey = this.getDynamicPropertyKey();
|
|
7304
7307
|
if (propertyKey !== UnknownKey && path.length < MAX_PATH_DEPTH) {
|
|
7305
|
-
this.
|
|
7308
|
+
if (propertyKey !== this.propertyKey)
|
|
7309
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
7306
7310
|
return this.object.getReturnExpressionWhenCalledAtPath([propertyKey, ...path], interaction, recursionTracker, origin);
|
|
7307
7311
|
}
|
|
7308
7312
|
return UNKNOWN_RETURN_EXPRESSION;
|
|
@@ -7494,7 +7498,7 @@ class MemberExpression extends NodeBase {
|
|
|
7494
7498
|
}
|
|
7495
7499
|
getDynamicPropertyKey() {
|
|
7496
7500
|
if (this.dynamicPropertyKey === null) {
|
|
7497
|
-
this.dynamicPropertyKey =
|
|
7501
|
+
this.dynamicPropertyKey = this.propertyKey;
|
|
7498
7502
|
const value = this.property.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this);
|
|
7499
7503
|
return (this.dynamicPropertyKey =
|
|
7500
7504
|
value === SymbolToStringTag
|
|
@@ -11589,6 +11593,12 @@ class BinaryExpression extends NodeBase {
|
|
|
11589
11593
|
hasEffectsOnInteractionAtPath(path, { type }) {
|
|
11590
11594
|
return type !== INTERACTION_ACCESSED || path.length > 1;
|
|
11591
11595
|
}
|
|
11596
|
+
includeNode(context) {
|
|
11597
|
+
this.included = true;
|
|
11598
|
+
if (this.operator === 'in') {
|
|
11599
|
+
this.right.includePath(UNKNOWN_PATH, context);
|
|
11600
|
+
}
|
|
11601
|
+
}
|
|
11592
11602
|
removeAnnotations(code) {
|
|
11593
11603
|
this.left.removeAnnotations(code);
|
|
11594
11604
|
}
|
|
@@ -11597,7 +11607,6 @@ class BinaryExpression extends NodeBase {
|
|
|
11597
11607
|
this.right.render(code, options);
|
|
11598
11608
|
}
|
|
11599
11609
|
}
|
|
11600
|
-
BinaryExpression.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
|
|
11601
11610
|
BinaryExpression.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
11602
11611
|
|
|
11603
11612
|
class BreakStatement extends NodeBase {
|
|
@@ -11815,8 +11824,14 @@ class CallExpression extends CallExpressionBase {
|
|
|
11815
11824
|
this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context)));
|
|
11816
11825
|
}
|
|
11817
11826
|
include(context, includeChildrenRecursively) {
|
|
11827
|
+
if (!this.included)
|
|
11828
|
+
this.includeNode(context);
|
|
11818
11829
|
if (includeChildrenRecursively) {
|
|
11819
|
-
|
|
11830
|
+
this.callee.include(context, true);
|
|
11831
|
+
for (const argument of this.arguments) {
|
|
11832
|
+
argument.includePath(UNKNOWN_PATH, context);
|
|
11833
|
+
argument.include(context, true);
|
|
11834
|
+
}
|
|
11820
11835
|
if (includeChildrenRecursively === INCLUDE_PARAMETERS &&
|
|
11821
11836
|
this.callee instanceof Identifier &&
|
|
11822
11837
|
this.callee.variable) {
|
|
@@ -11824,8 +11839,6 @@ class CallExpression extends CallExpressionBase {
|
|
|
11824
11839
|
}
|
|
11825
11840
|
}
|
|
11826
11841
|
else {
|
|
11827
|
-
if (!this.included)
|
|
11828
|
-
this.includeNode(context);
|
|
11829
11842
|
// If the callee is a member expression and does not have a variable, its
|
|
11830
11843
|
// object will already be included via the first argument of the
|
|
11831
11844
|
// interaction in includeCallArguments. Including it again can lead to
|
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.29.0-
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.29.0-2
|
|
4
|
+
Fri, 20 Dec 2024 06:55:29 GMT - commit bbb7e7b1d4e208a923b0f18ceb8dd886838e1a01
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
|
|
32
32
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
33
33
|
|
|
34
|
-
var version = "4.29.0-
|
|
34
|
+
var version = "4.29.0-2";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -8747,6 +8747,8 @@ class MemberExpression extends NodeBase {
|
|
|
8747
8747
|
init.deoptimizePath([...destructuredInitPath, UnknownKey]);
|
|
8748
8748
|
}
|
|
8749
8749
|
deoptimizeCache() {
|
|
8750
|
+
if (this.propertyKey === this.dynamicPropertyKey)
|
|
8751
|
+
return;
|
|
8750
8752
|
const { expressionsToBeDeoptimized, object } = this;
|
|
8751
8753
|
this.expressionsToBeDeoptimized = parseAst_js.EMPTY_ARRAY;
|
|
8752
8754
|
this.dynamicPropertyKey = this.propertyKey;
|
|
@@ -8783,7 +8785,8 @@ class MemberExpression extends NodeBase {
|
|
|
8783
8785
|
}
|
|
8784
8786
|
const propertyKey = this.getDynamicPropertyKey();
|
|
8785
8787
|
if (propertyKey !== UnknownKey && path.length < MAX_PATH_DEPTH) {
|
|
8786
|
-
this.
|
|
8788
|
+
if (propertyKey !== this.propertyKey)
|
|
8789
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
8787
8790
|
return this.object.getLiteralValueAtPath([propertyKey, ...path], recursionTracker, origin);
|
|
8788
8791
|
}
|
|
8789
8792
|
return UnknownValue;
|
|
@@ -8806,7 +8809,8 @@ class MemberExpression extends NodeBase {
|
|
|
8806
8809
|
}
|
|
8807
8810
|
const propertyKey = this.getDynamicPropertyKey();
|
|
8808
8811
|
if (propertyKey !== UnknownKey && path.length < MAX_PATH_DEPTH) {
|
|
8809
|
-
this.
|
|
8812
|
+
if (propertyKey !== this.propertyKey)
|
|
8813
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
8810
8814
|
return this.object.getReturnExpressionWhenCalledAtPath([propertyKey, ...path], interaction, recursionTracker, origin);
|
|
8811
8815
|
}
|
|
8812
8816
|
return UNKNOWN_RETURN_EXPRESSION;
|
|
@@ -8998,7 +9002,7 @@ class MemberExpression extends NodeBase {
|
|
|
8998
9002
|
}
|
|
8999
9003
|
getDynamicPropertyKey() {
|
|
9000
9004
|
if (this.dynamicPropertyKey === null) {
|
|
9001
|
-
this.dynamicPropertyKey =
|
|
9005
|
+
this.dynamicPropertyKey = this.propertyKey;
|
|
9002
9006
|
const value = this.property.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this);
|
|
9003
9007
|
return (this.dynamicPropertyKey =
|
|
9004
9008
|
value === SymbolToStringTag
|
|
@@ -13093,6 +13097,12 @@ class BinaryExpression extends NodeBase {
|
|
|
13093
13097
|
hasEffectsOnInteractionAtPath(path, { type }) {
|
|
13094
13098
|
return type !== INTERACTION_ACCESSED || path.length > 1;
|
|
13095
13099
|
}
|
|
13100
|
+
includeNode(context) {
|
|
13101
|
+
this.included = true;
|
|
13102
|
+
if (this.operator === 'in') {
|
|
13103
|
+
this.right.includePath(UNKNOWN_PATH, context);
|
|
13104
|
+
}
|
|
13105
|
+
}
|
|
13096
13106
|
removeAnnotations(code) {
|
|
13097
13107
|
this.left.removeAnnotations(code);
|
|
13098
13108
|
}
|
|
@@ -13101,7 +13111,6 @@ class BinaryExpression extends NodeBase {
|
|
|
13101
13111
|
this.right.render(code, options);
|
|
13102
13112
|
}
|
|
13103
13113
|
}
|
|
13104
|
-
BinaryExpression.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
|
|
13105
13114
|
BinaryExpression.prototype.applyDeoptimizations = doNotDeoptimize;
|
|
13106
13115
|
|
|
13107
13116
|
class BreakStatement extends NodeBase {
|
|
@@ -13319,8 +13328,14 @@ class CallExpression extends CallExpressionBase {
|
|
|
13319
13328
|
this.callee.hasEffectsOnInteractionAtPath(EMPTY_PATH, this.interaction, context)));
|
|
13320
13329
|
}
|
|
13321
13330
|
include(context, includeChildrenRecursively) {
|
|
13331
|
+
if (!this.included)
|
|
13332
|
+
this.includeNode(context);
|
|
13322
13333
|
if (includeChildrenRecursively) {
|
|
13323
|
-
|
|
13334
|
+
this.callee.include(context, true);
|
|
13335
|
+
for (const argument of this.arguments) {
|
|
13336
|
+
argument.includePath(UNKNOWN_PATH, context);
|
|
13337
|
+
argument.include(context, true);
|
|
13338
|
+
}
|
|
13324
13339
|
if (includeChildrenRecursively === INCLUDE_PARAMETERS &&
|
|
13325
13340
|
this.callee instanceof Identifier &&
|
|
13326
13341
|
this.callee.variable) {
|
|
@@ -13328,8 +13343,6 @@ class CallExpression extends CallExpressionBase {
|
|
|
13328
13343
|
}
|
|
13329
13344
|
}
|
|
13330
13345
|
else {
|
|
13331
|
-
if (!this.included)
|
|
13332
|
-
this.includeNode(context);
|
|
13333
13346
|
// If the callee is a member expression and does not have a variable, its
|
|
13334
13347
|
// object will already be included via the first argument of the
|
|
13335
13348
|
// interaction in includeCallArguments. Including it again can lead to
|
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.29.0-
|
|
3
|
+
"version": "4.29.0-2",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
"homepage": "https://rollupjs.org/",
|
|
111
111
|
"optionalDependencies": {
|
|
112
112
|
"fsevents": "~2.3.2",
|
|
113
|
-
"@rollup/rollup-darwin-arm64": "4.29.0-
|
|
114
|
-
"@rollup/rollup-android-arm64": "4.29.0-
|
|
115
|
-
"@rollup/rollup-win32-arm64-msvc": "4.29.0-
|
|
116
|
-
"@rollup/rollup-freebsd-arm64": "4.29.0-
|
|
117
|
-
"@rollup/rollup-linux-arm64-gnu": "4.29.0-
|
|
118
|
-
"@rollup/rollup-linux-arm64-musl": "4.29.0-
|
|
119
|
-
"@rollup/rollup-android-arm-eabi": "4.29.0-
|
|
120
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.29.0-
|
|
121
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.29.0-
|
|
122
|
-
"@rollup/rollup-win32-ia32-msvc": "4.29.0-
|
|
123
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.29.0-
|
|
124
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.29.0-
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.29.0-
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.29.0-
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.29.0-
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.29.0-
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.29.0-
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.29.0-
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.29.0-
|
|
113
|
+
"@rollup/rollup-darwin-arm64": "4.29.0-2",
|
|
114
|
+
"@rollup/rollup-android-arm64": "4.29.0-2",
|
|
115
|
+
"@rollup/rollup-win32-arm64-msvc": "4.29.0-2",
|
|
116
|
+
"@rollup/rollup-freebsd-arm64": "4.29.0-2",
|
|
117
|
+
"@rollup/rollup-linux-arm64-gnu": "4.29.0-2",
|
|
118
|
+
"@rollup/rollup-linux-arm64-musl": "4.29.0-2",
|
|
119
|
+
"@rollup/rollup-android-arm-eabi": "4.29.0-2",
|
|
120
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.29.0-2",
|
|
121
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.29.0-2",
|
|
122
|
+
"@rollup/rollup-win32-ia32-msvc": "4.29.0-2",
|
|
123
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.29.0-2",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.29.0-2",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.29.0-2",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.29.0-2",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.29.0-2",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.29.0-2",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.29.0-2",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.29.0-2",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.29.0-2"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@types/estree": "1.0.6"
|