rollup 2.75.3 → 2.75.4

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/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.3
4
- Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
3
+ Rollup.js v2.75.4
4
+ Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
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.3
4
- Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
3
+ Rollup.js v2.75.4
4
+ Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
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.3";
17
+ var version$1 = "2.75.4";
18
18
 
19
19
  var charToInteger = {};
20
20
  var chars$1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@@ -1593,6 +1593,7 @@ class ExpressionEntity {
1593
1593
  constructor() {
1594
1594
  this.included = false;
1595
1595
  }
1596
+ deoptimizeCallParameters() { }
1596
1597
  deoptimizePath(_path) { }
1597
1598
  deoptimizeThisOnEventAtPath(_event, _path, thisParameter, _recursionTracker) {
1598
1599
  thisParameter.deoptimizePath(UNKNOWN_PATH);
@@ -5204,6 +5205,11 @@ const INCLUDE_PARAMETERS = 'variables';
5204
5205
  class NodeBase extends ExpressionEntity {
5205
5206
  constructor(esTreeNode, parent, parentScope) {
5206
5207
  super();
5208
+ // Nodes can apply custom deoptimizations once they become part of the
5209
+ // executed code. To do this, they must initialize this as false, implement
5210
+ // applyDeoptimizations and call this from include and hasEffects if they
5211
+ // have custom handlers
5212
+ this.deoptimized = false;
5207
5213
  this.esTreeNode = esTreeNode;
5208
5214
  this.keys = keys[esTreeNode.type] || getAndCreateKeys(esTreeNode);
5209
5215
  this.parent = parent;
@@ -5241,7 +5247,7 @@ class NodeBase extends ExpressionEntity {
5241
5247
  this.scope = parentScope;
5242
5248
  }
5243
5249
  hasEffects(context) {
5244
- if (this.deoptimized === false)
5250
+ if (!this.deoptimized)
5245
5251
  this.applyDeoptimizations();
5246
5252
  for (const key of this.keys) {
5247
5253
  const value = this[key];
@@ -5259,7 +5265,7 @@ class NodeBase extends ExpressionEntity {
5259
5265
  return false;
5260
5266
  }
5261
5267
  include(context, includeChildrenRecursively, _options) {
5262
- if (this.deoptimized === false)
5268
+ if (!this.deoptimized)
5263
5269
  this.applyDeoptimizations();
5264
5270
  this.included = true;
5265
5271
  for (const key of this.keys) {
@@ -5358,10 +5364,6 @@ class NodeBase extends ExpressionEntity {
5358
5364
  }
5359
5365
 
5360
5366
  class SpreadElement extends NodeBase {
5361
- constructor() {
5362
- super(...arguments);
5363
- this.deoptimized = false;
5364
- }
5365
5367
  deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker) {
5366
5368
  if (path.length > 0) {
5367
5369
  this.argument.deoptimizeThisOnEventAtPath(event, [UnknownKey, ...path], thisParameter, recursionTracker);
@@ -6040,7 +6042,6 @@ const ARRAY_PROTOTYPE = new ObjectEntity({
6040
6042
  class ArrayExpression extends NodeBase {
6041
6043
  constructor() {
6042
6044
  super(...arguments);
6043
- this.deoptimized = false;
6044
6045
  this.objectEntity = null;
6045
6046
  }
6046
6047
  deoptimizePath(path) {
@@ -6069,11 +6070,16 @@ class ArrayExpression extends NodeBase {
6069
6070
  let hasSpread = false;
6070
6071
  for (let index = 0; index < this.elements.length; index++) {
6071
6072
  const element = this.elements[index];
6072
- if (hasSpread || element instanceof SpreadElement) {
6073
- if (element) {
6073
+ if (element) {
6074
+ if (hasSpread || element instanceof SpreadElement) {
6074
6075
  hasSpread = true;
6076
+ // This also deoptimizes parameter defaults
6075
6077
  element.deoptimizePath(UNKNOWN_PATH);
6076
6078
  }
6079
+ else {
6080
+ // We do not track parameter defaults in arrays
6081
+ element.deoptimizeCallParameters();
6082
+ }
6077
6083
  }
6078
6084
  }
6079
6085
  this.context.requestTreeshakingPass();
@@ -6167,6 +6173,10 @@ class LocalVariable extends Variable {
6167
6173
  this.additionalInitializers = null;
6168
6174
  }
6169
6175
  }
6176
+ deoptimizeCallParameters() {
6177
+ var _a;
6178
+ (_a = this.init) === null || _a === void 0 ? void 0 : _a.deoptimizeCallParameters();
6179
+ }
6170
6180
  deoptimizePath(path) {
6171
6181
  var _a, _b;
6172
6182
  if (this.isReassigned ||
@@ -6513,10 +6523,6 @@ class ReturnValueScope extends ParameterScope {
6513
6523
  }
6514
6524
 
6515
6525
  class AssignmentPattern extends NodeBase {
6516
- constructor() {
6517
- super(...arguments);
6518
- this.deoptimized = false;
6519
- }
6520
6526
  addExportedVariables(variables, exportNamesByVariable) {
6521
6527
  this.left.addExportedVariables(variables, exportNamesByVariable);
6522
6528
  }
@@ -6752,6 +6758,7 @@ class ExpressionStatement extends NodeBase {
6752
6758
  return this.parent.type !== Program$1;
6753
6759
  return super.shouldBeIncluded(context);
6754
6760
  }
6761
+ applyDeoptimizations() { }
6755
6762
  }
6756
6763
 
6757
6764
  class BlockStatement extends NodeBase {
@@ -6812,7 +6819,6 @@ class BlockStatement extends NodeBase {
6812
6819
  class RestElement extends NodeBase {
6813
6820
  constructor() {
6814
6821
  super(...arguments);
6815
- this.deoptimized = false;
6816
6822
  this.declarationInit = null;
6817
6823
  }
6818
6824
  addExportedVariables(variables, exportNamesByVariable) {
@@ -6850,6 +6856,9 @@ class FunctionBase extends NodeBase {
6850
6856
  deoptimizeCache() {
6851
6857
  this.forceIncludeParameters = true;
6852
6858
  }
6859
+ deoptimizeCallParameters() {
6860
+ this.forceIncludeParameters = true;
6861
+ }
6853
6862
  deoptimizePath(path) {
6854
6863
  this.getObjectEntity().deoptimizePath(path);
6855
6864
  if (path.length === 1 && path[0] === UnknownKey) {
@@ -8012,7 +8021,6 @@ class Identifier extends NodeBase {
8012
8021
  constructor() {
8013
8022
  super(...arguments);
8014
8023
  this.variable = null;
8015
- this.deoptimized = false;
8016
8024
  this.isTDZAccess = null;
8017
8025
  }
8018
8026
  addExportedVariables(variables, exportNamesByVariable) {
@@ -8057,11 +8065,17 @@ class Identifier extends NodeBase {
8057
8065
  variable.kind = kind;
8058
8066
  return [(this.variable = variable)];
8059
8067
  }
8068
+ deoptimizeCallParameters() {
8069
+ this.variable.deoptimizeCallParameters();
8070
+ }
8060
8071
  deoptimizePath(path) {
8072
+ var _a;
8061
8073
  if (path.length === 0 && !this.scope.contains(this.name)) {
8062
8074
  this.disallowImportReassignment();
8063
8075
  }
8064
- this.variable.deoptimizePath(path);
8076
+ // We keep conditional chaining because an unknown Node could have an
8077
+ // Identifier as property that might be deoptimized by default
8078
+ (_a = this.variable) === null || _a === void 0 ? void 0 : _a.deoptimizePath(path);
8065
8079
  }
8066
8080
  deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker) {
8067
8081
  this.variable.deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker);
@@ -8224,10 +8238,6 @@ class ObjectPattern extends NodeBase {
8224
8238
  }
8225
8239
 
8226
8240
  class AssignmentExpression extends NodeBase {
8227
- constructor() {
8228
- super(...arguments);
8229
- this.deoptimized = false;
8230
- }
8231
8241
  hasEffects(context) {
8232
8242
  if (!this.deoptimized)
8233
8243
  this.applyDeoptimizations();
@@ -8473,10 +8483,6 @@ class FunctionNode extends FunctionBase {
8473
8483
  }
8474
8484
 
8475
8485
  class AwaitExpression extends NodeBase {
8476
- constructor() {
8477
- super(...arguments);
8478
- this.deoptimized = false;
8479
- }
8480
8486
  hasEffects() {
8481
8487
  if (!this.deoptimized)
8482
8488
  this.applyDeoptimizations();
@@ -8670,7 +8676,6 @@ class MemberExpression extends NodeBase {
8670
8676
  constructor() {
8671
8677
  super(...arguments);
8672
8678
  this.variable = null;
8673
- this.deoptimized = false;
8674
8679
  this.bound = false;
8675
8680
  this.expressionsToBeDeoptimized = [];
8676
8681
  this.replacement = null;
@@ -8920,7 +8925,6 @@ class MemberExpression extends NodeBase {
8920
8925
  class CallExpressionBase extends NodeBase {
8921
8926
  constructor() {
8922
8927
  super(...arguments);
8923
- this.deoptimized = false;
8924
8928
  this.returnExpression = null;
8925
8929
  this.deoptimizableDependentExpressions = [];
8926
8930
  this.expressionsToBeDeoptimized = new Set();
@@ -9171,6 +9175,7 @@ class ClassBody extends NodeBase {
9171
9175
  }
9172
9176
  super.parseNode(esTreeNode);
9173
9177
  }
9178
+ applyDeoptimizations() { }
9174
9179
  }
9175
9180
 
9176
9181
  class MethodBase extends NodeBase {
@@ -9222,6 +9227,7 @@ class MethodBase extends NodeBase {
9222
9227
  hasEffectsWhenCalledAtPath(path, callOptions, context) {
9223
9228
  return this.getAccessedValue().hasEffectsWhenCalledAtPath(path, callOptions, context);
9224
9229
  }
9230
+ applyDeoptimizations() { }
9225
9231
  getAccessedValue() {
9226
9232
  if (this.accessedValue === null) {
9227
9233
  if (this.kind === 'get') {
@@ -9237,6 +9243,42 @@ class MethodBase extends NodeBase {
9237
9243
  }
9238
9244
 
9239
9245
  class MethodDefinition extends MethodBase {
9246
+ applyDeoptimizations() { }
9247
+ }
9248
+
9249
+ class PropertyDefinition extends NodeBase {
9250
+ deoptimizePath(path) {
9251
+ var _a;
9252
+ (_a = this.value) === null || _a === void 0 ? void 0 : _a.deoptimizePath(path);
9253
+ }
9254
+ deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker) {
9255
+ var _a;
9256
+ (_a = this.value) === null || _a === void 0 ? void 0 : _a.deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker);
9257
+ }
9258
+ getLiteralValueAtPath(path, recursionTracker, origin) {
9259
+ return this.value
9260
+ ? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
9261
+ : UnknownValue;
9262
+ }
9263
+ getReturnExpressionWhenCalledAtPath(path, callOptions, recursionTracker, origin) {
9264
+ return this.value
9265
+ ? this.value.getReturnExpressionWhenCalledAtPath(path, callOptions, recursionTracker, origin)
9266
+ : UNKNOWN_EXPRESSION;
9267
+ }
9268
+ hasEffects(context) {
9269
+ var _a;
9270
+ return this.key.hasEffects(context) || (this.static && !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.hasEffects(context)));
9271
+ }
9272
+ hasEffectsWhenAccessedAtPath(path, context) {
9273
+ return !this.value || this.value.hasEffectsWhenAccessedAtPath(path, context);
9274
+ }
9275
+ hasEffectsWhenAssignedAtPath(path, context) {
9276
+ return !this.value || this.value.hasEffectsWhenAssignedAtPath(path, context);
9277
+ }
9278
+ hasEffectsWhenCalledAtPath(path, callOptions, context) {
9279
+ return !this.value || this.value.hasEffectsWhenCalledAtPath(path, callOptions, context);
9280
+ }
9281
+ applyDeoptimizations() { }
9240
9282
  }
9241
9283
 
9242
9284
  class ObjectMember extends ExpressionEntity {
@@ -9271,7 +9313,6 @@ class ObjectMember extends ExpressionEntity {
9271
9313
  class ClassNode extends NodeBase {
9272
9314
  constructor() {
9273
9315
  super(...arguments);
9274
- this.deoptimized = false;
9275
9316
  this.objectEntity = null;
9276
9317
  }
9277
9318
  createScope(parentScope) {
@@ -9350,6 +9391,7 @@ class ClassNode extends NodeBase {
9350
9391
  this.classConstructor = null;
9351
9392
  }
9352
9393
  applyDeoptimizations() {
9394
+ var _a, _b;
9353
9395
  this.deoptimized = true;
9354
9396
  for (const definition of this.body.body) {
9355
9397
  if (!(definition.static ||
@@ -9357,7 +9399,11 @@ class ClassNode extends NodeBase {
9357
9399
  // Calls to methods are not tracked, ensure that the return value is deoptimized
9358
9400
  definition.deoptimizePath(UNKNOWN_PATH);
9359
9401
  }
9402
+ else if (definition instanceof PropertyDefinition) {
9403
+ (_a = definition.value) === null || _a === void 0 ? void 0 : _a.deoptimizeCallParameters();
9404
+ }
9360
9405
  }
9406
+ (_b = this.superClass) === null || _b === void 0 ? void 0 : _b.deoptimizeCallParameters();
9361
9407
  this.context.requestTreeshakingPass();
9362
9408
  }
9363
9409
  getObjectEntity() {
@@ -9686,6 +9732,7 @@ class ExportAllDeclaration extends NodeBase {
9686
9732
  render(code, _options, nodeRenderOptions) {
9687
9733
  code.remove(nodeRenderOptions.start, nodeRenderOptions.end);
9688
9734
  }
9735
+ applyDeoptimizations() { }
9689
9736
  }
9690
9737
  ExportAllDeclaration.prototype.needsBoundaries = true;
9691
9738
 
@@ -9763,6 +9810,7 @@ class ExportDefaultDeclaration extends NodeBase {
9763
9810
  }
9764
9811
  this.declaration.render(code, options);
9765
9812
  }
9813
+ applyDeoptimizations() { }
9766
9814
  renderNamedDeclaration(code, declarationStart, declarationKeyword, endMarker, needsId, options) {
9767
9815
  const { exportNamesByVariable, format, snippets: { getPropertyAccess } } = options;
9768
9816
  const name = this.variable.getName(getPropertyAccess);
@@ -9817,17 +9865,15 @@ class ExportNamedDeclaration extends NodeBase {
9817
9865
  this.declaration.render(code, options, { end, start });
9818
9866
  }
9819
9867
  }
9868
+ applyDeoptimizations() { }
9820
9869
  }
9821
9870
  ExportNamedDeclaration.prototype.needsBoundaries = true;
9822
9871
 
9823
9872
  class ExportSpecifier extends NodeBase {
9873
+ applyDeoptimizations() { }
9824
9874
  }
9825
9875
 
9826
9876
  class ForInStatement extends NodeBase {
9827
- constructor() {
9828
- super(...arguments);
9829
- this.deoptimized = false;
9830
- }
9831
9877
  createScope(parentScope) {
9832
9878
  this.scope = new BlockScope(parentScope);
9833
9879
  }
@@ -9876,10 +9922,6 @@ class ForInStatement extends NodeBase {
9876
9922
  }
9877
9923
 
9878
9924
  class ForOfStatement extends NodeBase {
9879
- constructor() {
9880
- super(...arguments);
9881
- this.deoptimized = false;
9882
- }
9883
9925
  createScope(parentScope) {
9884
9926
  this.scope = new BlockScope(parentScope);
9885
9927
  }
@@ -10074,6 +10116,7 @@ class IfStatement extends NodeBase {
10074
10116
  }
10075
10117
  this.renderHoistedDeclarations(hoistedDeclarations, code, getPropertyAccess);
10076
10118
  }
10119
+ applyDeoptimizations() { }
10077
10120
  getTestValue() {
10078
10121
  if (this.testValue === unset) {
10079
10122
  return (this.testValue = this.test.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, this));
@@ -10159,10 +10202,12 @@ class ImportDeclaration extends NodeBase {
10159
10202
  render(code, _options, nodeRenderOptions) {
10160
10203
  code.remove(nodeRenderOptions.start, nodeRenderOptions.end);
10161
10204
  }
10205
+ applyDeoptimizations() { }
10162
10206
  }
10163
10207
  ImportDeclaration.prototype.needsBoundaries = true;
10164
10208
 
10165
10209
  class ImportDefaultSpecifier extends NodeBase {
10210
+ applyDeoptimizations() { }
10166
10211
  }
10167
10212
 
10168
10213
  const INTEROP_DEFAULT_VARIABLE = '_interopDefault';
@@ -10421,6 +10466,7 @@ class ImportExpression extends NodeBase {
10421
10466
  setInternalResolution(inlineNamespace) {
10422
10467
  this.inlineNamespace = inlineNamespace;
10423
10468
  }
10469
+ applyDeoptimizations() { }
10424
10470
  getDynamicImportMechanismAndHelper(resolution, exportMode, { compact, dynamicImportFunction, format, generatedCode: { arrowFunctions }, interop }, { _, getDirectReturnFunction, getDirectReturnIifeLeft }, pluginDriver) {
10425
10471
  const mechanism = pluginDriver.hookFirstSync('renderDynamicImport', [
10426
10472
  {
@@ -10529,9 +10575,11 @@ const accessedImportGlobals = {
10529
10575
  };
10530
10576
 
10531
10577
  class ImportNamespaceSpecifier extends NodeBase {
10578
+ applyDeoptimizations() { }
10532
10579
  }
10533
10580
 
10534
10581
  class ImportSpecifier extends NodeBase {
10582
+ applyDeoptimizations() { }
10535
10583
  }
10536
10584
 
10537
10585
  class LabeledStatement extends NodeBase {
@@ -10877,10 +10925,6 @@ const importMetaMechanisms = {
10877
10925
  };
10878
10926
 
10879
10927
  class NewExpression extends NodeBase {
10880
- constructor() {
10881
- super(...arguments);
10882
- this.deoptimized = false;
10883
- }
10884
10928
  hasEffects(context) {
10885
10929
  try {
10886
10930
  for (const argument of this.arguments) {
@@ -10930,6 +10974,42 @@ class NewExpression extends NodeBase {
10930
10974
  }
10931
10975
  }
10932
10976
 
10977
+ class Property extends MethodBase {
10978
+ constructor() {
10979
+ super(...arguments);
10980
+ this.declarationInit = null;
10981
+ }
10982
+ declare(kind, init) {
10983
+ this.declarationInit = init;
10984
+ return this.value.declare(kind, UNKNOWN_EXPRESSION);
10985
+ }
10986
+ hasEffects(context) {
10987
+ if (!this.deoptimized)
10988
+ this.applyDeoptimizations();
10989
+ const propertyReadSideEffects = this.context.options.treeshake
10990
+ .propertyReadSideEffects;
10991
+ return ((this.parent.type === 'ObjectPattern' && propertyReadSideEffects === 'always') ||
10992
+ this.key.hasEffects(context) ||
10993
+ this.value.hasEffects(context));
10994
+ }
10995
+ markDeclarationReached() {
10996
+ this.value.markDeclarationReached();
10997
+ }
10998
+ render(code, options) {
10999
+ if (!this.shorthand) {
11000
+ this.key.render(code, options);
11001
+ }
11002
+ this.value.render(code, options, { isShorthandProperty: this.shorthand });
11003
+ }
11004
+ applyDeoptimizations() {
11005
+ this.deoptimized = true;
11006
+ if (this.declarationInit !== null) {
11007
+ this.declarationInit.deoptimizePath([UnknownKey, UnknownKey]);
11008
+ this.context.requestTreeshakingPass();
11009
+ }
11010
+ }
11011
+ }
11012
+
10933
11013
  class ObjectExpression extends NodeBase {
10934
11014
  constructor() {
10935
11015
  super(...arguments);
@@ -10967,6 +11047,14 @@ class ObjectExpression extends NodeBase {
10967
11047
  code.prependLeft(this.end, ')');
10968
11048
  }
10969
11049
  }
11050
+ applyDeoptimizations() {
11051
+ this.deoptimized = true;
11052
+ for (const property of this.properties) {
11053
+ if (property instanceof Property) {
11054
+ property.value.deoptimizeCallParameters();
11055
+ }
11056
+ }
11057
+ }
10970
11058
  getObjectEntity() {
10971
11059
  if (this.objectEntity !== null) {
10972
11060
  return this.objectEntity;
@@ -11043,77 +11131,7 @@ class Program extends NodeBase {
11043
11131
  super.render(code, options);
11044
11132
  }
11045
11133
  }
11046
- }
11047
-
11048
- class Property extends MethodBase {
11049
- constructor() {
11050
- super(...arguments);
11051
- this.deoptimized = false;
11052
- this.declarationInit = null;
11053
- }
11054
- declare(kind, init) {
11055
- this.declarationInit = init;
11056
- return this.value.declare(kind, UNKNOWN_EXPRESSION);
11057
- }
11058
- hasEffects(context) {
11059
- if (!this.deoptimized)
11060
- this.applyDeoptimizations();
11061
- const propertyReadSideEffects = this.context.options.treeshake
11062
- .propertyReadSideEffects;
11063
- return ((this.parent.type === 'ObjectPattern' && propertyReadSideEffects === 'always') ||
11064
- this.key.hasEffects(context) ||
11065
- this.value.hasEffects(context));
11066
- }
11067
- markDeclarationReached() {
11068
- this.value.markDeclarationReached();
11069
- }
11070
- render(code, options) {
11071
- if (!this.shorthand) {
11072
- this.key.render(code, options);
11073
- }
11074
- this.value.render(code, options, { isShorthandProperty: this.shorthand });
11075
- }
11076
- applyDeoptimizations() {
11077
- this.deoptimized = true;
11078
- if (this.declarationInit !== null) {
11079
- this.declarationInit.deoptimizePath([UnknownKey, UnknownKey]);
11080
- this.context.requestTreeshakingPass();
11081
- }
11082
- }
11083
- }
11084
-
11085
- class PropertyDefinition extends NodeBase {
11086
- deoptimizePath(path) {
11087
- var _a;
11088
- (_a = this.value) === null || _a === void 0 ? void 0 : _a.deoptimizePath(path);
11089
- }
11090
- deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker) {
11091
- var _a;
11092
- (_a = this.value) === null || _a === void 0 ? void 0 : _a.deoptimizeThisOnEventAtPath(event, path, thisParameter, recursionTracker);
11093
- }
11094
- getLiteralValueAtPath(path, recursionTracker, origin) {
11095
- return this.value
11096
- ? this.value.getLiteralValueAtPath(path, recursionTracker, origin)
11097
- : UnknownValue;
11098
- }
11099
- getReturnExpressionWhenCalledAtPath(path, callOptions, recursionTracker, origin) {
11100
- return this.value
11101
- ? this.value.getReturnExpressionWhenCalledAtPath(path, callOptions, recursionTracker, origin)
11102
- : UNKNOWN_EXPRESSION;
11103
- }
11104
- hasEffects(context) {
11105
- var _a;
11106
- return this.key.hasEffects(context) || (this.static && !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.hasEffects(context)));
11107
- }
11108
- hasEffectsWhenAccessedAtPath(path, context) {
11109
- return !this.value || this.value.hasEffectsWhenAccessedAtPath(path, context);
11110
- }
11111
- hasEffectsWhenAssignedAtPath(path, context) {
11112
- return !this.value || this.value.hasEffectsWhenAssignedAtPath(path, context);
11113
- }
11114
- hasEffectsWhenCalledAtPath(path, callOptions, context) {
11115
- return !this.value || this.value.hasEffectsWhenCalledAtPath(path, callOptions, context);
11116
- }
11134
+ applyDeoptimizations() { }
11117
11135
  }
11118
11136
 
11119
11137
  class ReturnStatement extends NodeBase {
@@ -11710,10 +11728,6 @@ const unaryOperators = {
11710
11728
  '~': value => ~value
11711
11729
  };
11712
11730
  class UnaryExpression extends NodeBase {
11713
- constructor() {
11714
- super(...arguments);
11715
- this.deoptimized = false;
11716
- }
11717
11731
  getLiteralValueAtPath(path, recursionTracker, origin) {
11718
11732
  if (path.length > 0)
11719
11733
  return UnknownValue;
@@ -11756,10 +11770,6 @@ class UnknownNode extends NodeBase {
11756
11770
  }
11757
11771
 
11758
11772
  class UpdateExpression extends NodeBase {
11759
- constructor() {
11760
- super(...arguments);
11761
- this.deoptimized = false;
11762
- }
11763
11773
  hasEffects(context) {
11764
11774
  if (!this.deoptimized)
11765
11775
  this.applyDeoptimizations();
@@ -11861,6 +11871,7 @@ class VariableDeclaration extends NodeBase {
11861
11871
  this.renderReplacedDeclarations(code, options);
11862
11872
  }
11863
11873
  }
11874
+ applyDeoptimizations() { }
11864
11875
  renderDeclarationEnd(code, separatorString, lastSeparatorPos, actualContentEnd, renderedContentEnd, systemPatternExports, options) {
11865
11876
  if (code.original.charCodeAt(this.end - 1) === 59 /*";"*/) {
11866
11877
  code.remove(this.end - 1, this.end);
@@ -12017,6 +12028,7 @@ class VariableDeclarator extends NodeBase {
12017
12028
  code.appendLeft(this.end, `${_}=${_}void 0`);
12018
12029
  }
12019
12030
  }
12031
+ applyDeoptimizations() { }
12020
12032
  }
12021
12033
 
12022
12034
  class WhileStatement extends NodeBase {
@@ -12043,10 +12055,6 @@ class WhileStatement extends NodeBase {
12043
12055
  }
12044
12056
 
12045
12057
  class YieldExpression extends NodeBase {
12046
- constructor() {
12047
- super(...arguments);
12048
- this.deoptimized = false;
12049
- }
12050
12058
  hasEffects(context) {
12051
12059
  var _a;
12052
12060
  if (!this.deoptimized)
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v2.75.3
4
- Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
3
+ Rollup.js v2.75.4
4
+ Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
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.3
4
- Sun, 29 May 2022 14:46:24 GMT - commit 279581594d642307218126f20092aaf822084d6a
3
+ Rollup.js v2.75.4
4
+ Tue, 31 May 2022 11:26:29 GMT - commit 0409bf0d8859a43f2d5d40dc23ebf74afadb83f7
5
5
 
6
6
  https://github.com/rollup/rollup
7
7