rollup 2.75.0 → 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 +21 -0
- 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 +19 -4
- 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 +3 -3
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +19 -4
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +1 -1
package/dist/es/rollup.js
CHANGED
package/dist/es/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v2.75.
|
|
4
|
-
|
|
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
|
|
|
@@ -14,7 +14,7 @@ import { createHash as createHash$1 } from 'crypto';
|
|
|
14
14
|
import { promises } from 'fs';
|
|
15
15
|
import { EventEmitter } from 'events';
|
|
16
16
|
|
|
17
|
-
var version$1 = "2.75.
|
|
17
|
+
var version$1 = "2.75.3";
|
|
18
18
|
|
|
19
19
|
var charToInteger = {};
|
|
20
20
|
var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -6922,6 +6922,8 @@ class FunctionBase extends NodeBase {
|
|
|
6922
6922
|
return false;
|
|
6923
6923
|
}
|
|
6924
6924
|
include(context, includeChildrenRecursively, { includeWithoutParameterDefaults } = BLANK) {
|
|
6925
|
+
if (!this.deoptimized)
|
|
6926
|
+
this.applyDeoptimizations();
|
|
6925
6927
|
this.included = true;
|
|
6926
6928
|
const { brokenFlow } = context;
|
|
6927
6929
|
context.brokenFlow = BROKEN_FLOW_NONE;
|
|
@@ -6974,6 +6976,15 @@ class FunctionBase extends NodeBase {
|
|
|
6974
6976
|
}
|
|
6975
6977
|
super.parseNode(esTreeNode);
|
|
6976
6978
|
}
|
|
6979
|
+
applyDeoptimizations() {
|
|
6980
|
+
// We currently do not track deoptimizations of default values, deoptimize them
|
|
6981
|
+
// just as we deoptimize call arguments
|
|
6982
|
+
for (const param of this.params) {
|
|
6983
|
+
if (param instanceof AssignmentPattern) {
|
|
6984
|
+
param.right.deoptimizePath(UNKNOWN_PATH);
|
|
6985
|
+
}
|
|
6986
|
+
}
|
|
6987
|
+
}
|
|
6977
6988
|
}
|
|
6978
6989
|
FunctionBase.prototype.preventChildBlockScope = true;
|
|
6979
6990
|
|
|
@@ -6986,6 +6997,8 @@ class ArrowFunctionExpression extends FunctionBase {
|
|
|
6986
6997
|
this.scope = new ReturnValueScope(parentScope, this.context);
|
|
6987
6998
|
}
|
|
6988
6999
|
hasEffects() {
|
|
7000
|
+
if (!this.deoptimized)
|
|
7001
|
+
this.applyDeoptimizations();
|
|
6989
7002
|
return false;
|
|
6990
7003
|
}
|
|
6991
7004
|
hasEffectsWhenCalledAtPath(path, callOptions, context) {
|
|
@@ -8403,6 +8416,8 @@ class FunctionNode extends FunctionBase {
|
|
|
8403
8416
|
}
|
|
8404
8417
|
hasEffects() {
|
|
8405
8418
|
var _a;
|
|
8419
|
+
if (!this.deoptimized)
|
|
8420
|
+
this.applyDeoptimizations();
|
|
8406
8421
|
return !!((_a = this.id) === null || _a === void 0 ? void 0 : _a.hasEffects());
|
|
8407
8422
|
}
|
|
8408
8423
|
hasEffectsWhenCalledAtPath(path, callOptions, context) {
|
|
@@ -13499,7 +13514,7 @@ function warnOnBuiltins(warn, dependencies) {
|
|
|
13499
13514
|
return;
|
|
13500
13515
|
warn({
|
|
13501
13516
|
code: 'MISSING_NODE_BUILTINS',
|
|
13502
|
-
message: `Creating a browser bundle that depends on Node.js built-in modules (${printQuotedStringList(externalBuiltins)}). You might need to include https://github.com/
|
|
13517
|
+
message: `Creating a browser bundle that depends on Node.js built-in modules (${printQuotedStringList(externalBuiltins)}). You might need to include https://github.com/FredKSchott/rollup-plugin-polyfill-node`,
|
|
13503
13518
|
modules: externalBuiltins
|
|
13504
13519
|
});
|
|
13505
13520
|
}
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED