@rollup/wasm-node 4.68.0 → 4.68.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.68.0
5
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
4
+ Rollup.js v4.68.2
5
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0\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.68.2\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--interop <value> Interop mode for external imports (compat, auto,\n esModule, default, defaultOnly)\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.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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, 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, isAbsolute as isAbsolute$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, getDynamicAliasName, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logErrorInHook, 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, ObjectPattern as ObjectPattern$1, ArrayPattern as ArrayPattern$1, BLANK, AssignmentPattern as AssignmentPattern$1, RestElement as RestElement$1, logRedeclarationError, StaticBlock as StaticBlock$1, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, UnaryExpression as UnaryExpression$1, ChainExpression as ChainExpression$1, logMissingExport, normalize, getImportPath, error, logSourcePhaseFormatUnsupported, logMissingNodeBuiltins, logReservedNamespace, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, 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, isAbsolute as isAbsolute$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, getDynamicAliasName, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logErrorInHook, 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 { isAbsolute, posix, win32, resolve } 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.68.0";
30
+ var version = "4.68.2";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -6006,6 +6006,15 @@ class Identifier extends IdentifierBase {
6006
6006
  markDeclarationReached() {
6007
6007
  this.variable.initReached = true;
6008
6008
  }
6009
+ isDeclarationInDestructuringPattern() {
6010
+ let parent = this.parent;
6011
+ while (parent.type === Property$1 ||
6012
+ parent.type === AssignmentPattern$1 ||
6013
+ parent.type === RestElement$1) {
6014
+ parent = parent.parent;
6015
+ }
6016
+ return parent.type === ObjectPattern$1 || parent.type === ArrayPattern$1;
6017
+ }
6009
6018
  render(code, { snippets: { getPropertyAccess }, useOriginalName }, { renderedParentType, isCalleeOfRenderedParent, isShorthandProperty } = BLANK) {
6010
6019
  if (this.variable) {
6011
6020
  const name = this.variable.getName(getPropertyAccess, useOriginalName);
@@ -8149,6 +8158,12 @@ class MemberExpression extends NodeBase {
8149
8158
  set bound(value) {
8150
8159
  this.flags = setFlag(this.flags, 32 /* Flag.bound */, value);
8151
8160
  }
8161
+ get deleteOfMissingNamespaceMember() {
8162
+ return isFlagSet(this.flags, 536870912 /* Flag.deleteOfMissingNamespaceMember */);
8163
+ }
8164
+ set deleteOfMissingNamespaceMember(value) {
8165
+ this.flags = setFlag(this.flags, 536870912 /* Flag.deleteOfMissingNamespaceMember */, value);
8166
+ }
8152
8167
  get isUndefined() {
8153
8168
  return isFlagSet(this.flags, 64 /* Flag.isUndefined */);
8154
8169
  }
@@ -8164,7 +8179,9 @@ class MemberExpression extends NodeBase {
8164
8179
  }
8165
8180
  if (baseVariable?.isNamespace) {
8166
8181
  const resolvedVariable = resolveNamespaceVariables(baseVariable, path.slice(1), this.scope.context);
8167
- if (!resolvedVariable) {
8182
+ const isDelete = this.isDeleteTarget();
8183
+ if (!resolvedVariable || this.assignmentInteraction || isDelete) {
8184
+ this.deleteOfMissingNamespaceMember = isDelete && resolvedVariable === 'undefined';
8168
8185
  super.bind();
8169
8186
  }
8170
8187
  else if (resolvedVariable === 'undefined') {
@@ -8473,15 +8490,9 @@ class MemberExpression extends NodeBase {
8473
8490
  }
8474
8491
  }
8475
8492
  disallowNamespaceReassignment() {
8476
- if (this.object instanceof Identifier) {
8477
- const variable = this.scope.findVariable(this.object.name);
8478
- if (variable.isNamespace) {
8479
- if (this.variable) {
8480
- this.scope.context.includeVariableInModule(this.variable, UNKNOWN_PATH, createInclusionContext());
8481
- }
8482
- this.scope.context.log(LOGLEVEL_WARN, logIllegalImportReassignment(this.object.name, this.scope.context.module.id), this.start);
8483
- }
8484
- }
8493
+ if (!this.getNamespaceVariableOfObject() || this.deleteOfMissingNamespaceMember)
8494
+ return;
8495
+ this.scope.context.log(LOGLEVEL_WARN, logIllegalImportReassignment(this.getNamespaceName(), this.scope.context.module.id), this.start);
8485
8496
  }
8486
8497
  getDynamicPropertyKey() {
8487
8498
  if (this.dynamicPropertyKey === null) {
@@ -8496,6 +8507,27 @@ class MemberExpression extends NodeBase {
8496
8507
  }
8497
8508
  return this.dynamicPropertyKey;
8498
8509
  }
8510
+ getNamespaceName() {
8511
+ return this.object instanceof Identifier
8512
+ ? this.object.name
8513
+ : getStringFromPath(getPathIfNotComputed(this.object));
8514
+ }
8515
+ getNamespaceVariableOfObject() {
8516
+ let variable;
8517
+ if (this.object instanceof Identifier) {
8518
+ variable = this.scope.findVariable(this.object.name);
8519
+ }
8520
+ else if (this.object instanceof MemberExpression) {
8521
+ variable = this.object.variable;
8522
+ }
8523
+ else {
8524
+ return null;
8525
+ }
8526
+ if (variable instanceof ExportDefaultVariable) {
8527
+ variable = variable.getOriginalNamespaceVariable() || variable;
8528
+ }
8529
+ return variable?.isNamespace ? variable : null;
8530
+ }
8499
8531
  hasAccessEffect(context) {
8500
8532
  const { propertyReadSideEffects } = this.scope.context.options
8501
8533
  .treeshake;
@@ -8504,6 +8536,10 @@ class MemberExpression extends NodeBase {
8504
8536
  (propertyReadSideEffects === 'always' ||
8505
8537
  this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()], this.accessInteraction, context)));
8506
8538
  }
8539
+ isDeleteTarget() {
8540
+ const parent = this.parent.type === ChainExpression$1 ? this.parent.parent : this.parent;
8541
+ return (parent.type === UnaryExpression$1 && parent.operator === 'delete');
8542
+ }
8507
8543
  }
8508
8544
  function resolveNamespaceVariables(baseVariable, path, astContext) {
8509
8545
  if (path.length === 0)
@@ -8764,7 +8800,12 @@ class NamespaceVariable extends Variable {
8764
8800
  .filter(([name, variable]) => !isNamespaceExportName(name) && variable.included)
8765
8801
  .map(([name, variable]) => {
8766
8802
  const key = unescapeExportName(name);
8767
- if (this.referencedEarly || variable.isReassigned || variable === this) {
8803
+ if (this.referencedEarly ||
8804
+ variable.isReassigned ||
8805
+ variable === this ||
8806
+ (variable.module &&
8807
+ !variable.module.info.isExternal &&
8808
+ variable.module.execIndex > this.module.execIndex)) {
8768
8809
  return [
8769
8810
  null,
8770
8811
  `get ${stringifyObjectKeyIfNeeded(key)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
@@ -13475,6 +13516,9 @@ CatchClause.prototype.includeNode = onlyIncludeSelf;
13475
13516
  class ChainExpression extends NodeBase {
13476
13517
  // deoptimizations are not relevant as we are not caching values
13477
13518
  deoptimizeCache() { }
13519
+ deoptimizePath(path) {
13520
+ this.expression.deoptimizePath(path);
13521
+ }
13478
13522
  getLiteralValueAtPath(path, recursionTracker, origin) {
13479
13523
  const literalValue = this.expression.getLiteralValueAtPathAsChainElement(path, recursionTracker, origin);
13480
13524
  return literalValue === IS_SKIPPED_CHAIN ? undefined : literalValue;
@@ -20104,7 +20148,10 @@ class Chunk {
20104
20148
  expression,
20105
20149
  hoisted,
20106
20150
  local,
20107
- needsLiveBinding: variable.isReassigned && this.exportNamesByVariable.get(variable).length > 1
20151
+ needsLiveBinding: (variable.isReassigned && this.exportNamesByVariable.get(variable).length > 1) ||
20152
+ // Pattern bindings are plain locals; a trailing assignment
20153
+ // would lose later reassignments.
20154
+ (variable.isTargetOfAssignment && isDeclaredInDestructuringPattern(variable))
20108
20155
  });
20109
20156
  }
20110
20157
  return exports;
@@ -20545,7 +20592,8 @@ class Chunk {
20545
20592
  if (format !== 'es' &&
20546
20593
  format !== 'system' &&
20547
20594
  exportVariable.isReassigned &&
20548
- !exportVariable.isId) {
20595
+ !exportVariable.isId &&
20596
+ !isDeclaredInDestructuringPattern(exportVariable)) {
20549
20597
  exportVariable.setRenderNames('exports', unescapeExportName(exportName));
20550
20598
  }
20551
20599
  else if (exportVariable instanceof SyntheticNamedExportVariable) {
@@ -20631,6 +20679,10 @@ class Chunk {
20631
20679
  function getChunkNameFromModule(module) {
20632
20680
  return getPredefinedChunkNameFromModule(module) ?? getAliasName(module.id);
20633
20681
  }
20682
+ function isDeclaredInDestructuringPattern(variable) {
20683
+ return (variable instanceof LocalVariable &&
20684
+ variable.declarations.some(declaration => declaration instanceof Identifier && declaration.isDeclarationInDestructuringPattern()));
20685
+ }
20634
20686
  function getPredefinedChunkNameFromModule(module) {
20635
20687
  return (module.chunkNames.find(({ isUserDefined }) => isUserDefined)?.name ?? module.chunkNames[0]?.name);
20636
20688
  }
@@ -22295,7 +22347,13 @@ function addModuleToManualChunk(alias, module, manualChunkAliasByEntry) {
22295
22347
  }
22296
22348
  manualChunkAliasByEntry.set(module, alias);
22297
22349
  }
22350
+ const WINDOWS_DRIVE_LETTER_PREFIX_REGEX = /^[a-z]:/i;
22298
22351
  function isFileNameOutsideOutputDirectory(fileName) {
22352
+ // A leading drive letter makes the path drive-relative on Windows, where it
22353
+ // is resolved against the current directory of that drive.
22354
+ if (WINDOWS_DRIVE_LETTER_PREFIX_REGEX.test(fileName)) {
22355
+ return true;
22356
+ }
22299
22357
  // Use join() to normalize ".." segments, then replace backslashes so the
22300
22358
  // string checks below work identically on Windows and POSIX.
22301
22359
  const normalized = join(fileName).replaceAll('\\', '/');
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -63,11 +63,14 @@ const EMPTY_SET = Object.freeze(new (class extends Set {
63
63
 
64
64
  // This file is generated by scripts/generate-node-types.js.
65
65
  // Do not edit this file directly.
66
+ const ArrayPattern = 'ArrayPattern';
66
67
  const ArrowFunctionExpression = 'ArrowFunctionExpression';
68
+ const AssignmentPattern = 'AssignmentPattern';
67
69
  const AwaitExpression = 'AwaitExpression';
68
70
  const BlockStatement = 'BlockStatement';
69
71
  const CallExpression = 'CallExpression';
70
72
  const CatchClause = 'CatchClause';
73
+ const ChainExpression = 'ChainExpression';
71
74
  const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
72
75
  const ExpressionStatement = 'ExpressionStatement';
73
76
  const FunctionExpression = 'FunctionExpression';
@@ -75,6 +78,7 @@ const Identifier = 'Identifier';
75
78
  const Literal = 'Literal';
76
79
  const MemberExpression = 'MemberExpression';
77
80
  const ObjectExpression = 'ObjectExpression';
81
+ const ObjectPattern = 'ObjectPattern';
78
82
  const PanicError = 'PanicError';
79
83
  const ParseError = 'ParseError';
80
84
  const Program = 'Program';
@@ -83,6 +87,7 @@ const RestElement = 'RestElement';
83
87
  const ReturnStatement = 'ReturnStatement';
84
88
  const StaticBlock = 'StaticBlock';
85
89
  const TemplateLiteral = 'TemplateLiteral';
90
+ const UnaryExpression = 'UnaryExpression';
86
91
  const VariableDeclarator = 'VariableDeclarator';
87
92
 
88
93
  /** @typedef {import('./types').Location} Location */
@@ -2158,4 +2163,4 @@ function getAstBuffer(astBuffer) {
2158
2163
  const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
2159
2164
  const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2160
2165
 
2161
- export { ANNOTATION_KEY, ArrowFunctionExpression, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, MemberExpression, ObjectExpression, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_LOAD, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TRANSFORM, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getDynamicAliasName, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularChunk, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logErrorInHook, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileNameOutsideOutputDirectory, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logNonExternalSourcePhaseImport, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcePhaseFormatUnsupported, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
2166
+ export { ANNOTATION_KEY, ArrayPattern, ArrowFunctionExpression, AssignmentPattern, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, ChainExpression, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, MemberExpression, ObjectExpression, ObjectPattern, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_LOAD, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TRANSFORM, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, UnaryExpression, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getDynamicAliasName, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularChunk, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logErrorInHook, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileNameOutsideOutputDirectory, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logNonExternalSourcePhaseImport, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcePhaseFormatUnsupported, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1109,11 +1109,14 @@ function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation,
1109
1109
 
1110
1110
  // This file is generated by scripts/generate-node-types.js.
1111
1111
  // Do not edit this file directly.
1112
+ const ArrayPattern = 'ArrayPattern';
1112
1113
  const ArrowFunctionExpression = 'ArrowFunctionExpression';
1114
+ const AssignmentPattern = 'AssignmentPattern';
1113
1115
  const AwaitExpression = 'AwaitExpression';
1114
1116
  const BlockStatement = 'BlockStatement';
1115
1117
  const CallExpression = 'CallExpression';
1116
1118
  const CatchClause = 'CatchClause';
1119
+ const ChainExpression = 'ChainExpression';
1117
1120
  const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
1118
1121
  const ExpressionStatement = 'ExpressionStatement';
1119
1122
  const FunctionExpression = 'FunctionExpression';
@@ -1121,6 +1124,7 @@ const Identifier = 'Identifier';
1121
1124
  const Literal = 'Literal';
1122
1125
  const MemberExpression = 'MemberExpression';
1123
1126
  const ObjectExpression = 'ObjectExpression';
1127
+ const ObjectPattern = 'ObjectPattern';
1124
1128
  const PanicError = 'PanicError';
1125
1129
  const ParseError = 'ParseError';
1126
1130
  const Program = 'Program';
@@ -1129,6 +1133,7 @@ const RestElement = 'RestElement';
1129
1133
  const ReturnStatement = 'ReturnStatement';
1130
1134
  const StaticBlock = 'StaticBlock';
1131
1135
  const TemplateLiteral = 'TemplateLiteral';
1136
+ const UnaryExpression = 'UnaryExpression';
1132
1137
  const VariableDeclarator = 'VariableDeclarator';
1133
1138
 
1134
1139
  // This file is generated by scripts/generate-string-constants.js.
@@ -2222,12 +2227,15 @@ const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {
2222
2227
  const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await native_js.parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2223
2228
 
2224
2229
  exports.ANNOTATION_KEY = ANNOTATION_KEY;
2230
+ exports.ArrayPattern = ArrayPattern;
2225
2231
  exports.ArrowFunctionExpression = ArrowFunctionExpression;
2232
+ exports.AssignmentPattern = AssignmentPattern;
2226
2233
  exports.AwaitExpression = AwaitExpression;
2227
2234
  exports.BLANK = BLANK;
2228
2235
  exports.BlockStatement = BlockStatement;
2229
2236
  exports.CallExpression = CallExpression;
2230
2237
  exports.CatchClause = CatchClause;
2238
+ exports.ChainExpression = ChainExpression;
2231
2239
  exports.EMPTY_ARRAY = EMPTY_ARRAY;
2232
2240
  exports.EMPTY_OBJECT = EMPTY_OBJECT;
2233
2241
  exports.EMPTY_SET = EMPTY_SET;
@@ -2244,6 +2252,7 @@ exports.LOGLEVEL_WARN = LOGLEVEL_WARN;
2244
2252
  exports.Literal = Literal;
2245
2253
  exports.MemberExpression = MemberExpression;
2246
2254
  exports.ObjectExpression = ObjectExpression;
2255
+ exports.ObjectPattern = ObjectPattern;
2247
2256
  exports.Program = Program;
2248
2257
  exports.Property = Property;
2249
2258
  exports.RestElement = RestElement;
@@ -2276,6 +2285,7 @@ exports.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = URL_TREATING_MODULE_AS_EXTE
2276
2285
  exports.URL_TREESHAKE = URL_TREESHAKE;
2277
2286
  exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
2278
2287
  exports.URL_WATCH = URL_WATCH;
2288
+ exports.UnaryExpression = UnaryExpression;
2279
2289
  exports.VariableDeclarator = VariableDeclarator;
2280
2290
  exports.addTrailingSlashIfMissed = addTrailingSlashIfMissed;
2281
2291
  exports.augmentCodeLocation = augmentCodeLocation;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0";
45
+ var version = "4.68.2";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -10166,6 +10166,15 @@ class Identifier extends IdentifierBase {
10166
10166
  markDeclarationReached() {
10167
10167
  this.variable.initReached = true;
10168
10168
  }
10169
+ isDeclarationInDestructuringPattern() {
10170
+ let parent = this.parent;
10171
+ while (parent.type === parseAst_js.Property ||
10172
+ parent.type === parseAst_js.AssignmentPattern ||
10173
+ parent.type === parseAst_js.RestElement) {
10174
+ parent = parent.parent;
10175
+ }
10176
+ return parent.type === parseAst_js.ObjectPattern || parent.type === parseAst_js.ArrayPattern;
10177
+ }
10169
10178
  render(code, { snippets: { getPropertyAccess }, useOriginalName }, { renderedParentType, isCalleeOfRenderedParent, isShorthandProperty } = parseAst_js.BLANK) {
10170
10179
  if (this.variable) {
10171
10180
  const name = this.variable.getName(getPropertyAccess, useOriginalName);
@@ -12309,6 +12318,12 @@ class MemberExpression extends NodeBase {
12309
12318
  set bound(value) {
12310
12319
  this.flags = setFlag(this.flags, 32 /* Flag.bound */, value);
12311
12320
  }
12321
+ get deleteOfMissingNamespaceMember() {
12322
+ return isFlagSet(this.flags, 536870912 /* Flag.deleteOfMissingNamespaceMember */);
12323
+ }
12324
+ set deleteOfMissingNamespaceMember(value) {
12325
+ this.flags = setFlag(this.flags, 536870912 /* Flag.deleteOfMissingNamespaceMember */, value);
12326
+ }
12312
12327
  get isUndefined() {
12313
12328
  return isFlagSet(this.flags, 64 /* Flag.isUndefined */);
12314
12329
  }
@@ -12324,7 +12339,9 @@ class MemberExpression extends NodeBase {
12324
12339
  }
12325
12340
  if (baseVariable?.isNamespace) {
12326
12341
  const resolvedVariable = resolveNamespaceVariables(baseVariable, path.slice(1), this.scope.context);
12327
- if (!resolvedVariable) {
12342
+ const isDelete = this.isDeleteTarget();
12343
+ if (!resolvedVariable || this.assignmentInteraction || isDelete) {
12344
+ this.deleteOfMissingNamespaceMember = isDelete && resolvedVariable === 'undefined';
12328
12345
  super.bind();
12329
12346
  }
12330
12347
  else if (resolvedVariable === 'undefined') {
@@ -12633,15 +12650,9 @@ class MemberExpression extends NodeBase {
12633
12650
  }
12634
12651
  }
12635
12652
  disallowNamespaceReassignment() {
12636
- if (this.object instanceof Identifier) {
12637
- const variable = this.scope.findVariable(this.object.name);
12638
- if (variable.isNamespace) {
12639
- if (this.variable) {
12640
- this.scope.context.includeVariableInModule(this.variable, UNKNOWN_PATH, createInclusionContext());
12641
- }
12642
- this.scope.context.log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logIllegalImportReassignment(this.object.name, this.scope.context.module.id), this.start);
12643
- }
12644
- }
12653
+ if (!this.getNamespaceVariableOfObject() || this.deleteOfMissingNamespaceMember)
12654
+ return;
12655
+ this.scope.context.log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logIllegalImportReassignment(this.getNamespaceName(), this.scope.context.module.id), this.start);
12645
12656
  }
12646
12657
  getDynamicPropertyKey() {
12647
12658
  if (this.dynamicPropertyKey === null) {
@@ -12656,6 +12667,27 @@ class MemberExpression extends NodeBase {
12656
12667
  }
12657
12668
  return this.dynamicPropertyKey;
12658
12669
  }
12670
+ getNamespaceName() {
12671
+ return this.object instanceof Identifier
12672
+ ? this.object.name
12673
+ : getStringFromPath(getPathIfNotComputed(this.object));
12674
+ }
12675
+ getNamespaceVariableOfObject() {
12676
+ let variable;
12677
+ if (this.object instanceof Identifier) {
12678
+ variable = this.scope.findVariable(this.object.name);
12679
+ }
12680
+ else if (this.object instanceof MemberExpression) {
12681
+ variable = this.object.variable;
12682
+ }
12683
+ else {
12684
+ return null;
12685
+ }
12686
+ if (variable instanceof ExportDefaultVariable) {
12687
+ variable = variable.getOriginalNamespaceVariable() || variable;
12688
+ }
12689
+ return variable?.isNamespace ? variable : null;
12690
+ }
12659
12691
  hasAccessEffect(context) {
12660
12692
  const { propertyReadSideEffects } = this.scope.context.options
12661
12693
  .treeshake;
@@ -12664,6 +12696,10 @@ class MemberExpression extends NodeBase {
12664
12696
  (propertyReadSideEffects === 'always' ||
12665
12697
  this.object.hasEffectsOnInteractionAtPath([this.getDynamicPropertyKey()], this.accessInteraction, context)));
12666
12698
  }
12699
+ isDeleteTarget() {
12700
+ const parent = this.parent.type === parseAst_js.ChainExpression ? this.parent.parent : this.parent;
12701
+ return (parent.type === parseAst_js.UnaryExpression && parent.operator === 'delete');
12702
+ }
12667
12703
  }
12668
12704
  function resolveNamespaceVariables(baseVariable, path, astContext) {
12669
12705
  if (path.length === 0)
@@ -12924,7 +12960,12 @@ class NamespaceVariable extends Variable {
12924
12960
  .filter(([name, variable]) => !isNamespaceExportName(name) && variable.included)
12925
12961
  .map(([name, variable]) => {
12926
12962
  const key = unescapeExportName(name);
12927
- if (this.referencedEarly || variable.isReassigned || variable === this) {
12963
+ if (this.referencedEarly ||
12964
+ variable.isReassigned ||
12965
+ variable === this ||
12966
+ (variable.module &&
12967
+ !variable.module.info.isExternal &&
12968
+ variable.module.execIndex > this.module.execIndex)) {
12928
12969
  return [
12929
12970
  null,
12930
12971
  `get ${stringifyObjectKeyIfNeeded(key)}${_}()${_}{${_}return ${variable.getName(getPropertyAccess)}${s}${_}}`
@@ -15092,6 +15133,9 @@ CatchClause.prototype.includeNode = onlyIncludeSelf;
15092
15133
  class ChainExpression extends NodeBase {
15093
15134
  // deoptimizations are not relevant as we are not caching values
15094
15135
  deoptimizeCache() { }
15136
+ deoptimizePath(path) {
15137
+ this.expression.deoptimizePath(path);
15138
+ }
15095
15139
  getLiteralValueAtPath(path, recursionTracker, origin) {
15096
15140
  const literalValue = this.expression.getLiteralValueAtPathAsChainElement(path, recursionTracker, origin);
15097
15141
  return literalValue === IS_SKIPPED_CHAIN ? undefined : literalValue;
@@ -21600,7 +21644,10 @@ class Chunk {
21600
21644
  expression,
21601
21645
  hoisted,
21602
21646
  local,
21603
- needsLiveBinding: variable.isReassigned && this.exportNamesByVariable.get(variable).length > 1
21647
+ needsLiveBinding: (variable.isReassigned && this.exportNamesByVariable.get(variable).length > 1) ||
21648
+ // Pattern bindings are plain locals; a trailing assignment
21649
+ // would lose later reassignments.
21650
+ (variable.isTargetOfAssignment && isDeclaredInDestructuringPattern(variable))
21604
21651
  });
21605
21652
  }
21606
21653
  return exports;
@@ -22041,7 +22088,8 @@ class Chunk {
22041
22088
  if (format !== 'es' &&
22042
22089
  format !== 'system' &&
22043
22090
  exportVariable.isReassigned &&
22044
- !exportVariable.isId) {
22091
+ !exportVariable.isId &&
22092
+ !isDeclaredInDestructuringPattern(exportVariable)) {
22045
22093
  exportVariable.setRenderNames('exports', unescapeExportName(exportName));
22046
22094
  }
22047
22095
  else if (exportVariable instanceof SyntheticNamedExportVariable) {
@@ -22127,6 +22175,10 @@ class Chunk {
22127
22175
  function getChunkNameFromModule(module) {
22128
22176
  return getPredefinedChunkNameFromModule(module) ?? parseAst_js.getAliasName(module.id);
22129
22177
  }
22178
+ function isDeclaredInDestructuringPattern(variable) {
22179
+ return (variable instanceof LocalVariable &&
22180
+ variable.declarations.some(declaration => declaration instanceof Identifier && declaration.isDeclarationInDestructuringPattern()));
22181
+ }
22130
22182
  function getPredefinedChunkNameFromModule(module) {
22131
22183
  return (module.chunkNames.find(({ isUserDefined }) => isUserDefined)?.name ?? module.chunkNames[0]?.name);
22132
22184
  }
@@ -23771,7 +23823,13 @@ function addModuleToManualChunk(alias, module, manualChunkAliasByEntry) {
23771
23823
  }
23772
23824
  manualChunkAliasByEntry.set(module, alias);
23773
23825
  }
23826
+ const WINDOWS_DRIVE_LETTER_PREFIX_REGEX = /^[a-z]:/i;
23774
23827
  function isFileNameOutsideOutputDirectory(fileName) {
23828
+ // A leading drive letter makes the path drive-relative on Windows, where it
23829
+ // is resolved against the current directory of that drive.
23830
+ if (WINDOWS_DRIVE_LETTER_PREFIX_REGEX.test(fileName)) {
23831
+ return true;
23832
+ }
23775
23833
  // Use join() to normalize ".." segments, then replace backslashes so the
23776
23834
  // string checks below work identically on Windows and POSIX.
23777
23835
  const normalized = path.join(fileName).replaceAll('\\', '/');
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.68.0
4
- Fri, 06 Nov 2026 16:52:39 GMT - commit b93d9a40e1eed7a78069a58ca191260f5c094727
3
+ Rollup.js v4.68.2
4
+ Mon, 09 Nov 2026 14:14:20 GMT - commit 41ee3267fa8723898804e83fdf135e623de35555
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.68.0",
3
+ "version": "4.68.2",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",