@rollup/wasm-node 4.64.1 → 4.64.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/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.64.1
5
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
4
+ Rollup.js v4.64.3
5
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -27,7 +27,7 @@ require('node:perf_hooks');
27
27
  require('node:url');
28
28
  require('../getLogFilter.js');
29
29
 
30
- const help = "rollup version 4.64.1\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--logLevel <level> Which kind of logs to display\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-reexportProtoFromExternal Ignore `__proto__` in star re-exports\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
30
+ const help = "rollup version 4.64.3\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--logLevel <level> Which kind of logs to display\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-reexportProtoFromExternal Ignore `__proto__` in star re-exports\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
31
31
 
32
32
  /**
33
33
  * @license
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
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, 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';
10
+ import { EMPTY_OBJECT, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, ArrowFunctionExpression as ArrowFunctionExpression$1, FunctionExpression as FunctionExpression$1, Identifier as Identifier$1, ExpressionStatement as ExpressionStatement$1, AwaitExpression as AwaitExpression$1, MemberExpression as MemberExpression$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.64.1";
30
+ var version = "4.64.3";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -2437,7 +2437,6 @@ function createInclusionContext() {
2437
2437
  hasBreak: false,
2438
2438
  hasContinue: false,
2439
2439
  includedCallArguments: new Set(),
2440
- includedCallArgumentsOfPossibleValues: null,
2441
2440
  includedLabels: new Set()
2442
2441
  };
2443
2442
  }
@@ -2586,6 +2585,9 @@ class Variable extends ExpressionEntity {
2586
2585
  markReassigned() {
2587
2586
  this.isReassigned = true;
2588
2587
  }
2588
+ markTargetOfAssignment() {
2589
+ this.isTargetOfAssignment = true;
2590
+ }
2589
2591
  constructor(name) {
2590
2592
  super();
2591
2593
  this.name = name;
@@ -2598,6 +2600,9 @@ class Variable extends ExpressionEntity {
2598
2600
  this.renderBaseName = null;
2599
2601
  this.renderName = null;
2600
2602
  this.isReassigned = false;
2603
+ // Unlike isReassigned, set eagerly during binding for every assignment,
2604
+ // including ones that are never included
2605
+ this.isTargetOfAssignment = false;
2601
2606
  this.onlyFunctionCallUsed = true;
2602
2607
  }
2603
2608
  /**
@@ -5325,10 +5330,9 @@ class LocalVariable extends Variable {
5325
5330
  this.kind = kind;
5326
5331
  this.calledFromTryStatement = false;
5327
5332
  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;
5333
+ // A possibly incomplete list of functions assigned to this variable; only used
5334
+ // to retain call arguments of assigned try-catch helpers, never for value queries
5335
+ this.assignedFunctions = null;
5332
5336
  this.includedPathTracker = new IncludedFullPathTracker();
5333
5337
  this.expressionsToBeDeoptimized = [];
5334
5338
  this.declarations = declarator ? [declarator] : [];
@@ -5454,16 +5458,12 @@ class LocalVariable extends Variable {
5454
5458
  }
5455
5459
  includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
5456
5460
  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
5461
+ // The value may still be one of the assigned functions, whose try-catch
5462
+ // helpers need their call arguments retained
5459
5463
  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;
5464
+ if (path.length === 0) {
5465
+ this.includeCallArgumentsOfAssignedTryCatchHelpers(interaction, context);
5466
+ }
5467
5467
  return;
5468
5468
  }
5469
5469
  if (context.includedCallArguments.has(this.init) ||
@@ -5475,25 +5475,25 @@ class LocalVariable extends Variable {
5475
5475
  this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath, ...path], interaction, context);
5476
5476
  context.includedCallArguments.delete(this.init);
5477
5477
  }
5478
- includeCallArgumentsOfPossibleValues(path, interaction, context, tracker) {
5479
- if (this.reassignedValues === null || path.length + this.initPath.length > MAX_PATH_DEPTH) {
5480
- return;
5478
+ includeCallArgumentsOfAssignedTryCatchHelpers(interaction, context) {
5479
+ if (this.initPath.length === 0) {
5480
+ this.includeCallArgumentsOfTryCatchHelper(this.init, interaction, context);
5481
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);
5482
+ for (const assignedFunction of this.assignedFunctions ?? EMPTY_ARRAY) {
5483
+ this.includeCallArgumentsOfTryCatchHelper(assignedFunction, interaction, context);
5485
5484
  }
5486
5485
  }
5487
- includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker) {
5488
- if (entity === UNKNOWN_EXPRESSION ||
5489
- entity === UNDEFINED_EXPRESSION ||
5490
- tracker.trackEntityAtPathAndGetIfTracked(path, interaction, entity)) {
5491
- return;
5486
+ includeCallArgumentsOfTryCatchHelper(value, interaction, context) {
5487
+ if (isArrowFunctionExpressionNode(value) || isFunctionExpressionNode(value)) {
5488
+ if (value.scope.hasParameterCalledFromTryStatement()) {
5489
+ value.scope.includeCallArguments(interaction, context);
5490
+ }
5492
5491
  }
5493
- entity.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
5494
5492
  }
5495
5493
  addReassignedValue(value) {
5496
- (this.reassignedValues ??= []).push(value);
5494
+ if (isArrowFunctionExpressionNode(value) || isFunctionExpressionNode(value)) {
5495
+ (this.assignedFunctions ??= []).push(value);
5496
+ }
5497
5497
  }
5498
5498
  markCalledFromTryStatement() {
5499
5499
  this.calledFromTryStatement = true;
@@ -5727,6 +5727,9 @@ class Identifier extends IdentifierBase {
5727
5727
  this.variable = this.scope.findVariable(this.name);
5728
5728
  this.variable.addReference(this);
5729
5729
  this.isVariableReference = true;
5730
+ if (this.assignmentInteraction) {
5731
+ this.variable.markTargetOfAssignment();
5732
+ }
5730
5733
  }
5731
5734
  }
5732
5735
  declare(kind, destructuredInitPath, init) {
@@ -6523,6 +6526,31 @@ class ThisVariable extends ParameterVariable {
6523
6526
  }
6524
6527
  }
6525
6528
 
6529
+ /**
6530
+ * Represents the return value of a function where all return statements return
6531
+ * the same variable that is the target of an assignment. As the assigned value
6532
+ * may replace the declaration initializer before the function returns, value
6533
+ * queries resolve to unknown, and call arguments are deoptimized directly
6534
+ * instead of being forwarded to the initializer alone.
6535
+ */
6536
+ class ReturnedIdentifier extends ExpressionEntity {
6537
+ constructor(returnedIdentifier) {
6538
+ super();
6539
+ this.returnedIdentifier = returnedIdentifier;
6540
+ }
6541
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
6542
+ // The initializer may never be the value that is returned
6543
+ deoptimizeInteraction(interaction);
6544
+ this.returnedIdentifier.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
6545
+ }
6546
+ deoptimizePath(path) {
6547
+ this.returnedIdentifier.deoptimizePath(path);
6548
+ }
6549
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
6550
+ this.returnedIdentifier.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
6551
+ }
6552
+ }
6553
+
6526
6554
  class CatchBodyScope extends ChildScope {
6527
6555
  constructor(parent) {
6528
6556
  super(parent, parent.context);
@@ -6631,6 +6659,9 @@ class ParameterScope extends ChildScope {
6631
6659
  }
6632
6660
  this.hasRest = hasRest;
6633
6661
  }
6662
+ hasParameterCalledFromTryStatement() {
6663
+ return this.parameters.some(parameterVariables => parameterVariables.some(variable => variable.calledFromTryStatement));
6664
+ }
6634
6665
  includeCallArguments({ args }, context) {
6635
6666
  let calledFromTryStatement = false;
6636
6667
  let argumentIncluded = false;
@@ -6754,21 +6785,21 @@ class ReturnValueScope extends ParameterScope {
6754
6785
  addArgumentToBeDeoptimized(_argument) { }
6755
6786
  updateReturnExpression() {
6756
6787
  const { returnExpressions } = this;
6757
- if (returnExpressions.length === 1) {
6758
- this.returnExpression = returnExpressions[0];
6788
+ const [firstExpression] = returnExpressions;
6789
+ // A single return, or the same variable returned on all paths, can be
6790
+ // resolved to that variable
6791
+ if (firstExpression && this.returnExpressionsResolveToSameVariable(firstExpression)) {
6792
+ this.returnExpression = firstExpression.variable.isTargetOfAssignment
6793
+ ? new ReturnedIdentifier(firstExpression)
6794
+ : firstExpression;
6795
+ }
6796
+ else if (returnExpressions.length === 1) {
6797
+ this.returnExpression = firstExpression;
6759
6798
  }
6760
6799
  else {
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;
6766
- }
6767
- else {
6768
- this.returnExpression = UNKNOWN_EXPRESSION;
6769
- for (const expression of returnExpressions) {
6770
- expression.deoptimizePath(UNKNOWN_PATH);
6771
- }
6800
+ this.returnExpression = UNKNOWN_EXPRESSION;
6801
+ for (const expression of returnExpressions) {
6802
+ expression.deoptimizePath(UNKNOWN_PATH);
6772
6803
  }
6773
6804
  }
6774
6805
  }
@@ -6949,6 +6980,9 @@ class RestElement extends NodeBase {
6949
6980
  markDeclarationReached() {
6950
6981
  this.argument.markDeclarationReached();
6951
6982
  }
6983
+ setAssignedValue(value) {
6984
+ this.argument.setAssignedValue(value);
6985
+ }
6952
6986
  applyDeoptimizations() {
6953
6987
  this.deoptimized = true;
6954
6988
  if (this.declarationInit !== null) {
@@ -12228,6 +12262,14 @@ class ArrayPattern extends NodeBase {
12228
12262
  }
12229
12263
  }
12230
12264
  }
12265
+ setAssignedValue(value) {
12266
+ super.setAssignedValue(value);
12267
+ // Destructuring assigns each target only some subpath of the assigned
12268
+ // value, which is not tracked
12269
+ for (const element of this.elements) {
12270
+ element?.setAssignedValue(UNKNOWN_EXPRESSION);
12271
+ }
12272
+ }
12231
12273
  markDeclarationReached() {
12232
12274
  for (const element of this.elements) {
12233
12275
  element?.markDeclarationReached();
@@ -12398,6 +12440,14 @@ class ObjectPattern extends NodeBase {
12398
12440
  }
12399
12441
  }
12400
12442
  }
12443
+ setAssignedValue(value) {
12444
+ super.setAssignedValue(value);
12445
+ // Destructuring assigns each target only some subpath of the assigned
12446
+ // value, which is not tracked
12447
+ for (const property of this.properties) {
12448
+ property.setAssignedValue(UNKNOWN_EXPRESSION);
12449
+ }
12450
+ }
12401
12451
  }
12402
12452
  ObjectPattern.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
12403
12453
  ObjectPattern.prototype.applyDeoptimizations = doNotDeoptimize;
@@ -12562,6 +12612,9 @@ class AssignmentPattern extends NodeBase {
12562
12612
  this.left.render(code, options, { isShorthandProperty });
12563
12613
  this.right.render(code, options);
12564
12614
  }
12615
+ setAssignedValue(value) {
12616
+ this.left.setAssignedValue(value);
12617
+ }
12565
12618
  applyDeoptimizations() {
12566
12619
  this.deoptimized = true;
12567
12620
  this.left.deoptimizePath(EMPTY_PATH);
@@ -15361,6 +15414,9 @@ class Property extends MethodBase {
15361
15414
  }
15362
15415
  this.value.render(code, options, { isShorthandProperty: this.shorthand });
15363
15416
  }
15417
+ setAssignedValue(value) {
15418
+ this.value.setAssignedValue(value);
15419
+ }
15364
15420
  getPathInProperty(destructuredInitPath) {
15365
15421
  return destructuredInitPath.at(-1) === UnknownKey
15366
15422
  ? destructuredInitPath
@@ -24356,17 +24412,17 @@ async function rollupInternal(rawInputOptions, registerWatchHooks) {
24356
24412
  ...error_,
24357
24413
  message: `There was an error during the build:\n ${error_.message}\nAdditionally, handling the error in the 'buildEnd' hook caused the following error:\n ${buildEndError.message}`
24358
24414
  });
24359
- await graph.pluginDriver.hookParallel('closeBundle', [compoundError]);
24415
+ await graph.pluginDriver.hookParallel('closeBundle', [compoundError]).catch(() => { });
24360
24416
  throw compoundError;
24361
24417
  }
24362
- await graph.pluginDriver.hookParallel('closeBundle', [error_]);
24418
+ await graph.pluginDriver.hookParallel('closeBundle', [error_]).catch(() => { });
24363
24419
  throw error_;
24364
24420
  }
24365
24421
  try {
24366
24422
  await graph.pluginDriver.hookParallel('buildEnd', []);
24367
24423
  }
24368
24424
  catch (buildEndError) {
24369
- await graph.pluginDriver.hookParallel('closeBundle', [buildEndError]);
24425
+ await graph.pluginDriver.hookParallel('closeBundle', [buildEndError]).catch(() => { });
24370
24426
  throw buildEndError;
24371
24427
  }
24372
24428
  });
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
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.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
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.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.64.1";
45
+ var version = "4.64.3";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -6611,7 +6611,6 @@ function createInclusionContext() {
6611
6611
  hasBreak: false,
6612
6612
  hasContinue: false,
6613
6613
  includedCallArguments: new Set(),
6614
- includedCallArgumentsOfPossibleValues: null,
6615
6614
  includedLabels: new Set()
6616
6615
  };
