rollup 2.75.2 → 2.75.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/CHANGELOG.md +1 -1
- package/dist/bin/rollup +2 -2
- package/dist/es/rollup.browser.js +3 -3
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/rollup.js +18 -3
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.browser.js +3 -3
- package/dist/rollup.browser.js.map +1 -1
- package/dist/rollup.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +18 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.75.
|
|
4
|
-
Sun, 29 May 2022
|
|
3
|
+
Rollup.js v2.75.3
|
|
4
|
+
Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ function _interopNamespaceDefault(e) {
|
|
|
27
27
|
return n;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version$1 = "2.75.
|
|
30
|
+
var version$1 = "2.75.3";
|
|
31
31
|
|
|
32
32
|
function ensureArray$1(items) {
|
|
33
33
|
if (Array.isArray(items)) {
|
|
@@ -7053,6 +7053,8 @@ class FunctionBase extends NodeBase {
|
|
|
7053
7053
|
return false;
|
|
7054
7054
|
}
|
|
7055
7055
|
include(context, includeChildrenRecursively, { includeWithoutParameterDefaults } = BLANK) {
|
|
7056
|
+
if (!this.deoptimized)
|
|
7057
|
+
this.applyDeoptimizations();
|
|
7056
7058
|
this.included = true;
|
|
7057
7059
|
const { brokenFlow } = context;
|
|
7058
7060
|
context.brokenFlow = BROKEN_FLOW_NONE;
|
|
@@ -7105,6 +7107,15 @@ class FunctionBase extends NodeBase {
|
|
|
7105
7107
|
}
|
|
7106
7108
|
super.parseNode(esTreeNode);
|
|
7107
7109
|
}
|
|
7110
|
+
applyDeoptimizations() {
|
|
7111
|
+
// We currently do not track deoptimizations of default values, deoptimize them
|
|
7112
|
+
// just as we deoptimize call arguments
|
|
7113
|
+
for (const param of this.params) {
|
|
7114
|
+
if (param instanceof AssignmentPattern) {
|
|
7115
|
+
param.right.deoptimizePath(UNKNOWN_PATH);
|
|
7116
|
+
}
|
|
7117
|
+
}
|
|
7118
|
+
}
|
|
7108
7119
|
}
|
|
7109
7120
|
FunctionBase.prototype.preventChildBlockScope = true;
|
|
7110
7121
|
|
|
@@ -7117,6 +7128,8 @@ class ArrowFunctionExpression extends FunctionBase {
|
|
|
7117
7128
|
this.scope = new ReturnValueScope(parentScope, this.context);
|
|
7118
7129
|
}
|
|
7119
7130
|
hasEffects() {
|
|
7131
|
+
if (!this.deoptimized)
|
|
7132
|
+
this.applyDeoptimizations();
|
|
7120
7133
|
return false;
|
|
7121
7134
|
}
|
|
7122
7135
|
hasEffectsWhenCalledAtPath(path, callOptions, context) {
|
|
@@ -8534,6 +8547,8 @@ class FunctionNode extends FunctionBase {
|
|
|
8534
8547
|
}
|
|
8535
8548
|
hasEffects() {
|
|
8536
8549
|
var _a;
|
|
8550
|
+
if (!this.deoptimized)
|
|
8551
|
+
this.applyDeoptimizations();
|
|
8537
8552
|
return !!((_a = this.id) === null || _a === void 0 ? void 0 : _a.hasEffects());
|
|
8538
8553
|
}
|
|
8539
8554
|
hasEffectsWhenCalledAtPath(path, callOptions, context) {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED