@rollup/wasm-node 4.63.6 → 4.64.0

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.
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
- import { EMPTY_OBJECT, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, ExpressionStatement as ExpressionStatement$1, AwaitExpression as AwaitExpression$1, MemberExpression as MemberExpression$1, Identifier as Identifier$1, FunctionExpression as FunctionExpression$1, ArrowFunctionExpression as ArrowFunctionExpression$1, ObjectExpression as ObjectExpression$1, Property as Property$1, Program as Program$1, logIllegalImportReassignment, BLANK, logRedeclarationError, StaticBlock as StaticBlock$1, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, logMissingExport, normalize, getImportPath, error, logSourcePhaseFormatUnsupported, logMissingNodeBuiltins, logReservedNamespace, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, RestElement as RestElement$1, logConstVariableReassignError, EMPTY_SET, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logModuleParseError, logParseError, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, logThisIsUndefined, getAstBuffer, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logMissingEntryExport, logSyntheticNamedExportsNeedNamespaceExport, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logMissingJsxExport, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logCircularReexport, logInvalidFormatForTopLevelAwait, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logFileNameOutsideOutputDirectory, logCannotAssignModuleToChunk, logCircularChunk, logUnknownOption, printQuotedStringList, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, logAnonymousPluginCache, logDuplicatePluginName, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, warnDeprecation, URL_TRANSFORM, relativeId, logBadLoader, logNonExternalSourcePhaseImport, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logExternalModulesCannotBeTransformedToModules, URL_LOAD, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logChunkNotGeneratedForFileName, logAssetNotFinalisedForFileName, logFileNameConflict, URL_GENERATEBUNDLE, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidAddonPluginHook, logInvalidFunctionPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_JSX, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_GENERATEDCODE, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_MANUALCHUNKS, logInvalidExportOptionValue, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_INTEROP, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
10
+ import { EMPTY_OBJECT, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Identifier as Identifier$1, ExpressionStatement as ExpressionStatement$1, AwaitExpression as AwaitExpression$1, MemberExpression as MemberExpression$1, FunctionExpression as FunctionExpression$1, ArrowFunctionExpression as ArrowFunctionExpression$1, ObjectExpression as ObjectExpression$1, Property as Property$1, Program as Program$1, logIllegalImportReassignment, BLANK, logRedeclarationError, StaticBlock as StaticBlock$1, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, logMissingExport, normalize, getImportPath, error, logSourcePhaseFormatUnsupported, logMissingNodeBuiltins, logReservedNamespace, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, RestElement as RestElement$1, logConstVariableReassignError, EMPTY_SET, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logModuleParseError, logParseError, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, logThisIsUndefined, getAstBuffer, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logMissingEntryExport, logSyntheticNamedExportsNeedNamespaceExport, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logMissingJsxExport, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logCircularReexport, logInvalidFormatForTopLevelAwait, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logFileNameOutsideOutputDirectory, logCannotAssignModuleToChunk, logCircularChunk, logUnknownOption, printQuotedStringList, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, logAnonymousPluginCache, logDuplicatePluginName, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, warnDeprecation, URL_TRANSFORM, relativeId, logBadLoader, logNonExternalSourcePhaseImport, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logExternalModulesCannotBeTransformedToModules, URL_LOAD, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logChunkNotGeneratedForFileName, logAssetNotFinalisedForFileName, logFileNameConflict, URL_GENERATEBUNDLE, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidAddonPluginHook, logInvalidFunctionPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_JSX, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_GENERATEDCODE, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_MANUALCHUNKS, logInvalidExportOptionValue, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_INTEROP, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
11
11
  import { relative, dirname, basename, extname, resolve as resolve$1, join } from 'node:path';
12
12
  import { posix, isAbsolute, resolve, win32 } from 'path';
13
13
  import { parseAsync, xxhashBase16, xxhashBase64Url, xxhashBase36 } from '../../native.js';
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
27
27
  return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
28
28
  }
29
29
 
30
- var version = "4.63.6";
30
+ var version = "4.64.0";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -2437,6 +2437,7 @@ function createInclusionContext() {
2437
2437
  hasBreak: false,
2438
2438
  hasContinue: false,
2439
2439
  includedCallArguments: new Set(),
2440
+ includedCallArgumentsOfPossibleValues: null,
2440
2441
  includedLabels: new Set()
2441
2442
  };
2442
2443
  }
@@ -2510,11 +2511,7 @@ class ExpressionEntity {
2510
2511
  if (!this.included)
2511
2512
  this.includeNode(context);
2512
2513
  }
