rollup 4.34.1 → 4.34.3
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 +28 -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 +28 -8
- 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.34.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.34.3
|
|
5
|
+
Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
|
|
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.34.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.34.3
|
|
4
|
+
Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
|
|
|
15
15
|
import { performance } from 'node:perf_hooks';
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
|
|
18
|
-
var version = "4.34.
|
|
18
|
+
var version = "4.34.3";
|
|
19
19
|
|
|
20
20
|
const comma = ','.charCodeAt(0);
|
|
21
21
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -2271,8 +2271,10 @@ class ExpressionEntity {
|
|
|
2271
2271
|
* */
|
|
2272
2272
|
includeCallArguments(context, interaction) {
|
|
2273
2273
|
for (const argument of interaction.args) {
|
|
2274
|
-
argument
|
|
2275
|
-
|
|
2274
|
+
if (argument) {
|
|
2275
|
+
argument.includePath(UNKNOWN_PATH, context);
|
|
2276
|
+
argument.include(context, false);
|
|
2277
|
+
}
|
|
2276
2278
|
}
|
|
2277
2279
|
}
|
|
2278
2280
|
shouldBeIncluded(_context) {
|
|
@@ -5213,6 +5215,8 @@ class IdentifierBase extends NodeBase {
|
|
|
5213
5215
|
includePath(path, context) {
|
|
5214
5216
|
if (!this.included) {
|
|
5215
5217
|
this.included = true;
|
|
5218
|
+
if (!this.deoptimized)
|
|
5219
|
+
this.applyDeoptimizations();
|
|
5216
5220
|
if (this.variable !== null) {
|
|
5217
5221
|
this.scope.context.includeVariableInModule(this.variable, path, context);
|
|
5218
5222
|
}
|
|
@@ -6284,7 +6288,7 @@ class ParameterScope extends ChildScope {
|
|
|
6284
6288
|
}
|
|
6285
6289
|
}
|
|
6286
6290
|
}
|
|
6287
|
-
if (
|
|
6291
|
+
if (argumentIncluded || argument.shouldBeIncluded(context)) {
|
|
6288
6292
|
argumentIncluded = true;
|
|
6289
6293
|
argument.include(context, calledFromTryStatement);
|
|
6290
6294
|
}
|
|
@@ -6371,8 +6375,9 @@ class ReturnValueScope extends ParameterScope {
|
|
|
6371
6375
|
}
|
|
6372
6376
|
|
|
6373
6377
|
class FunctionScope extends ReturnValueScope {
|
|
6374
|
-
constructor(parent) {
|
|
6378
|
+
constructor(parent, functionNode) {
|
|
6375
6379
|
super(parent, false);
|
|
6380
|
+
this.functionNode = functionNode;
|
|
6376
6381
|
const { context } = parent;
|
|
6377
6382
|
this.variables.set('arguments', (this.argumentsVariable = new ArgumentsVariable(context)));
|
|
6378
6383
|
this.variables.set('this', (this.thisVariable = new ThisVariable(context)));
|
|
@@ -6704,7 +6709,7 @@ class FunctionNode extends FunctionBase {
|
|
|
6704
6709
|
this.objectEntity = null;
|
|
6705
6710
|
}
|
|
6706
6711
|
createScope(parentScope) {
|
|
6707
|
-
this.scope = new FunctionScope(parentScope);
|
|
6712
|
+
this.scope = new FunctionScope(parentScope, this);
|
|
6708
6713
|
this.constructedEntity = new ObjectEntity(Object.create(null), OBJECT_PROTOTYPE);
|
|
6709
6714
|
// This makes sure that all deoptimizations of "this" are applied to the
|
|
6710
6715
|
// constructed entity.
|
|
@@ -14744,6 +14749,12 @@ class ThisExpression extends NodeBase {
|
|
|
14744
14749
|
else if (path.length > 0) {
|
|
14745
14750
|
this.variable.includePath(path, context);
|
|
14746
14751
|
}
|
|
14752
|
+
const functionScope = findFunctionScope(this.scope, this.variable);
|
|
14753
|
+
if (functionScope &&
|
|
14754
|
+
functionScope.functionNode.parent instanceof Property &&
|
|
14755
|
+
functionScope.functionNode.parent.parent instanceof ObjectExpression) {
|
|
14756
|
+
functionScope.functionNode.parent.parent.includePath(path, context);
|
|
14757
|
+
}
|
|
14747
14758
|
}
|
|
14748
14759
|
initialise() {
|
|
14749
14760
|
super.initialise();
|
|
@@ -14764,6 +14775,15 @@ class ThisExpression extends NodeBase {
|
|
|
14764
14775
|
}
|
|
14765
14776
|
}
|
|
14766
14777
|
}
|
|
14778
|
+
function findFunctionScope(scope, thisVariable) {
|
|
14779
|
+
while (!(scope instanceof FunctionScope && scope.thisVariable === thisVariable)) {
|
|
14780
|
+
if (!(scope instanceof ChildScope)) {
|
|
14781
|
+
return null;
|
|
14782
|
+
}
|
|
14783
|
+
scope = scope.parent;
|
|
14784
|
+
}
|
|
14785
|
+
return scope;
|
|
14786
|
+
}
|
|
14767
14787
|
|
|
14768
14788
|
class ThrowStatement extends NodeBase {
|
|
14769
14789
|
hasEffects() {
|
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.34.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.34.3
|
|
4
|
+
Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
|
|
|
17
17
|
const node_perf_hooks = require('node:perf_hooks');
|
|
18
18
|
const promises = require('node:fs/promises');
|
|
19
19
|
|
|
20
|
-
var version = "4.34.
|
|
20
|
+
var version = "4.34.3";
|
|
21
21
|
|
|
22
22
|
function ensureArray$1(items) {
|
|
23
23
|
if (Array.isArray(items)) {
|
|
@@ -3782,8 +3782,10 @@ class ExpressionEntity {
|
|
|
3782
3782
|
* */
|
|
3783
3783
|
includeCallArguments(context, interaction) {
|
|
3784
3784
|
for (const argument of interaction.args) {
|
|
3785
|
-
argument
|
|
3786
|
-
|
|
3785
|
+
if (argument) {
|
|
3786
|
+
argument.includePath(UNKNOWN_PATH, context);
|
|
3787
|
+
argument.include(context, false);
|
|
3788
|
+
}
|
|
3787
3789
|
}
|
|
3788
3790
|
}
|
|
3789
3791
|
shouldBeIncluded(_context) {
|
|
@@ -6722,6 +6724,8 @@ class IdentifierBase extends NodeBase {
|
|
|
6722
6724
|
includePath(path, context) {
|
|
6723
6725
|
if (!this.included) {
|
|
6724
6726
|
this.included = true;
|
|
6727
|
+
if (!this.deoptimized)
|
|
6728
|
+
this.applyDeoptimizations();
|
|
6725
6729
|
if (this.variable !== null) {
|
|
6726
6730
|
this.scope.context.includeVariableInModule(this.variable, path, context);
|
|
6727
6731
|
}
|
|
@@ -7781,7 +7785,7 @@ class ParameterScope extends ChildScope {
|
|
|
7781
7785
|
}
|
|
7782
7786
|
}
|
|
7783
7787
|
}
|
|
7784
|
-
if (
|
|
7788
|
+
if (argumentIncluded || argument.shouldBeIncluded(context)) {
|
|
7785
7789
|
argumentIncluded = true;
|
|
7786
7790
|
argument.include(context, calledFromTryStatement);
|
|
7787
7791
|
}
|
|
@@ -7868,8 +7872,9 @@ class ReturnValueScope extends ParameterScope {
|
|
|
7868
7872
|
}
|
|
7869
7873
|
|
|
7870
7874
|
class FunctionScope extends ReturnValueScope {
|
|
7871
|
-
constructor(parent) {
|
|
7875
|
+
constructor(parent, functionNode) {
|
|
7872
7876
|
super(parent, false);
|
|
7877
|
+
this.functionNode = functionNode;
|
|
7873
7878
|
const { context } = parent;
|
|
7874
7879
|
this.variables.set('arguments', (this.argumentsVariable = new ArgumentsVariable(context)));
|
|
7875
7880
|
this.variables.set('this', (this.thisVariable = new ThisVariable(context)));
|
|
@@ -8201,7 +8206,7 @@ class FunctionNode extends FunctionBase {
|
|
|
8201
8206
|
this.objectEntity = null;
|
|
8202
8207
|
}
|
|
8203
8208
|
createScope(parentScope) {
|
|
8204
|
-
this.scope = new FunctionScope(parentScope);
|
|
8209
|
+
this.scope = new FunctionScope(parentScope, this);
|
|
8205
8210
|
this.constructedEntity = new ObjectEntity(Object.create(null), OBJECT_PROTOTYPE);
|
|
8206
8211
|
// This makes sure that all deoptimizations of "this" are applied to the
|
|
8207
8212
|
// constructed entity.
|
|
@@ -16212,6 +16217,12 @@ class ThisExpression extends NodeBase {
|
|
|
16212
16217
|
else if (path.length > 0) {
|
|
16213
16218
|
this.variable.includePath(path, context);
|
|
16214
16219
|
}
|
|
16220
|
+
const functionScope = findFunctionScope(this.scope, this.variable);
|
|
16221
|
+
if (functionScope &&
|
|
16222
|
+
functionScope.functionNode.parent instanceof Property &&
|
|
16223
|
+
functionScope.functionNode.parent.parent instanceof ObjectExpression) {
|
|
16224
|
+
functionScope.functionNode.parent.parent.includePath(path, context);
|
|
16225
|
+
}
|
|
16215
16226
|
}
|
|
16216
16227
|
initialise() {
|
|
16217
16228
|
super.initialise();
|
|
@@ -16232,6 +16243,15 @@ class ThisExpression extends NodeBase {
|
|
|
16232
16243
|
}
|
|
16233
16244
|
}
|
|
16234
16245
|
}
|
|
16246
|
+
function findFunctionScope(scope, thisVariable) {
|
|
16247
|
+
while (!(scope instanceof FunctionScope && scope.thisVariable === thisVariable)) {
|
|
16248
|
+
if (!(scope instanceof ChildScope)) {
|
|
16249
|
+
return null;
|
|
16250
|
+
}
|
|
16251
|
+
scope = scope.parent;
|
|
16252
|
+
}
|
|
16253
|
+
return scope;
|
|
16254
|
+
}
|
|
16235
16255
|
|
|
16236
16256
|
class ThrowStatement extends NodeBase {
|
|
16237
16257
|
hasEffects() {
|
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.34.
|
|
3
|
+
"version": "4.34.3",
|
|
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.34.
|
|
114
|
-
"@rollup/rollup-android-arm64": "4.34.
|
|
115
|
-
"@rollup/rollup-win32-arm64-msvc": "4.34.
|
|
116
|
-
"@rollup/rollup-freebsd-arm64": "4.34.
|
|
117
|
-
"@rollup/rollup-linux-arm64-gnu": "4.34.
|
|
118
|
-
"@rollup/rollup-linux-arm64-musl": "4.34.
|
|
119
|
-
"@rollup/rollup-android-arm-eabi": "4.34.
|
|
120
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.34.
|
|
121
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.34.
|
|
122
|
-
"@rollup/rollup-win32-ia32-msvc": "4.34.
|
|
123
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.34.
|
|
124
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.34.
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.34.
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.34.
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.34.
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.34.
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.34.
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.34.
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.34.
|
|
113
|
+
"@rollup/rollup-darwin-arm64": "4.34.3",
|
|
114
|
+
"@rollup/rollup-android-arm64": "4.34.3",
|
|
115
|
+
"@rollup/rollup-win32-arm64-msvc": "4.34.3",
|
|
116
|
+
"@rollup/rollup-freebsd-arm64": "4.34.3",
|
|
117
|
+
"@rollup/rollup-linux-arm64-gnu": "4.34.3",
|
|
118
|
+
"@rollup/rollup-linux-arm64-musl": "4.34.3",
|
|
119
|
+
"@rollup/rollup-android-arm-eabi": "4.34.3",
|
|
120
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.34.3",
|
|
121
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.34.3",
|
|
122
|
+
"@rollup/rollup-win32-ia32-msvc": "4.34.3",
|
|
123
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.34.3",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.34.3",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.34.3",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.34.3",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.34.3",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.34.3",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.34.3",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.34.3",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.34.3"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@types/estree": "1.0.6"
|