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/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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.2";
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) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.2
4
- Sun, 29 May 2022 13:58:04 GMT - commit a971f09f6c34c65e71470249783d0dcce02a9468
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "2.75.2",
3
+ "version": "2.75.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",