2513
- /* We are both including and including an unknown path here as the former
2514
- * ensures that nested nodes are included while the latter ensures that all
2515
- * paths of the expression are included.
2516
- * */
2517
- includeCallArguments(interaction, context) {
2514
+ includeCallArgumentsWhenCalledAtPath(_path, interaction, context) {
2518
2515
  includeInteraction(interaction, context);
2519
2516
  }
2520
2517
  shouldBeIncluded(_context) {
@@ -2538,6 +2535,10 @@ const includeInteraction = (interaction, context) => {
2538
2535
  interaction.args[0]?.includePath(UNKNOWN_PATH, context);
2539
2536
  includeInteractionWithoutThis(interaction, context);
2540
2537
  };
2538
+ /* We are running both include() and includePath(UNKNOWN_PATH) here as the former
2539
+ * ensures that nested nodes are included while the latter ensures that all
2540
+ * paths of the expression are included.
2541
+ * */
2541
2542
  const includeInteractionWithoutThis = ({ args }, context) => {
2542
2543
  for (let argumentIndex = 1; argumentIndex < args.length; argumentIndex++) {
2543
2544
  const argument = args[argumentIndex];
@@ -2669,6 +2670,7 @@ class Variable extends ExpressionEntity {
2669
2670
  this.renderedLikeHoisted = variable;
2670
2671
  }
2671
2672
  markCalledFromTryStatement() { }
2673
+ addReassignedValue(_value) { }
2672
2674
  setRenderNames(baseName, name) {
2673
2675
  this.renderBaseName = baseName;
2674
2676
  this.renderName = name;
@@ -3851,6 +3853,37 @@ class ObjectEntity extends ExpressionEntity {
3851
3853
  }
3852
3854
  this.prototypeExpression?.includePath(path, context);
3853
3855
  }
3856
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
3857
+ // Mirrors deoptimizeArgumentsOnInteractionAtPath, falling back to
3858
+ // including all arguments when the exact property cannot be tracked
3859
+ const [key, ...subPath] = path;
3860
+ if (this.hasLostTrack ||
3861
+ this.hasUnknownDeoptimizedProperty ||
3862
+ !isConcreteKey(key) ||
3863
+ this.deoptimizedPaths.get(key) ||
3864
+ (typeof key === 'string' && INTEGER_REG_EXP.test(key) && this.hasUnknownDeoptimizedInteger)) {
3865
+ includeInteraction(interaction, context);
3866
+ return;
3867
+ }
3868
+ const properties = this.propertiesAndGettersByKey.get(key);
3869
+ if (properties !== undefined) {
3870
+ // This mirrors the "this" argument inclusion of includeInteraction
3871
+ interaction.args[0]?.includePath(UNKNOWN_PATH, context);
3872
+ for (const property of properties) {
3873
+ property.includeCallArgumentsWhenCalledAtPath(subPath, interaction, context);
3874
+ }
3875
+ return;
3876
+ }
3877
+ if (this.unmatchablePropertiesAndGetters.length > 0 ||
3878
+ (typeof key === 'string' &&
3879
+ INTEGER_REG_EXP.test(key) &&
3880
+ this.unknownIntegerProps.length > 0) ||
3881
+ !this.prototypeExpression) {
3882
+ includeInteraction(interaction, context);
3883
+ return;
3884
+ }
3885
+ this.prototypeExpression.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
3886
+ }
3854
3887
  buildPropertyMaps(properties) {
3855
3888
  const { allProperties, alwaysIncludedProperties, propertiesAndGettersByKey, propertiesAndSettersByKey, settersByKey, gettersByKey, unknownIntegerProps, unmatchablePropertiesAndGetters, unmatchablePropertiesAndSetters, unmatchableGetters, unmatchableSetters } = this;
3856
3889
  for (let index = properties.length - 1; index >= 0; index--) {
@@ -5292,6 +5325,10 @@ class LocalVariable extends Variable {
5292
5325
  this.kind = kind;
5293
5326
  this.calledFromTryStatement = false;
5294
5327
  this.additionalInitializers = null;
5328
+ // A possibly incomplete list of values assigned to this variable after its
5329
+ // declaration; as it is incomplete, it must never be used for value queries
5330
+ // but only to forward call arguments to possible values
5331
+ this.reassignedValues = null;
5295
5332
  this.includedPathTracker = new IncludedFullPathTracker();
5296
5333
  this.expressionsToBeDeoptimized = [];
5297
5334
  this.declarations = declarator ? [declarator] : [];
@@ -5415,19 +5452,48 @@ class LocalVariable extends Variable {
5415
5452
  }
5416
5453
  }
5417
5454
  }
5418
- includeCallArguments(interaction, context) {
5419
- if (this.isReassigned ||
5420
- context.includedCallArguments.has(this.init) ||
5421
- // This can be removed again once we can include arguments when called at
5422
- // a specific path
5423
- this.initPath.length > 0) {
5455
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
5456
+ if (this.isReassigned) {
5457
+ // Even when the value is unknown, it may be one of the assigned values;
5458
+ // forwarding to all of them retains the arguments of try-catch helpers
5424
5459
  includeInteraction(interaction, context);
5460
+ // Each possible value is visited at most once per path and call
5461
+ // per traversal so that dense assignment graphs do not repeat work
5462
+ // for every simple path
5463
+ const previousTracker = context.includedCallArgumentsOfPossibleValues;
5464
+ context.includedCallArgumentsOfPossibleValues ??= new DiscriminatedPathTracker();
5465
+ this.includeCallArgumentsOfPossibleValues(path, interaction, context, context.includedCallArgumentsOfPossibleValues);
5466
+ context.includedCallArgumentsOfPossibleValues = previousTracker;
5467
+ return;
5425
5468
  }
5426
- else {
5427
- context.includedCallArguments.add(this.init);
5428
- this.init.includeCallArguments(interaction, context);
5429
- context.includedCallArguments.delete(this.init);
5469
+ if (context.includedCallArguments.has(this.init) ||
5470
+ path.length + this.initPath.length > MAX_PATH_DEPTH) {
5471
+ includeInteraction(interaction, context);
5472
+ return;
5430
5473
  }
5474
+ context.includedCallArguments.add(this.init);
5475
+ this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath, ...path], interaction, context);
5476
+ context.includedCallArguments.delete(this.init);
5477
+ }
5478
+ includeCallArgumentsOfPossibleValues(path, interaction, context, tracker) {
5479
+ if (this.reassignedValues === null || path.length + this.initPath.length > MAX_PATH_DEPTH) {
5480
+ return;
5481
+ }
5482
+ this.includeCallArgumentsOfPossibleValue(this.init, [...this.initPath, ...path], interaction, context, tracker);
5483
+ for (const entity of this.reassignedValues) {
5484
+ this.includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker);
5485
+ }
5486
+ }
5487
+ includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker) {
5488
+ if (entity === UNKNOWN_EXPRESSION ||
5489
+ entity === UNDEFINED_EXPRESSION ||
5490
+ tracker.trackEntityAtPathAndGetIfTracked(path, interaction, entity)) {
5491
+ return;
5492
+ }
5493
+ entity.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
5494
+ }
5495
+ addReassignedValue(value) {
5496
+ (this.reassignedValues ??= []).push(value);
5431
5497
  }
5432
5498
  markCalledFromTryStatement() {
5433
5499
  this.calledFromTryStatement = true;
@@ -5533,8 +5599,8 @@ class IdentifierBase extends NodeBase {
5533
5599
  this.variable?.includePath(path, context);
5534
5600
  }
5535
5601
  }
5536
- includeCallArguments(interaction, context) {
5537
- this.variable.includeCallArguments(interaction, context);
5602
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
5603
+ this.variable.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
5538
5604
  }
5539
5605
  isPossibleTDZ() {
5540
5606
  // return cached value to avoid issues with the next tree-shaking pass
@@ -5680,6 +5746,9 @@ class Identifier extends IdentifierBase {
5680
5746
  }
5681
5747
  deoptimizeAssignment(destructuredInitPath, init) {
5682
5748
  this.deoptimizePath(EMPTY_PATH);
5749
+ if (destructuredInitPath.length === 0) {
5750
+ this.variable?.addReassignedValue(init);
5751
+ }
5683
5752
  init.deoptimizePath([...destructuredInitPath, UnknownKey]);
5684
5753
  }
5685
5754
  hasEffectsWhenDestructuring(context, destructuredInitPath, init) {
@@ -5934,6 +6003,9 @@ class MethodBase extends NodeBase {
5934
6003
  }
5935
6004
  this.getAccessedValue()[0].deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
5936
6005
  }
6006
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
6007
+ this.getAccessedValue()[0].includeCallArgumentsWhenCalledAtPath(path, interaction, context);
6008
+ }
5937
6009
  // As getter properties directly receive their values from fixed function
5938
6010
  // expressions, there is no known situation where a getter is deoptimized.
5939
6011
  deoptimizeCache() { }
@@ -6681,15 +6753,30 @@ class ReturnValueScope extends ParameterScope {
6681
6753
  }
6682
6754
  addArgumentToBeDeoptimized(_argument) { }
6683
6755
  updateReturnExpression() {
6684
- if (this.returnExpressions.length === 1) {
6685
- this.returnExpression = this.returnExpressions[0];
6756
+ const { returnExpressions } = this;
6757
+ if (returnExpressions.length === 1) {
6758
+ this.returnExpression = returnExpressions[0];
6686
6759
  }
6687
6760
  else {
6688
- this.returnExpression = UNKNOWN_EXPRESSION;
6689
- for (const expression of this.returnExpressions) {
6690
- expression.deoptimizePath(UNKNOWN_PATH);
6761
+ // Returning the same variable on all paths is equivalent to a single
6762
+ // return, so the return expression can be resolved to that variable
6763
+ const [firstExpression] = returnExpressions;
6764
+ if (firstExpression && this.returnExpressionsResolveToSameVariable(firstExpression)) {
6765
+ this.returnExpression = firstExpression;
6691
6766
  }
6767
+ else {
6768
+ this.returnExpression = UNKNOWN_EXPRESSION;
6769
+ for (const expression of returnExpressions) {
6770
+ expression.deoptimizePath(UNKNOWN_PATH);
6771
+ }
6772
+ }
6773
+ }
6774
+ }
6775
+ returnExpressionsResolveToSameVariable(firstExpression) {
6776
+ if (!isIdentifierNode(firstExpression) || firstExpression.variable === null) {
6777
+ return false;
6692
6778
  }
6779
+ return this.returnExpressions.every(expression => isIdentifierNode(expression) && expression.variable === firstExpression.variable);
6693
6780
  }
6694
6781
  }
6695
6782
 
@@ -6879,7 +6966,6 @@ class FunctionBase extends NodeBase {
6879
6966
  constructor() {
6880
6967
  super(...arguments);
6881
6968
  this.parameterVariableValuesDeoptimized = false;
6882
- this.includeCallArguments = this.scope.includeCallArguments.bind(this.scope);
6883
6969
  }
6884
6970
  get async() {
6885
6971
  return isFlagSet(this.flags, 256 /* Flag.async */);
@@ -6996,6 +7082,14 @@ class FunctionBase extends NodeBase {
6996
7082
  this.body.include(context, includeChildrenRecursively);
6997
7083
  context.brokenFlow = brokenFlow;
6998
7084
  }
7085
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
7086
+ if (path.length === 0) {
7087
+ this.scope.includeCallArguments(interaction, context);
7088
+ }
7089
+ else {
7090
+ this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(path, interaction, context);
7091
+ }
7092
+ }
6999
7093
  initialise() {
7000
7094
  super.initialise();
7001
7095
  if (this.body instanceof BlockStatement) {
@@ -7827,12 +7921,20 @@ class MemberExpression extends NodeBase {
7827
7921
  this.object.include(context, includeChildrenRecursively);
7828
7922
  this.property.include(context, includeChildrenRecursively);
7829
7923
  }
7830
- includeCallArguments(interaction, context) {
7924
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
7831
7925
  if (this.promiseHandler) {
7832
- this.promiseHandler.includeCallArguments(interaction, context);
7926
+ if (path.length === 0) {
7927
+ this.promiseHandler.includeCallArguments(interaction, context);
7928
+ }
7929
+ else {
7930
+ includeInteraction(interaction, context);
7931
+ }
7833
7932
  }
7834
7933
  else if (this.variable) {
7835
- this.variable.includeCallArguments(interaction, context);
7934
+ this.variable.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
7935
+ }
7936
+ else if (!this.isUndefined && path.length < MAX_PATH_DEPTH) {
7937
+ this.object.includeCallArgumentsWhenCalledAtPath(this.propertyKey === UnknownKey ? UNKNOWN_PATH : [this.propertyKey, ...path], interaction, context);
7836
7938
  }
7837
7939
  else {
7838
7940
  includeInteraction(interaction, context);
@@ -12793,6 +12895,19 @@ class CallExpressionBase extends NodeBase {
12793
12895
  return ((type === INTERACTION_ASSIGNED || !isPure) &&
12794
12896
  returnExpression.hasEffectsOnInteractionAtPath(path, interaction, context));
12795
12897
  }
12898
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
12899
+ // Mirrors deoptimizeArgumentsOnInteractionAtPath
12900
+ const [returnExpression, isPure] = this.getReturnExpression();
12901
+ if (isPure ||
12902
+ returnExpression === UNKNOWN_EXPRESSION ||
12903
+ context.includedCallArguments.has(returnExpression)) {
12904
+ includeInteraction(interaction, context);
12905
+ return;
12906
+ }
12907
+ context.includedCallArguments.add(returnExpression);
12908
+ returnExpression.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
12909
+ context.includedCallArguments.delete(returnExpression);
12910
+ }
12796
12911
  }
12797
12912
 
12798
12913
  class CallExpression extends CallExpressionBase {
@@ -12871,7 +12986,7 @@ class CallExpression extends CallExpressionBase {
12871
12986
  }
12872
12987
  else {
12873
12988
  this.callee.include(context, false);
12874
- this.callee.includeCallArguments(this.interaction, context);
12989
+ this.callee.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
12875
12990
  }
12876
12991
  }
12877
12992
  includeNode(_context) {
@@ -13165,14 +13280,19 @@ class ConditionalExpression extends NodeBase {
13165
13280
  usedBranch.includePath(path, context);
13166
13281
  }
13167
13282
  }
13168
- includeCallArguments(interaction, context) {
13169
- const usedBranch = this.getUsedBranch();
13170
- if (usedBranch) {
13171
- usedBranch.includeCallArguments(interaction, context);
13283
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
13284
+ if (path.length === 0) {
13285
+ const usedBranch = this.getUsedBranch();
13286
+ if (usedBranch) {
13287
+ usedBranch.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
13288
+ }
13289
+ else {
13290
+ this.consequent.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
13291
+ this.alternate.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, interaction, context);
13292
+ }
13172
13293
  }
13173
13294
  else {
13174
- this.consequent.includeCallArguments(interaction, context);
13175
- this.alternate.includeCallArguments(interaction, context);
13295
+ includeInteraction(interaction, context);
13176
13296
  }
13177
13297
  }
13178
13298
  removeAnnotations(code) {
@@ -13758,7 +13878,7 @@ class ObjectPromiseHandler {
13758
13878
  if (interaction.type === INTERACTION_CALLED &&
13759
13879
  (isFunctionExpressionNode(interaction.args[1]) ||
13760
13880
  isArrowFunctionExpressionNode(interaction.args[1]))) {
13761
- interaction.args[1].includeCallArguments(this.interaction, context);
13881
+ interaction.args[1].includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
13762
13882
  }
13763
13883
  }
13764
13884
  }
@@ -14938,7 +15058,7 @@ class NewExpression extends NodeBase {
14938
15058
  }
14939
15059
  else {
14940
15060
  this.callee.include(context, false);
14941
- this.callee.includeCallArguments(this.interaction, context);
15061
+ this.callee.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
14942
15062
  }
14943
15063
  }
14944
15064
  includeNode(context) {
@@ -15009,6 +15129,9 @@ class ObjectExpression extends NodeBase {
15009
15129
  this.includeNode(context);
15010
15130
  this.getObjectEntity().includePath(path, context);
15011
15131
  }
15132
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
15133
+ this.getObjectEntity().includeCallArgumentsWhenCalledAtPath(path, interaction, context);
15134
+ }
15012
15135
  render(code, options, { renderedSurroundingElement } = BLANK) {
15013
15136
  if (renderedSurroundingElement === ExpressionStatement$1 ||
15014
15137
  renderedSurroundingElement === ArrowFunctionExpression$1) {
@@ -15570,7 +15693,7 @@ class TaggedTemplateExpression extends CallExpressionBase {
15570
15693
  else {
15571
15694
  this.quasi.include(context, false);
15572
15695
  this.tag.include(context, false);
15573
- this.tag.includeCallArguments(this.interaction, context);
15696
+ this.tag.includeCallArgumentsWhenCalledAtPath(EMPTY_PATH, this.interaction, context);
15574
15697
  }
15575
15698
  }
15576
15699
  initialise() {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.6
4
- Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
3
+ Rollup.js v4.64.0
4
+ Fri, 02 Oct 2026 15:38:16 GMT - commit 77773bf8ee9130c4edbde14c017855c41e500692
5
5
 
6
6
  https://github.com/rollup/rollup
7
7