rollup 2.52.6 → 2.52.7
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 +10 -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 +33 -5
- 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 +33 -5
- 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.52.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.52.7
|
|
4
|
+
Fri, 02 Jul 2021 03:59:47 GMT - commit b2218ccda2765c48ae1db8bade9ec6889aaab250
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -14,7 +14,7 @@ import * as fs from 'fs';
|
|
|
14
14
|
import { lstatSync, realpathSync, readdirSync } from 'fs';
|
|
15
15
|
import { EventEmitter } from 'events';
|
|
16
16
|
|
|
17
|
-
var version$1 = "2.52.
|
|
17
|
+
var version$1 = "2.52.7";
|
|
18
18
|
|
|
19
19
|
var charToInteger = {};
|
|
20
20
|
var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -5155,6 +5155,7 @@ class RestElement extends NodeBase {
|
|
|
5155
5155
|
class FunctionNode extends NodeBase {
|
|
5156
5156
|
constructor() {
|
|
5157
5157
|
super(...arguments);
|
|
5158
|
+
this.deoptimizedReturn = false;
|
|
5158
5159
|
this.isPrototypeDeoptimized = false;
|
|
5159
5160
|
}
|
|
5160
5161
|
createScope(parentScope) {
|
|
@@ -5185,7 +5186,18 @@ class FunctionNode extends NodeBase {
|
|
|
5185
5186
|
}
|
|
5186
5187
|
}
|
|
5187
5188
|
getReturnExpressionWhenCalledAtPath(path) {
|
|
5188
|
-
|
|
5189
|
+
if (path.length !== 0) {
|
|
5190
|
+
return UNKNOWN_EXPRESSION;
|
|
5191
|
+
}
|
|
5192
|
+
if (this.async) {
|
|
5193
|
+
if (!this.deoptimizedReturn) {
|
|
5194
|
+
this.deoptimizedReturn = true;
|
|
5195
|
+
this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
|
|
5196
|
+
this.context.requestTreeshakingPass();
|
|
5197
|
+
}
|
|
5198
|
+
return UNKNOWN_EXPRESSION;
|
|
5199
|
+
}
|
|
5200
|
+
return this.scope.getReturnExpression();
|
|
5189
5201
|
}
|
|
5190
5202
|
hasEffects() {
|
|
5191
5203
|
return this.id !== null && this.id.hasEffects();
|
|
@@ -5947,6 +5959,10 @@ class BlockStatement extends NodeBase {
|
|
|
5947
5959
|
}
|
|
5948
5960
|
|
|
5949
5961
|
class ArrowFunctionExpression extends NodeBase {
|
|
5962
|
+
constructor() {
|
|
5963
|
+
super(...arguments);
|
|
5964
|
+
this.deoptimizedReturn = false;
|
|
5965
|
+
}
|
|
5950
5966
|
createScope(parentScope) {
|
|
5951
5967
|
this.scope = new ReturnValueScope(parentScope, this.context);
|
|
5952
5968
|
}
|
|
@@ -5960,7 +5976,18 @@ class ArrowFunctionExpression extends NodeBase {
|
|
|
5960
5976
|
// Arrow functions do not mutate their context
|
|
5961
5977
|
deoptimizeThisOnEventAtPath() { }
|
|
5962
5978
|
getReturnExpressionWhenCalledAtPath(path) {
|
|
5963
|
-
|
|
5979
|
+
if (path.length !== 0) {
|
|
5980
|
+
return UNKNOWN_EXPRESSION;
|
|
5981
|
+
}
|
|
5982
|
+
if (this.async) {
|
|
5983
|
+
if (!this.deoptimizedReturn) {
|
|
5984
|
+
this.deoptimizedReturn = true;
|
|
5985
|
+
this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
|
|
5986
|
+
this.context.requestTreeshakingPass();
|
|
5987
|
+
}
|
|
5988
|
+
return UNKNOWN_EXPRESSION;
|
|
5989
|
+
}
|
|
5990
|
+
return this.scope.getReturnExpression();
|
|
5964
5991
|
}
|
|
5965
5992
|
hasEffects() {
|
|
5966
5993
|
return false;
|
|
@@ -6167,6 +6194,7 @@ class AwaitExpression extends NodeBase {
|
|
|
6167
6194
|
applyDeoptimizations() {
|
|
6168
6195
|
this.deoptimized = true;
|
|
6169
6196
|
this.argument.deoptimizePath(UNKNOWN_PATH);
|
|
6197
|
+
this.context.requestTreeshakingPass();
|
|
6170
6198
|
}
|
|
6171
6199
|
}
|
|
6172
6200
|
|
package/dist/es/shared/watch.js
CHANGED
package/dist/loadConfigFile.js
CHANGED