rollup 4.16.2 → 4.16.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 +17 -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 +17 -8
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +17 -17
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.16.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.16.3
|
|
5
|
+
Tue, 23 Apr 2024 05:12:04 GMT - commit b9a62fd4cf28538d7c3b268eb25e709b45d44cce
|
|
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.16.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.16.3
|
|
4
|
+
Tue, 23 Apr 2024 05:12:04 GMT - commit b9a62fd4cf28538d7c3b268eb25e709b45d44cce
|
|
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.16.
|
|
19
|
+
var version = "4.16.3";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -8076,16 +8076,14 @@ class FunctionBase extends NodeBase {
|
|
|
8076
8076
|
return variable?.getOnlyFunctionCallUsed() ?? false;
|
|
8077
8077
|
}
|
|
8078
8078
|
include(context, includeChildrenRecursively) {
|
|
8079
|
-
const
|
|
8080
|
-
|
|
8081
|
-
const shoulOptimizeFunctionParameters = isIIFE || this.onlyFunctionCallUsed();
|
|
8082
|
-
if (shoulOptimizeFunctionParameters) {
|
|
8079
|
+
const shouldOptimizeFunctionParameters = this.onlyFunctionCallUsed();
|
|
8080
|
+
if (shouldOptimizeFunctionParameters) {
|
|
8083
8081
|
this.applyFunctionParameterOptimization();
|
|
8084
8082
|
}
|
|
8085
8083
|
else if (this.functionParametersOptimized) {
|
|
8086
8084
|
this.deoptimizeFunctionParameters();
|
|
8087
8085
|
}
|
|
8088
|
-
this.functionParametersOptimized =
|
|
8086
|
+
this.functionParametersOptimized = shouldOptimizeFunctionParameters;
|
|
8089
8087
|
if (!this.deoptimized)
|
|
8090
8088
|
this.applyDeoptimizations();
|
|
8091
8089
|
this.included = true;
|
|
@@ -8169,6 +8167,11 @@ class ArrowFunctionExpression extends FunctionBase {
|
|
|
8169
8167
|
}
|
|
8170
8168
|
return false;
|
|
8171
8169
|
}
|
|
8170
|
+
onlyFunctionCallUsed() {
|
|
8171
|
+
const isIIFE = this.parent.type === CallExpression$1 &&
|
|
8172
|
+
this.parent.callee === this;
|
|
8173
|
+
return isIIFE || super.onlyFunctionCallUsed();
|
|
8174
|
+
}
|
|
8172
8175
|
include(context, includeChildrenRecursively) {
|
|
8173
8176
|
super.include(context, includeChildrenRecursively);
|
|
8174
8177
|
for (const parameter of this.params) {
|
|
@@ -10134,6 +10137,12 @@ class FunctionExpression extends FunctionNode {
|
|
|
10134
10137
|
}
|
|
10135
10138
|
return super.parseNode(esTreeNode);
|
|
10136
10139
|
}
|
|
10140
|
+
onlyFunctionCallUsed() {
|
|
10141
|
+
const isIIFE = this.parent.type === CallExpression$1 &&
|
|
10142
|
+
this.parent.callee === this &&
|
|
10143
|
+
(this.id === null || this.id.variable.getOnlyFunctionCallUsed());
|
|
10144
|
+
return isIIFE || super.onlyFunctionCallUsed();
|
|
10145
|
+
}
|
|
10137
10146
|
render(code, options, { renderedSurroundingElement } = BLANK) {
|
|
10138
10147
|
super.render(code, options);
|
|
10139
10148
|
if (renderedSurroundingElement === ExpressionStatement$1) {
|
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.16.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.16.3
|
|
4
|
+
Tue, 23 Apr 2024 05:12:04 GMT - commit b9a62fd4cf28538d7c3b268eb25e709b45d44cce
|
|
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.16.
|
|
34
|
+
var version = "4.16.3";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -9518,16 +9518,14 @@ class FunctionBase extends NodeBase {
|
|
|
9518
9518
|
return variable?.getOnlyFunctionCallUsed() ?? false;
|
|
9519
9519
|
}
|
|
9520
9520
|
include(context, includeChildrenRecursively) {
|
|
9521
|
-
const
|
|
9522
|
-
|
|
9523
|
-
const shoulOptimizeFunctionParameters = isIIFE || this.onlyFunctionCallUsed();
|
|
9524
|
-
if (shoulOptimizeFunctionParameters) {
|
|
9521
|
+
const shouldOptimizeFunctionParameters = this.onlyFunctionCallUsed();
|
|
9522
|
+
if (shouldOptimizeFunctionParameters) {
|
|
9525
9523
|
this.applyFunctionParameterOptimization();
|
|
9526
9524
|
}
|
|
9527
9525
|
else if (this.functionParametersOptimized) {
|
|
9528
9526
|
this.deoptimizeFunctionParameters();
|
|
9529
9527
|
}
|
|
9530
|
-
this.functionParametersOptimized =
|
|
9528
|
+
this.functionParametersOptimized = shouldOptimizeFunctionParameters;
|
|
9531
9529
|
if (!this.deoptimized)
|
|
9532
9530
|
this.applyDeoptimizations();
|
|
9533
9531
|
this.included = true;
|
|
@@ -9611,6 +9609,11 @@ class ArrowFunctionExpression extends FunctionBase {
|
|
|
9611
9609
|
}
|
|
9612
9610
|
return false;
|
|
9613
9611
|
}
|
|
9612
|
+
onlyFunctionCallUsed() {
|
|
9613
|
+
const isIIFE = this.parent.type === parseAst_js.CallExpression &&
|
|
9614
|
+
this.parent.callee === this;
|
|
9615
|
+
return isIIFE || super.onlyFunctionCallUsed();
|
|
9616
|
+
}
|
|
9614
9617
|
include(context, includeChildrenRecursively) {
|
|
9615
9618
|
super.include(context, includeChildrenRecursively);
|
|
9616
9619
|
for (const parameter of this.params) {
|
|
@@ -11576,6 +11579,12 @@ class FunctionExpression extends FunctionNode {
|
|
|
11576
11579
|
}
|
|
11577
11580
|
return super.parseNode(esTreeNode);
|
|
11578
11581
|
}
|
|
11582
|
+
onlyFunctionCallUsed() {
|
|
11583
|
+
const isIIFE = this.parent.type === parseAst_js.CallExpression &&
|
|
11584
|
+
this.parent.callee === this &&
|
|
11585
|
+
(this.id === null || this.id.variable.getOnlyFunctionCallUsed());
|
|
11586
|
+
return isIIFE || super.onlyFunctionCallUsed();
|
|
11587
|
+
}
|
|
11579
11588
|
render(code, options, { renderedSurroundingElement } = parseAst_js.BLANK) {
|
|
11580
11589
|
super.render(code, options);
|
|
11581
11590
|
if (renderedSurroundingElement === parseAst_js.ExpressionStatement) {
|
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.16.
|
|
3
|
+
"version": "4.16.3",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -104,22 +104,22 @@
|
|
|
104
104
|
"homepage": "https://rollupjs.org/",
|
|
105
105
|
"optionalDependencies": {
|
|
106
106
|
"fsevents": "~2.3.2",
|
|
107
|
-
"@rollup/rollup-darwin-arm64": "4.16.
|
|
108
|
-
"@rollup/rollup-android-arm64": "4.16.
|
|
109
|
-
"@rollup/rollup-win32-arm64-msvc": "4.16.
|
|
110
|
-
"@rollup/rollup-linux-arm64-gnu": "4.16.
|
|
111
|
-
"@rollup/rollup-linux-arm64-musl": "4.16.
|
|
112
|
-
"@rollup/rollup-android-arm-eabi": "4.16.
|
|
113
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.16.
|
|
114
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.16.
|
|
115
|
-
"@rollup/rollup-win32-ia32-msvc": "4.16.
|
|
116
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.16.
|
|
117
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.16.
|
|
118
|
-
"@rollup/rollup-linux-s390x-gnu": "4.16.
|
|
119
|
-
"@rollup/rollup-darwin-x64": "4.16.
|
|
120
|
-
"@rollup/rollup-win32-x64-msvc": "4.16.
|
|
121
|
-
"@rollup/rollup-linux-x64-gnu": "4.16.
|
|
122
|
-
"@rollup/rollup-linux-x64-musl": "4.16.
|
|
107
|
+
"@rollup/rollup-darwin-arm64": "4.16.3",
|
|
108
|
+
"@rollup/rollup-android-arm64": "4.16.3",
|
|
109
|
+
"@rollup/rollup-win32-arm64-msvc": "4.16.3",
|
|
110
|
+
"@rollup/rollup-linux-arm64-gnu": "4.16.3",
|
|
111
|
+
"@rollup/rollup-linux-arm64-musl": "4.16.3",
|
|
112
|
+
"@rollup/rollup-android-arm-eabi": "4.16.3",
|
|
113
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.16.3",
|
|
114
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.16.3",
|
|
115
|
+
"@rollup/rollup-win32-ia32-msvc": "4.16.3",
|
|
116
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.16.3",
|
|
117
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.16.3",
|
|
118
|
+
"@rollup/rollup-linux-s390x-gnu": "4.16.3",
|
|
119
|
+
"@rollup/rollup-darwin-x64": "4.16.3",
|
|
120
|
+
"@rollup/rollup-win32-x64-msvc": "4.16.3",
|
|
121
|
+
"@rollup/rollup-linux-x64-gnu": "4.16.3",
|
|
122
|
+
"@rollup/rollup-linux-x64-musl": "4.16.3"
|
|
123
123
|
},
|
|
124
124
|
"dependencies": {
|
|
125
125
|
"@types/estree": "1.0.5"
|