6617
6616
  }
@@ -6760,6 +6759,9 @@ class Variable extends ExpressionEntity {
6760
6759
  markReassigned() {
6761
6760
  this.isReassigned = true;
6762
6761
  }
6762
+ markTargetOfAssignment() {
6763
+ this.isTargetOfAssignment = true;
6764
+ }
6763
6765
  constructor(name) {
6764
6766
  super();
6765
6767
  this.name = name;
@@ -6772,6 +6774,9 @@ class Variable extends ExpressionEntity {
6772
6774
  this.renderBaseName = null;
6773
6775
  this.renderName = null;
6774
6776
  this.isReassigned = false;
6777
+ // Unlike isReassigned, set eagerly during binding for every assignment,
6778
+ // including ones that are never included
6779
+ this.isTargetOfAssignment = false;
6775
6780
  this.onlyFunctionCallUsed = true;
6776
6781
  }
6777
6782
  /**
@@ -9497,10 +9502,9 @@ class LocalVariable extends Variable {
9497
9502
  this.kind = kind;
9498
9503
  this.calledFromTryStatement = false;
9499
9504
  this.additionalInitializers = null;
9500
- // A possibly incomplete list of values assigned to this variable after its
9501
- // declaration; as it is incomplete, it must never be used for value queries
9502
- // but only to forward call arguments to possible values
9503
- this.reassignedValues = null;
9505
+ // A possibly incomplete list of functions assigned to this variable; only used
9506
+ // to retain call arguments of assigned try-catch helpers, never for value queries
9507
+ this.assignedFunctions = null;
9504
9508
  this.includedPathTracker = new IncludedFullPathTracker();
9505
9509
  this.expressionsToBeDeoptimized = [];
9506
9510
  this.declarations = declarator ? [declarator] : [];
@@ -9626,16 +9630,12 @@ class LocalVariable extends Variable {
9626
9630
  }
9627
9631
  includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
9628
9632
  if (this.isReassigned) {
9629
- // Even when the value is unknown, it may be one of the assigned values;
9630
- // forwarding to all of them retains the arguments of try-catch helpers
9633
+ // The value may still be one of the assigned functions, whose try-catch
9634
+ // helpers need their call arguments retained
9631
9635
  includeInteraction(interaction, context);
9632
- // Each possible value is visited at most once per path and call
9633
- // per traversal so that dense assignment graphs do not repeat work
9634
- // for every simple path
9635
- const previousTracker = context.includedCallArgumentsOfPossibleValues;
9636
- context.includedCallArgumentsOfPossibleValues ??= new DiscriminatedPathTracker();
9637
- this.includeCallArgumentsOfPossibleValues(path, interaction, context, context.includedCallArgumentsOfPossibleValues);
9638
- context.includedCallArgumentsOfPossibleValues = previousTracker;
9636
+ if (path.length === 0) {
9637
+ this.includeCallArgumentsOfAssignedTryCatchHelpers(interaction, context);
9638
+ }
9639
9639
  return;
9640
9640
  }
9641
9641
  if (context.includedCallArguments.has(this.init) ||
@@ -9647,25 +9647,25 @@ class LocalVariable extends Variable {
9647
9647
  this.init.includeCallArgumentsWhenCalledAtPath([...this.initPath, ...path], interaction, context);
9648
9648
  context.includedCallArguments.delete(this.init);
9649
9649
  }
9650
- includeCallArgumentsOfPossibleValues(path, interaction, context, tracker) {
9651
- if (this.reassignedValues === null || path.length + this.initPath.length > MAX_PATH_DEPTH) {
9652
- return;
9650
+ includeCallArgumentsOfAssignedTryCatchHelpers(interaction, context) {
9651
+ if (this.initPath.length === 0) {
9652
+ this.includeCallArgumentsOfTryCatchHelper(this.init, interaction, context);
9653
9653
  }
9654
- this.includeCallArgumentsOfPossibleValue(this.init, [...this.initPath, ...path], interaction, context, tracker);
9655
- for (const entity of this.reassignedValues) {
9656
- this.includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker);
9654
+ for (const assignedFunction of this.assignedFunctions ?? parseAst_js.EMPTY_ARRAY) {
9655
+ this.includeCallArgumentsOfTryCatchHelper(assignedFunction, interaction, context);
9657
9656
  }
9658
9657
  }
9659
- includeCallArgumentsOfPossibleValue(entity, path, interaction, context, tracker) {
9660
- if (entity === UNKNOWN_EXPRESSION ||
9661
- entity === UNDEFINED_EXPRESSION ||
9662
- tracker.trackEntityAtPathAndGetIfTracked(path, interaction, entity)) {
9663
- return;
9658
+ includeCallArgumentsOfTryCatchHelper(value, interaction, context) {
9659
+ if (isArrowFunctionExpressionNode(value) || isFunctionExpressionNode(value)) {
9660
+ if (value.scope.hasParameterCalledFromTryStatement()) {
9661
+ value.scope.includeCallArguments(interaction, context);
9662
+ }
9664
9663
  }
9665
- entity.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
9666
9664
  }
9667
9665
  addReassignedValue(value) {
9668
- (this.reassignedValues ??= []).push(value);
9666
+ if (isArrowFunctionExpressionNode(value) || isFunctionExpressionNode(value)) {
9667
+ (this.assignedFunctions ??= []).push(value);
9668
+ }
9669
9669
  }
9670
9670
  markCalledFromTryStatement() {
9671
9671
  this.calledFromTryStatement = true;
@@ -9899,6 +9899,9 @@ class Identifier extends IdentifierBase {
9899
9899
  this.variable = this.scope.findVariable(this.name);
9900
9900
  this.variable.addReference(this);
9901
9901
  this.isVariableReference = true;
9902
+ if (this.assignmentInteraction) {
9903
+ this.variable.markTargetOfAssignment();
9904
+ }
9902
9905
  }
9903
9906
  }
9904
9907
  declare(kind, destructuredInitPath, init) {
@@ -10683,6 +10686,31 @@ class ThisVariable extends ParameterVariable {
10683
10686
  }
10684
10687
  }
10685
10688
 
10689
+ /**
10690
+ * Represents the return value of a function where all return statements return
10691
+ * the same variable that is the target of an assignment. As the assigned value
10692
+ * may replace the declaration initializer before the function returns, value
10693
+ * queries resolve to unknown, and call arguments are deoptimized directly
10694
+ * instead of being forwarded to the initializer alone.
10695
+ */
10696
+ class ReturnedIdentifier extends ExpressionEntity {
10697
+ constructor(returnedIdentifier) {
10698
+ super();
10699
+ this.returnedIdentifier = returnedIdentifier;
10700
+ }
10701
+ deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
10702
+ // The initializer may never be the value that is returned
10703
+ deoptimizeInteraction(interaction);
10704
+ this.returnedIdentifier.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
10705
+ }
10706
+ deoptimizePath(path) {
10707
+ this.returnedIdentifier.deoptimizePath(path);
10708
+ }
10709
+ includeCallArgumentsWhenCalledAtPath(path, interaction, context) {
10710
+ this.returnedIdentifier.includeCallArgumentsWhenCalledAtPath(path, interaction, context);
10711
+ }
10712
+ }
10713
+
10686
10714
  class CatchBodyScope extends ChildScope {
10687
10715
  constructor(parent) {
10688
10716
  super(parent, parent.context);
@@ -10791,6 +10819,9 @@ class ParameterScope extends ChildScope {
10791
10819
  }
10792
10820
  this.hasRest = hasRest;
10793
10821
  }
10822
+ hasParameterCalledFromTryStatement() {
10823
+ return this.parameters.some(parameterVariables => parameterVariables.some(variable => variable.calledFromTryStatement));
10824
+ }
10794
10825
  includeCallArguments({ args }, context) {
10795
10826
  let calledFromTryStatement = false;
10796
10827
  let argumentIncluded = false;
@@ -10914,21 +10945,21 @@ class ReturnValueScope extends ParameterScope {
10914
10945
  addArgumentToBeDeoptimized(_argument) { }
10915
10946
  updateReturnExpression() {
10916
10947
  const { returnExpressions } = this;
10917
- if (returnExpressions.length === 1) {
10918
- this.returnExpression = returnExpressions[0];
10948
+ const [firstExpression] = returnExpressions;
10949
+ // A single return, or the same variable returned on all paths, can be
10950
+ // resolved to that variable
10951
+ if (firstExpression && this.returnExpressionsResolveToSameVariable(firstExpression)) {
10952
+ this.returnExpression = firstExpression.variable.isTargetOfAssignment
10953
+ ? new ReturnedIdentifier(firstExpression)
10954
+ : firstExpression;
10955
+ }
10956
+ else if (returnExpressions.length === 1) {
10957
+ this.returnExpression = firstExpression;
10919
10958
  }
10920
10959
  else {
10921
- // Returning the same variable on all paths is equivalent to a single
10922
- // return, so the return expression can be resolved to that variable
10923
- const [firstExpression] = returnExpressions;
10924
- if (firstExpression && this.returnExpressionsResolveToSameVariable(firstExpression)) {
10925
- this.returnExpression = firstExpression;
10926
- }
10927
- else {
10928
- this.returnExpression = UNKNOWN_EXPRESSION;
10929
- for (const expression of returnExpressions) {
10930
- expression.deoptimizePath(UNKNOWN_PATH);
10931
- }
10960
+ this.returnExpression = UNKNOWN_EXPRESSION;
10961
+ for (const expression of returnExpressions) {
10962
+ expression.deoptimizePath(UNKNOWN_PATH);
10932
10963
  }
10933
10964
  }
10934
10965
  }
@@ -11109,6 +11140,9 @@ class RestElement extends NodeBase {
11109
11140
  markDeclarationReached() {
11110
11141
  this.argument.markDeclarationReached();
11111
11142
  }
11143
+ setAssignedValue(value) {
11144
+ this.argument.setAssignedValue(value);
11145
+ }
11112
11146
  applyDeoptimizations() {
11113
11147
  this.deoptimized = true;
11114
11148
  if (this.declarationInit !== null) {
@@ -13845,6 +13879,14 @@ class ArrayPattern extends NodeBase {
13845
13879
  }
13846
13880
  }
13847
13881
  }
13882
+ setAssignedValue(value) {
13883
+ super.setAssignedValue(value);
13884
+ // Destructuring assigns each target only some subpath of the assigned
13885
+ // value, which is not tracked
13886
+ for (const element of this.elements) {
13887
+ element?.setAssignedValue(UNKNOWN_EXPRESSION);
13888
+ }
13889
+ }
13848
13890
  markDeclarationReached() {
13849
13891
  for (const element of this.elements) {
13850
13892
  element?.markDeclarationReached();
@@ -14015,6 +14057,14 @@ class ObjectPattern extends NodeBase {
14015
14057
  }
14016
14058
  }
14017
14059
  }
14060
+ setAssignedValue(value) {
14061
+ super.setAssignedValue(value);
14062
+ // Destructuring assigns each target only some subpath of the assigned
14063
+ // value, which is not tracked
14064
+ for (const property of this.properties) {
14065
+ property.setAssignedValue(UNKNOWN_EXPRESSION);
14066
+ }
14067
+ }
14018
14068
  }
14019
14069
  ObjectPattern.prototype.includeNode = onlyIncludeSelfNoDeoptimize;
14020
14070
  ObjectPattern.prototype.applyDeoptimizations = doNotDeoptimize;
@@ -14179,6 +14229,9 @@ class AssignmentPattern extends NodeBase {
14179
14229
  this.left.render(code, options, { isShorthandProperty });
14180
14230
  this.right.render(code, options);
14181
14231
  }
14232
+ setAssignedValue(value) {
14233
+ this.left.setAssignedValue(value);
14234
+ }
14182
14235
  applyDeoptimizations() {
14183
14236
  this.deoptimized = true;
14184
14237
  this.left.deoptimizePath(EMPTY_PATH);
@@ -16978,6 +17031,9 @@ class Property extends MethodBase {
16978
17031
  }
16979
17032
  this.value.render(code, options, { isShorthandProperty: this.shorthand });
16980
17033
  }
17034
+ setAssignedValue(value) {
17035
+ this.value.setAssignedValue(value);
17036
+ }
16981
17037
  getPathInProperty(destructuredInitPath) {
16982
17038
  return destructuredInitPath.at(-1) === UnknownKey
16983
17039
  ? destructuredInitPath
@@ -24693,17 +24749,17 @@ async function rollupInternal(rawInputOptions, registerWatchHooks) {
24693
24749
  ...error_,
24694
24750
  message: `There was an error during the build:\n ${error_.message}\nAdditionally, handling the error in the 'buildEnd' hook caused the following error:\n ${buildEndError.message}`
24695
24751
  });
24696
- await graph.pluginDriver.hookParallel('closeBundle', [compoundError]);
24752
+ await graph.pluginDriver.hookParallel('closeBundle', [compoundError]).catch(() => { });
24697
24753
  throw compoundError;
24698
24754
  }
24699
- await graph.pluginDriver.hookParallel('closeBundle', [error_]);
24755
+ await graph.pluginDriver.hookParallel('closeBundle', [error_]).catch(() => { });
24700
24756
  throw error_;
24701
24757
  }
24702
24758
  try {
24703
24759
  await graph.pluginDriver.hookParallel('buildEnd', []);
24704
24760
  }
24705
24761
  catch (buildEndError) {
24706
- await graph.pluginDriver.hookParallel('closeBundle', [buildEndError]);
24762
+ await graph.pluginDriver.hookParallel('closeBundle', [buildEndError]).catch(() => { });
24707
24763
  throw buildEndError;
24708
24764
  }
24709
24765
  });
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.1
4
- Wed, 07 Oct 2026 05:40:24 GMT - commit 2e1a7531fbf618c8fbc897519646ac6119cbaf9f
3
+ Rollup.js v4.64.3
4
+ Thu, 08 Oct 2026 18:09:24 GMT - commit eea952fdba075b0e61fa19fc05a13216ac94926e
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/wasm-node",
3
- "version": "4.64.1",
3
+ "version": "4.64.3",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",