rollup 2.69.1 → 2.69.2
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 +14 -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 +30 -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 +2 -2
- package/dist/shared/mergeOptions.js +2 -2
- package/dist/shared/rollup.js +30 -4
- 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.69.
|
|
4
|
-
|
|
3
|
+
Rollup.js v2.69.2
|
|
4
|
+
Sun, 06 Mar 2022 06:43:03 GMT - commit 68817534499a6a1392c465d7fe92a1ef6804ad45
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
@@ -28,7 +28,7 @@ function _interopNamespaceDefault(e) {
|
|
|
28
28
|
return n;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
var version$1 = "2.69.
|
|
31
|
+
var version$1 = "2.69.2";
|
|
32
32
|
|
|
33
33
|
function ensureArray$1(items) {
|
|
34
34
|
if (Array.isArray(items)) {
|
|
@@ -5904,6 +5904,30 @@ class ObjectEntity extends ExpressionEntity {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
}
|
|
5906
5906
|
|
|
5907
|
+
const isInteger = (prop) => typeof prop === 'string' && /^\d+$/.test(prop);
|
|
5908
|
+
// This makes sure unknown properties are not handled as "undefined" but as
|
|
5909
|
+
// "unknown" but without access side effects. An exception is done for numeric
|
|
5910
|
+
// properties as we do not expect new builtin properties to be numbers, this
|
|
5911
|
+
// will improve tree-shaking for out-of-bounds array properties
|
|
5912
|
+
const OBJECT_PROTOTYPE_FALLBACK = new (class ObjectPrototypeFallbackExpression extends ExpressionEntity {
|
|
5913
|
+
deoptimizeThisOnEventAtPath(event, path, thisParameter) {
|
|
5914
|
+
if (event === EVENT_CALLED && path.length === 1 && !isInteger(path[0])) {
|
|
5915
|
+
thisParameter.deoptimizePath(UNKNOWN_PATH);
|
|
5916
|
+
}
|
|
5917
|
+
}
|
|
5918
|
+
getLiteralValueAtPath(path) {
|
|
5919
|
+
// We ignore number properties as we do not expect new properties to be
|
|
5920
|
+
// numbers and also want to keep handling out-of-bound array elements as
|
|
5921
|
+
// "undefined"
|
|
5922
|
+
return path.length === 1 && isInteger(path[0]) ? undefined : UnknownValue;
|
|
5923
|
+
}
|
|
5924
|
+
hasEffectsWhenAccessedAtPath(path) {
|
|
5925
|
+
return path.length > 1;
|
|
5926
|
+
}
|
|
5927
|
+
hasEffectsWhenAssignedAtPath(path) {
|
|
5928
|
+
return path.length > 1;
|
|
5929
|
+
}
|
|
5930
|
+
})();
|
|
5907
5931
|
const OBJECT_PROTOTYPE = new ObjectEntity({
|
|
5908
5932
|
__proto__: null,
|
|
5909
5933
|
hasOwnProperty: METHOD_RETURNS_BOOLEAN,
|
|
@@ -5912,7 +5936,7 @@ const OBJECT_PROTOTYPE = new ObjectEntity({
|
|
|
5912
5936
|
toLocaleString: METHOD_RETURNS_STRING,
|
|
5913
5937
|
toString: METHOD_RETURNS_STRING,
|
|
5914
5938
|
valueOf: METHOD_RETURNS_UNKNOWN
|
|
5915
|
-
},
|
|
5939
|
+
}, OBJECT_PROTOTYPE_FALLBACK, true);
|
|
5916
5940
|
|
|
5917
5941
|
const NEW_ARRAY_PROPERTIES = [
|
|
5918
5942
|
{ key: UnknownInteger, kind: 'init', property: UNKNOWN_EXPRESSION },
|
|
@@ -6980,6 +7004,8 @@ const knownGlobals = {
|
|
|
6980
7004
|
isFrozen: PF,
|
|
6981
7005
|
isSealed: PF,
|
|
6982
7006
|
keys: PF,
|
|
7007
|
+
fromEntries: PF,
|
|
7008
|
+
entries: PF,
|
|
6983
7009
|
prototype: O
|
|
6984
7010
|
},
|
|
6985
7011
|
parseFloat: PF,
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED