rollup 2.53.2 → 2.53.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 +9 -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 +18 -13
- 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 -13
- 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.53.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.53.3
|
|
4
|
+
Wed, 21 Jul 2021 06:45:44 GMT - commit ae8f57f926433f9ef3a3ecdd39b224674c7e68af
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -19,7 +19,7 @@ function _interopNamespaceDefaultOnly(e) {
|
|
|
19
19
|
return {__proto__: null, 'default': e};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
var version$1 = "2.53.
|
|
22
|
+
var version$1 = "2.53.3";
|
|
23
23
|
|
|
24
24
|
function ensureArray(items) {
|
|
25
25
|
if (Array.isArray(items)) {
|
|
@@ -3394,8 +3394,8 @@ const MAX_PATH_DEPTH = 7;
|
|
|
3394
3394
|
class LocalVariable extends Variable {
|
|
3395
3395
|
constructor(name, declarator, init, context) {
|
|
3396
3396
|
super(name);
|
|
3397
|
-
this.additionalInitializers = null;
|
|
3398
3397
|
this.calledFromTryStatement = false;
|
|
3398
|
+
this.additionalInitializers = null;
|
|
3399
3399
|
this.expressionsToBeDeoptimized = [];
|
|
3400
3400
|
this.declarations = declarator ? [declarator] : [];
|
|
3401
3401
|
this.init = init;
|
|
@@ -3404,13 +3404,9 @@ class LocalVariable extends Variable {
|
|
|
3404
3404
|
}
|
|
3405
3405
|
addDeclaration(identifier, init) {
|
|
3406
3406
|
this.declarations.push(identifier);
|
|
3407
|
-
|
|
3408
|
-
this.additionalInitializers = this.init === null ? [] : [this.init];
|
|
3409
|
-
this.init = UNKNOWN_EXPRESSION;
|
|
3410
|
-
this.isReassigned = true;
|
|
3411
|
-
}
|
|
3407
|
+
const additionalInitializers = this.markInitializersForDeoptimization();
|
|
3412
3408
|
if (init !== null) {
|
|
3413
|
-
|
|
3409
|
+
additionalInitializers.push(init);
|
|
3414
3410
|
}
|
|
3415
3411
|
}
|
|
3416
3412
|
consolidateInitializers() {
|
|
@@ -3526,6 +3522,14 @@ class LocalVariable extends Variable {
|
|
|
3526
3522
|
markCalledFromTryStatement() {
|
|
3527
3523
|
this.calledFromTryStatement = true;
|
|
3528
3524
|
}
|
|
3525
|
+
markInitializersForDeoptimization() {
|
|
3526
|
+
if (this.additionalInitializers === null) {
|
|
3527
|
+
this.additionalInitializers = this.init === null ? [] : [this.init];
|
|
3528
|
+
this.init = UNKNOWN_EXPRESSION;
|
|
3529
|
+
this.isReassigned = true;
|
|
3530
|
+
}
|
|
3531
|
+
return this.additionalInitializers;
|
|
3532
|
+
}
|
|
3529
3533
|
}
|
|
3530
3534
|
|
|
3531
3535
|
class Scope$1 {
|
|
@@ -4578,7 +4582,7 @@ class Identifier extends NodeBase {
|
|
|
4578
4582
|
variable = this.scope.addDeclaration(this, this.context, init, true);
|
|
4579
4583
|
if (treeshake && treeshake.correctVarValueBeforeDeclaration) {
|
|
4580
4584
|
// Necessary to make sure the init is deoptimized. We cannot call deoptimizePath here.
|
|
4581
|
-
|
|
4585
|
+
variable.markInitializersForDeoptimization();
|
|
4582
4586
|
}
|
|
4583
4587
|
break;
|
|
4584
4588
|
case 'function':
|
|
@@ -6414,10 +6418,11 @@ class ArrayPattern extends NodeBase {
|
|
|
6414
6418
|
class BlockScope extends ChildScope {
|
|
6415
6419
|
addDeclaration(identifier, context, init, isHoisted) {
|
|
6416
6420
|
if (isHoisted) {
|
|
6417
|
-
this.parent.addDeclaration(identifier, context, init, isHoisted);
|
|
6421
|
+
const variable = this.parent.addDeclaration(identifier, context, init, isHoisted);
|
|
6418
6422
|
// Necessary to make sure the init is deoptimized for conditional declarations.
|
|
6419
6423
|
// We cannot call deoptimizePath here.
|
|
6420
|
-
|
|
6424
|
+
variable.markInitializersForDeoptimization();
|
|
6425
|
+
return variable;
|
|
6421
6426
|
}
|
|
6422
6427
|
else {
|
|
6423
6428
|
return super.addDeclaration(identifier, context, init, false);
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED