@rollup/wasm-node 4.64.12 → 4.65.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.12
5
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
4
+ Rollup.js v4.65.0
5
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12\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.65.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";
31
31
 
32
32
  /**
33
33
  * @license
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -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.12";
30
+ var version = "4.65.0";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -17532,7 +17532,7 @@ function getOriginalLocation(sourcemapChain, location) {
17532
17532
  let previousSegment = filteredLine[0];
17533
17533
  for (let segment of filteredLine) {
17534
17534
  if (segment[0] >= location.column || segment === lastSegment) {
17535
- const notMatched = segment[0] !== location.column;
17535
+ const notMatched = segment[0] > location.column;
17536
17536
  segment = notMatched ? previousSegment : segment;
17537
17537
  location = {
17538
17538
  column: segment[3],
@@ -18777,7 +18777,8 @@ function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconf
18777
18777
  for (const variable of imports) {
18778
18778
  const module = variable.module;
18779
18779
  const name = variable.name;
18780
- if (variable.isNamespace && (preserveModules || module instanceof ExternalModule)) {
18780
+ if (variable.isNamespace &&
18781
+ (module instanceof ExternalModule || (preserveModules && !module.info.syntheticNamedExports))) {
18781
18782
  variable.setRenderNames(null, (module instanceof ExternalModule
18782
18783
  ? externalChunkByModule.get(module)
18783
18784
  : chunkByModule.get(module)).variableName);
@@ -18841,7 +18842,7 @@ function deconflictImportsOther(usedNames, imports, { deconflictedDefault, decon
18841
18842
  }
18842
18843
  else {
18843
18844
  const chunk = chunkByModule.get(module);
18844
- if (preserveModules && variable.isNamespace) {
18845
+ if (preserveModules && variable.isNamespace && !module.info.syntheticNamedExports) {
18845
18846
  variable.setRenderNames(null, chunk.exportMode === 'default' ? chunk.namespaceVariableName : chunk.variableName);
18846
18847
  }
18847
18848
  else if (chunk.exportMode === 'default') {
@@ -19204,7 +19205,8 @@ class Chunk {
19204
19205
  const chunkModules = new Set(orderedModules);
19205
19206
  for (const module of orderedModules) {
19206
19207
  chunkByModule.set(module, this);
19207
- if (module.namespace.included && !outputOptions.preserveModules) {
19208
+ if (module.namespace.included &&
19209
+ (!outputOptions.preserveModules || module.info.syntheticNamedExports)) {
19208
19210
  includedNamespaces.add(module);
19209
19211
  }
19210
19212
  if (this.isEmpty && module.isIncluded()) {
@@ -19508,11 +19510,16 @@ class Chunk {
19508
19510
  });
19509
19511
  }
19510
19512
  getVariableExportName(variable) {
19511
- if (this.outputOptions.preserveModules && variable instanceof NamespaceVariable) {
19513
+ if (this.isNativeNamespace(variable)) {
19512
19514
  return '*';
19513
19515
  }
19514
19516
  return this.exportNamesByVariable.get(variable)[0];
19515
19517
  }
19518
+ isNativeNamespace(variable) {
19519
+ return (this.outputOptions.preserveModules &&
19520
+ variable instanceof NamespaceVariable &&
19521
+ !variable.module.info.syntheticNamedExports);
19522
+ }
19516
19523
  link() {
19517
19524
  this.dependencies = getStaticDependencies(this, this.orderedModules, this.chunkByModule, this.externalChunkByModule);
19518
19525
  for (const module of this.orderedModules) {
@@ -19655,8 +19662,9 @@ class Chunk {
19655
19662
  const importedVariable = isSynthetic ? exportedVariable.getBaseVariable() : exportedVariable;
19656
19663
  this.checkCircularDependencyImport(importedVariable, module);
19657
19664
  // When preserving modules, we do not create namespace objects but directly
19658
- // use the actual namespaces, which would be broken by this logic.
19659
- if (!(importedVariable instanceof NamespaceVariable && this.outputOptions.preserveModules)) {
19665
+ // use the actual namespaces, which would be broken by this logic. Modules with
19666
+ // synthetic named exports still need a namespace object.
19667
+ if (!this.isNativeNamespace(importedVariable)) {
19660
19668
  const exportingModule = importedVariable.module;
19661
19669
  if (exportingModule instanceof Module) {
19662
19670
  const chunk = this.chunkByModule.get(exportingModule);
@@ -20220,9 +20228,8 @@ class Chunk {
20220
20228
  }
20221
20229
  setUpChunkImportsAndExportsForModule(module) {
20222
20230
  const moduleImports = new Set(module.includedImports);
20223
- // when we are not preserving modules, we need to make all namespace variables available for
20224
- // rendering the namespace object
20225
- if (!this.outputOptions.preserveModules && this.includedNamespaces.has(module)) {
20231
+ // we need to make all namespace variables available for rendering the namespace object
20232
+ if (this.includedNamespaces.has(module)) {
20226
20233
  for (const variable of module.getExportedVariablesByName().values()) {
20227
20234
  if (variable.included) {
20228
20235
  moduleImports.add(variable);
@@ -20242,8 +20249,9 @@ class Chunk {
20242
20249
  if (variable.module instanceof Module) {
20243
20250
  this.checkCircularDependencyImport(variable, module);
20244
20251
  // When preserving modules, we do not create namespace objects but directly
20245
- // use the actual namespaces, which would be broken by this logic.
20246
- if (!(variable instanceof NamespaceVariable && this.outputOptions.preserveModules)) {
20252
+ // use the actual namespaces, which would be broken by this logic. Modules with
20253
+ // synthetic named exports still need a namespace object.
20254
+ if (!this.isNativeNamespace(variable)) {
20247
20255
  chunk.exports.add(variable);
20248
20256
  }
20249
20257
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12";
45
+ var version = "4.65.0";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -19142,7 +19142,7 @@ function getOriginalLocation(sourcemapChain, location) {
19142
19142
  let previousSegment = filteredLine[0];
19143
19143
  for (let segment of filteredLine) {
19144
19144
  if (segment[0] >= location.column || segment === lastSegment) {
19145
- const notMatched = segment[0] !== location.column;
19145
+ const notMatched = segment[0] > location.column;
19146
19146
  segment = notMatched ? previousSegment : segment;
19147
19147
  location = {
19148
19148
  column: segment[3],
@@ -20387,7 +20387,8 @@ function deconflictImportsEsmOrSystem(usedNames, imports, dependenciesToBeDeconf
20387
20387
  for (const variable of imports) {
20388
20388
  const module = variable.module;
20389
20389
  const name = variable.name;
20390
- if (variable.isNamespace && (preserveModules || module instanceof ExternalModule)) {
20390
+ if (variable.isNamespace &&
20391
+ (module instanceof ExternalModule || (preserveModules && !module.info.syntheticNamedExports))) {
20391
20392
  variable.setRenderNames(null, (module instanceof ExternalModule
20392
20393
  ? externalChunkByModule.get(module)
20393
20394
  : chunkByModule.get(module)).variableName);
@@ -20451,7 +20452,7 @@ function deconflictImportsOther(usedNames, imports, { deconflictedDefault, decon
20451
20452
  }
20452
20453
  else {
20453
20454
  const chunk = chunkByModule.get(module);
20454
- if (preserveModules && variable.isNamespace) {
20455
+ if (preserveModules && variable.isNamespace && !module.info.syntheticNamedExports) {
20455
20456
  variable.setRenderNames(null, chunk.exportMode === 'default' ? chunk.namespaceVariableName : chunk.variableName);
20456
20457
  }
20457
20458
  else if (chunk.exportMode === 'default') {
@@ -20700,7 +20701,8 @@ class Chunk {
20700
20701
  const chunkModules = new Set(orderedModules);
20701
20702
  for (const module of orderedModules) {
20702
20703
  chunkByModule.set(module, this);
20703
- if (module.namespace.included && !outputOptions.preserveModules) {
20704
+ if (module.namespace.included &&
20705
+ (!outputOptions.preserveModules || module.info.syntheticNamedExports)) {
20704
20706
  includedNamespaces.add(module);
20705
20707
  }
20706
20708
  if (this.isEmpty && module.isIncluded()) {
@@ -21004,11 +21006,16 @@ class Chunk {
21004
21006
  });
21005
21007
  }
21006
21008
  getVariableExportName(variable) {
21007
- if (this.outputOptions.preserveModules && variable instanceof NamespaceVariable) {
21009
+ if (this.isNativeNamespace(variable)) {
21008
21010
  return '*';
21009
21011
  }
21010
21012
  return this.exportNamesByVariable.get(variable)[0];
21011
21013
  }
21014
+ isNativeNamespace(variable) {
21015
+ return (this.outputOptions.preserveModules &&
21016
+ variable instanceof NamespaceVariable &&
21017
+ !variable.module.info.syntheticNamedExports);
21018
+ }
21012
21019
  link() {
21013
21020
  this.dependencies = getStaticDependencies(this, this.orderedModules, this.chunkByModule, this.externalChunkByModule);
21014
21021
  for (const module of this.orderedModules) {
@@ -21151,8 +21158,9 @@ class Chunk {
21151
21158
  const importedVariable = isSynthetic ? exportedVariable.getBaseVariable() : exportedVariable;
21152
21159
  this.checkCircularDependencyImport(importedVariable, module);
21153
21160
  // When preserving modules, we do not create namespace objects but directly
21154
- // use the actual namespaces, which would be broken by this logic.
21155
- if (!(importedVariable instanceof NamespaceVariable && this.outputOptions.preserveModules)) {
21161
+ // use the actual namespaces, which would be broken by this logic. Modules with
21162
+ // synthetic named exports still need a namespace object.
21163
+ if (!this.isNativeNamespace(importedVariable)) {
21156
21164
  const exportingModule = importedVariable.module;
21157
21165
  if (exportingModule instanceof Module) {
21158
21166
  const chunk = this.chunkByModule.get(exportingModule);
@@ -21716,9 +21724,8 @@ class Chunk {
21716
21724
  }
21717
21725
  setUpChunkImportsAndExportsForModule(module) {
21718
21726
  const moduleImports = new Set(module.includedImports);
21719
- // when we are not preserving modules, we need to make all namespace variables available for
21720
- // rendering the namespace object
21721
- if (!this.outputOptions.preserveModules && this.includedNamespaces.has(module)) {
21727
+ // we need to make all namespace variables available for rendering the namespace object
21728
+ if (this.includedNamespaces.has(module)) {
21722
21729
  for (const variable of module.getExportedVariablesByName().values()) {
21723
21730
  if (variable.included) {
21724
21731
  moduleImports.add(variable);
@@ -21738,8 +21745,9 @@ class Chunk {
21738
21745
  if (variable.module instanceof Module) {
21739
21746
  this.checkCircularDependencyImport(variable, module);
21740
21747
  // When preserving modules, we do not create namespace objects but directly
21741
- // use the actual namespaces, which would be broken by this logic.
21742
- if (!(variable instanceof NamespaceVariable && this.outputOptions.preserveModules)) {
21748
+ // use the actual namespaces, which would be broken by this logic. Modules with
21749
+ // synthetic named exports still need a namespace object.
21750
+ if (!this.isNativeNamespace(variable)) {
21743
21751
  chunk.exports.add(variable);
21744
21752
  }
21745
21753
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12
4
- Tue, 20 Oct 2026 05:27:26 GMT - commit 78d43df94e2169414edb3827e3bcfe09fefb7ccc
3
+ Rollup.js v4.65.0
4
+ Thu, 22 Oct 2026 08:51:29 GMT - commit 9aac09a39dc1fa297a7b06f1ad6907f7bd41b310
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.12",
3
+ "version": "4.65.0",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",