rollup 4.34.2 → 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 +21 -5
- 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 +21 -5
- 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);
|
|
@@ -6375,8 +6375,9 @@ class ReturnValueScope extends ParameterScope {
|
|
|
6375
6375
|
}
|
|
6376
6376
|
|
|
6377
6377
|
class FunctionScope extends ReturnValueScope {
|
|
6378
|
-
constructor(parent) {
|
|
6378
|
+
constructor(parent, functionNode) {
|
|
6379
6379
|
super(parent, false);
|
|
6380
|
+
this.functionNode = functionNode;
|
|
6380
6381
|
const { context } = parent;
|
|
6381
6382
|
this.variables.set('arguments', (this.argumentsVariable = new ArgumentsVariable(context)));
|
|
6382
6383
|
this.variables.set('this', (this.thisVariable = new ThisVariable(context)));
|
|
@@ -6708,7 +6709,7 @@ class FunctionNode extends FunctionBase {
|
|
|
6708
6709
|
this.objectEntity = null;
|
|
6709
6710
|
}
|
|
6710
6711
|
createScope(parentScope) {
|
|
6711
|
-
this.scope = new FunctionScope(parentScope);
|
|
6712
|
+
this.scope = new FunctionScope(parentScope, this);
|
|
6712
6713
|
this.constructedEntity = new ObjectEntity(Object.create(null), OBJECT_PROTOTYPE);
|
|
6713
6714
|
// This makes sure that all deoptimizations of "this" are applied to the
|
|
6714
6715
|
// constructed entity.
|
|
@@ -14748,6 +14749,12 @@ class ThisExpression extends NodeBase {
|
|
|
14748
14749
|
else if (path.length > 0) {
|
|
14749
14750
|
this.variable.includePath(path, context);
|
|
14750
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
|
+
}
|
|
14751
14758
|
}
|
|
14752
14759
|
initialise() {
|
|
14753
14760
|
super.initialise();
|
|
@@ -14768,6 +14775,15 @@ class ThisExpression extends NodeBase {
|
|
|
14768
14775
|
}
|
|
14769
14776
|
}
|
|
14770
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
|
+
}
|
|
14771
14787
|
|
|
14772
14788
|
class ThrowStatement extends NodeBase {
|
|
14773
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)) {
|
|
@@ -7872,8 +7872,9 @@ class ReturnValueScope extends ParameterScope {
|
|
|
7872
7872
|
}
|
|
7873
7873
|
|
|
7874
7874
|
class FunctionScope extends ReturnValueScope {
|
|
7875
|
-
constructor(parent) {
|
|
7875
|
+
constructor(parent, functionNode) {
|
|
7876
7876
|
super(parent, false);
|
|
7877
|
+
this.functionNode = functionNode;
|
|
7877
7878
|
const { context } = parent;
|
|
7878
7879
|
this.variables.set('arguments', (this.argumentsVariable = new ArgumentsVariable(context)));
|
|
7879
7880
|
this.variables.set('this', (this.thisVariable = new ThisVariable(context)));
|
|
@@ -8205,7 +8206,7 @@ class FunctionNode extends FunctionBase {
|
|
|
8205
8206
|
this.objectEntity = null;
|
|
8206
8207
|
}
|
|
8207
8208
|
createScope(parentScope) {
|
|
8208
|
-
this.scope = new FunctionScope(parentScope);
|
|
8209
|
+
this.scope = new FunctionScope(parentScope, this);
|
|
8209
8210
|
this.constructedEntity = new ObjectEntity(Object.create(null), OBJECT_PROTOTYPE);
|
|
8210
8211
|
// This makes sure that all deoptimizations of "this" are applied to the
|
|
8211
8212
|
// constructed entity.
|
|
@@ -16216,6 +16217,12 @@ class ThisExpression extends NodeBase {
|
|
|
16216
16217
|
else if (path.length > 0) {
|
|
16217
16218
|
this.variable.includePath(path, context);
|
|
16218
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
|
+
}
|
|
16219
16226
|
}
|
|
16220
16227
|
initialise() {
|
|
16221
16228
|
super.initialise();
|
|
@@ -16236,6 +16243,15 @@ class ThisExpression extends NodeBase {
|
|
|
16236
16243
|
}
|
|
16237
16244
|
}
|
|
16238
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
|
+
}
|
|
16239
16255
|
|
|
16240
16256
|
class ThrowStatement extends NodeBase {
|
|
16241
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"
|