rollup 4.62.3 → 4.62.5

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.62.3
5
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
4
+ Rollup.js v4.62.5
5
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.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";
30
+ const help = "rollup version 4.62.5\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.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.3";
30
+ var version = "4.62.5";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -316,10 +316,8 @@ var Chunk$1 = class Chunk {
316
316
  if (this.outro.length) return true;
317
317
  const trimmed = this.content.replace(rx, "");
318
318
  if (trimmed.length) {
319
- if (trimmed !== this.content) {
320
- this.split(this.start + trimmed.length).edit("", void 0, true);
321
- if (this.edited) this.edit(trimmed, this.storeName, true);
322
- }
319
+ if (trimmed !== this.content) if (this.edited) this.edit(trimmed, this.storeName, true);
320
+ else this.split(this.start + trimmed.length).edit("", void 0, true);
323
321
  return true;
324
322
  } else {
325
323
  this.edit("", void 0, true);
@@ -332,9 +330,9 @@ var Chunk$1 = class Chunk {
332
330
  if (this.intro.length) return true;
333
331
  const trimmed = this.content.replace(rx, "");
334
332
  if (trimmed.length) {
335
- if (trimmed !== this.content) {
336
- const newChunk = this.split(this.end - trimmed.length);
337
- if (this.edited) newChunk.edit(trimmed, this.storeName, true);
333
+ if (trimmed !== this.content) if (this.edited) this.edit(trimmed, this.storeName, true);
334
+ else {
335
+ this.split(this.end - trimmed.length);
338
336
  this.edit("", void 0, true);
339
337
  }
340
338
  return true;
@@ -616,8 +614,8 @@ var MagicString = class MagicString {
616
614
  value: options.offset || 0
617
615
  }
618
616
  });
619
- this.byStart[0] = chunk;
620
- this.byEnd[string.length] = chunk;
617
+ this.byStart = /* @__PURE__ */ new Map([[0, chunk]]);
618
+ this.byEnd = /* @__PURE__ */ new Map([[string.length, chunk]]);
621
619
  }
622
620
  /**
623
621
  * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
@@ -642,7 +640,7 @@ var MagicString = class MagicString {
642
640
  index = index + this.offset;
643
641
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
644
642
  this._split(index);
645
- const chunk = this.byEnd[index];
643
+ const chunk = this.byEnd.get(index);
646
644
  if (chunk) chunk.appendLeft(content);
647
645
  else this.intro += content;
648
646
  return this;
@@ -656,7 +654,7 @@ var MagicString = class MagicString {
656
654
  index = index + this.offset;
657
655
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
658
656
  this._split(index);
659
- const chunk = this.byStart[index];
657
+ const chunk = this.byStart.get(index);
660
658
  if (chunk) chunk.appendRight(content);
661
659
  else this.outro += content;
662
660
  return this;
@@ -672,8 +670,8 @@ var MagicString = class MagicString {
672
670
  let originalChunk = this.firstChunk;
673
671
  let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
674
672
  while (originalChunk) {
675
- cloned.byStart[clonedChunk.start] = clonedChunk;
676
- cloned.byEnd[clonedChunk.end] = clonedChunk;
673
+ cloned.byStart.set(clonedChunk.start, clonedChunk);
674
+ cloned.byEnd.set(clonedChunk.end, clonedChunk);
677
675
  const nextOriginalChunk = originalChunk.next;
678
676
  const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
679
677
  if (nextClonedChunk) {
@@ -846,11 +844,11 @@ var MagicString = class MagicString {
846
844
  this._split(start);
847
845
  this._split(end);
848
846
  this._split(index);
849
- const first = this.byStart[start];
850
- const last = this.byEnd[end];
847
+ const first = this.byStart.get(start);
848
+ const last = this.byEnd.get(end);
851
849
  const oldLeft = first.previous;
852
850
  const oldRight = last.next;
853
- const newRight = this.byStart[index];
851
+ const newRight = this.byStart.get(index);
854
852
  if (!newRight && last === this.lastChunk) return this;
855
853
  const newLeft = newRight ? newRight.previous : this.lastChunk;
856
854
  if (oldLeft) oldLeft.next = oldRight;
@@ -922,12 +920,12 @@ var MagicString = class MagicString {
922
920
  enumerable: true
923
921
  });
924
922
  }
925
- const first = this.byStart[start];
926
- const last = this.byEnd[end];
923
+ const first = this.byStart.get(start);
924
+ const last = this.byEnd.get(end);
927
925
  if (first) {
928
926
  let chunk = first;
929
927
  while (chunk !== last) {
930
- if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point");
928
+ if (chunk.next !== this.byStart.get(chunk.end)) throw new Error("Cannot overwrite across a split point");
931
929
  chunk = chunk.next;
932
930
  chunk.edit("", false);
933
931
  }
@@ -954,7 +952,7 @@ var MagicString = class MagicString {
954
952
  index = index + this.offset;
955
953
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
956
954
  this._split(index);
957
- const chunk = this.byEnd[index];
955
+ const chunk = this.byEnd.get(index);
958
956
  if (chunk) chunk.prependLeft(content);
959
957
  else this.intro = content + this.intro;
960
958
  return this;
@@ -966,7 +964,7 @@ var MagicString = class MagicString {
966
964
  index = index + this.offset;
967
965
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
968
966
  this._split(index);
969
- const chunk = this.byStart[index];
967
+ const chunk = this.byStart.get(index);
970
968
  if (chunk) chunk.prependRight(content);
971
969
  else this.outro = content + this.outro;
972
970
  return this;
@@ -987,12 +985,12 @@ var MagicString = class MagicString {
987
985
  if (start > end) throw new Error("end must be greater than start");
988
986
  this._split(start);
989
987
  this._split(end);
990
- let chunk = this.byStart[start];
988
+ let chunk = this.byStart.get(start);
991
989
  while (chunk) {
992
990
  chunk.intro = "";
993
991
  chunk.outro = "";
994
992
  chunk.edit("");
995
- chunk = end > chunk.end ? this.byStart[chunk.end] : null;
993
+ chunk = end > chunk.end ? this.byStart.get(chunk.end) : null;
996
994
  }
997
995
  return this;
998
996
  }
@@ -1011,10 +1009,10 @@ var MagicString = class MagicString {
1011
1009
  if (start > end) throw new Error("end must be greater than start");
1012
1010
  this._split(start);
1013
1011
  this._split(end);
1014
- let chunk = this.byStart[start];
1012
+ let chunk = this.byStart.get(start);
1015
1013
  while (chunk) {
1016
1014
  chunk.reset();
1017
- chunk = end > chunk.end ? this.byStart[chunk.end] : null;
1015
+ chunk = end > chunk.end ? this.byStart.get(chunk.end) : null;
1018
1016
  }
1019
1017
  return this;
1020
1018
  }
@@ -1100,13 +1098,13 @@ var MagicString = class MagicString {
1100
1098
  }
1101
1099
  /** @internal */
1102
1100
  _split(index) {
1103
- if (this.byStart[index] || this.byEnd[index]) return;
1101
+ if (this.byStart.get(index) || this.byEnd.get(index)) return;
1104
1102
  let chunk = this.lastSearchedChunk;
1105
1103
  let previousChunk = chunk;
1106
1104
  const searchForward = index > chunk.end;
1107
1105
  while (chunk) {
1108
1106
  if (chunk.contains(index)) return this._splitChunk(chunk, index);
1109
- chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
1107
+ chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
1110
1108
  if (chunk === previousChunk) return;
1111
1109
  previousChunk = chunk;
1112
1110
  }
@@ -1118,9 +1116,9 @@ var MagicString = class MagicString {
1118
1116
  throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`);
1119
1117
  }
1120
1118
  const newChunk = chunk.split(index);
1121
- this.byEnd[index] = chunk;
1122
- this.byStart[index] = newChunk;
1123
- this.byEnd[newChunk.end] = newChunk;
1119
+ this.byEnd.set(index, chunk);
1120
+ this.byStart.set(index, newChunk);
1121
+ this.byEnd.set(newChunk.end, newChunk);
1124
1122
  if (chunk === this.lastChunk) this.lastChunk = newChunk;
1125
1123
  this.lastSearchedChunk = chunk;
1126
1124
  return true;
@@ -1180,9 +1178,9 @@ var MagicString = class MagicString {
1180
1178
  const aborted = chunk.trimEnd(rx);
1181
1179
  if (chunk.end !== end) {
1182
1180
  if (this.lastChunk === chunk) this.lastChunk = chunk.next;
1183
- this.byEnd[chunk.end] = chunk;
1184
- this.byStart[chunk.next.start] = chunk.next;
1185
- this.byEnd[chunk.next.end] = chunk.next;
1181
+ this.byEnd.set(chunk.end, chunk);
1182
+ this.byStart.set(chunk.next.start, chunk.next);
1183
+ this.byEnd.set(chunk.next.end, chunk.next);
1186
1184
  }
1187
1185
  if (aborted) return true;
1188
1186
  chunk = chunk.previous;
@@ -1207,9 +1205,9 @@ var MagicString = class MagicString {
1207
1205
  const aborted = chunk.trimStart(rx);
1208
1206
  if (chunk.end !== end) {
1209
1207
  if (chunk === this.lastChunk) this.lastChunk = chunk.next;
1210
- this.byEnd[chunk.end] = chunk;
1211
- this.byStart[chunk.next.start] = chunk.next;
1212
- this.byEnd[chunk.next.end] = chunk.next;
1208
+ this.byEnd.set(chunk.end, chunk);
1209
+ this.byStart.set(chunk.next.start, chunk.next);
1210
+ this.byEnd.set(chunk.next.end, chunk.next);
1213
1211
  }
1214
1212
  if (aborted) return true;
1215
1213
  chunk = chunk.next;
@@ -6693,6 +6691,7 @@ class ExportDefaultDeclaration extends NodeBase {
6693
6691
  render(code, options, nodeRenderOptions) {
6694
6692
  const { start, end } = nodeRenderOptions;
6695
6693
  const declarationStart = getDeclarationStart(code.original, this.start);
6694
+ let needsTrailingSemicolon = false;
6696
6695
  if (this.declaration instanceof FunctionDeclaration) {
6697
6696
  this.renderNamedDeclaration(code, declarationStart, this.declaration.id === null
6698
6697
  ? getFunctionIdInsertPosition(code.original, declarationStart)
@@ -6709,7 +6708,7 @@ class ExportDefaultDeclaration extends NodeBase {
6709
6708
  return;
6710
6709
  }
6711
6710
  else if (this.variable.included) {
6712
- this.renderVariableDeclaration(code, declarationStart, options);
6711
+ needsTrailingSemicolon = this.renderVariableDeclaration(code, declarationStart, options);
6713
6712
  }
6714
6713
  else {
6715
6714
  code.remove(this.start, declarationStart);
@@ -6722,6 +6721,12 @@ class ExportDefaultDeclaration extends NodeBase {
6722
6721
  return;
6723
6722
  }
6724
6723
  this.declaration.render(code, options);
6724
+ if (needsTrailingSemicolon) {
6725
+ // This needs to happen after the declaration was rendered as rendering can
6726
+ // replace the entire declaration, which would drop anything appended to the
6727
+ // left of its end.
6728
+ code.appendLeft(this.end, ';');
6729
+ }
6725
6730
  }
6726
6731
  renderNamedDeclaration(code, declarationStart, idInsertPosition, options) {
6727
6732
  const { exportNamesByVariable, format, snippets: { getPropertyAccess } } = options;
@@ -6737,19 +6742,18 @@ class ExportDefaultDeclaration extends NodeBase {
6737
6742
  code.appendLeft(this.end, ` ${getSystemExportStatement([this.variable], options)};`);
6738
6743
  }
6739
6744
  }
6745
+ // Returns whether a semicolon still needs to be appended after the declaration
6746
+ // was rendered.
6740
6747
  renderVariableDeclaration(code, declarationStart, { format, exportNamesByVariable, snippets: { cnst, getPropertyAccess } }) {
6741
6748
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59; /*";"*/
6742
6749
  const systemExportNames = format === 'system' && exportNamesByVariable.get(this.variable);
6743
6750
  if (systemExportNames) {
6744
6751
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
6745
6752
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ')' + (hasTrailingSemicolon ? '' : ';'));
6753
+ return false;
6746
6754
  }
6747
- else {
6748
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
6749
- if (!hasTrailingSemicolon) {
6750
- code.appendLeft(this.end, ';');
6751
- }
6752
- }
6755
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
6756
+ return !hasTrailingSemicolon;
6753
6757
  }
6754
6758
  }
6755
6759
  ExportDefaultDeclaration.prototype.needsBoundaries = true;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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.62.3";
45
+ var version = "4.62.5";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -4485,10 +4485,8 @@ var Chunk$1 = class Chunk {
4485
4485
  if (this.outro.length) return true;
4486
4486
  const trimmed = this.content.replace(rx, "");
4487
4487
  if (trimmed.length) {
4488
- if (trimmed !== this.content) {
4489
- this.split(this.start + trimmed.length).edit("", void 0, true);
4490
- if (this.edited) this.edit(trimmed, this.storeName, true);
4491
- }
4488
+ if (trimmed !== this.content) if (this.edited) this.edit(trimmed, this.storeName, true);
4489
+ else this.split(this.start + trimmed.length).edit("", void 0, true);
4492
4490
  return true;
4493
4491
  } else {
4494
4492
  this.edit("", void 0, true);
@@ -4501,9 +4499,9 @@ var Chunk$1 = class Chunk {
4501
4499
  if (this.intro.length) return true;
4502
4500
  const trimmed = this.content.replace(rx, "");
4503
4501
  if (trimmed.length) {
4504
- if (trimmed !== this.content) {
4505
- const newChunk = this.split(this.end - trimmed.length);
4506
- if (this.edited) newChunk.edit(trimmed, this.storeName, true);
4502
+ if (trimmed !== this.content) if (this.edited) this.edit(trimmed, this.storeName, true);
4503
+ else {
4504
+ this.split(this.end - trimmed.length);
4507
4505
  this.edit("", void 0, true);
4508
4506
  }
4509
4507
  return true;
@@ -4785,8 +4783,8 @@ var MagicString = class MagicString {
4785
4783
  value: options.offset || 0
4786
4784
  }
4787
4785
  });
4788
- this.byStart[0] = chunk;
4789
- this.byEnd[string.length] = chunk;
4786
+ this.byStart = /* @__PURE__ */ new Map([[0, chunk]]);
4787
+ this.byEnd = /* @__PURE__ */ new Map([[string.length, chunk]]);
4790
4788
  }
4791
4789
  /**
4792
4790
  * Adds the specified character index (with respect to the original string) to sourcemap mappings, if `hires` is false.
@@ -4811,7 +4809,7 @@ var MagicString = class MagicString {
4811
4809
  index = index + this.offset;
4812
4810
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
4813
4811
  this._split(index);
4814
- const chunk = this.byEnd[index];
4812
+ const chunk = this.byEnd.get(index);
4815
4813
  if (chunk) chunk.appendLeft(content);
4816
4814
  else this.intro += content;
4817
4815
  return this;
@@ -4825,7 +4823,7 @@ var MagicString = class MagicString {
4825
4823
  index = index + this.offset;
4826
4824
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
4827
4825
  this._split(index);
4828
- const chunk = this.byStart[index];
4826
+ const chunk = this.byStart.get(index);
4829
4827
  if (chunk) chunk.appendRight(content);
4830
4828
  else this.outro += content;
4831
4829
  return this;
@@ -4841,8 +4839,8 @@ var MagicString = class MagicString {
4841
4839
  let originalChunk = this.firstChunk;
4842
4840
  let clonedChunk = cloned.firstChunk = cloned.lastSearchedChunk = originalChunk.clone();
4843
4841
  while (originalChunk) {
4844
- cloned.byStart[clonedChunk.start] = clonedChunk;
4845
- cloned.byEnd[clonedChunk.end] = clonedChunk;
4842
+ cloned.byStart.set(clonedChunk.start, clonedChunk);
4843
+ cloned.byEnd.set(clonedChunk.end, clonedChunk);
4846
4844
  const nextOriginalChunk = originalChunk.next;
4847
4845
  const nextClonedChunk = nextOriginalChunk && nextOriginalChunk.clone();
4848
4846
  if (nextClonedChunk) {
@@ -5015,11 +5013,11 @@ var MagicString = class MagicString {
5015
5013
  this._split(start);
5016
5014
  this._split(end);
5017
5015
  this._split(index);
5018
- const first = this.byStart[start];
5019
- const last = this.byEnd[end];
5016
+ const first = this.byStart.get(start);
5017
+ const last = this.byEnd.get(end);
5020
5018
  const oldLeft = first.previous;
5021
5019
  const oldRight = last.next;
5022
- const newRight = this.byStart[index];
5020
+ const newRight = this.byStart.get(index);
5023
5021
  if (!newRight && last === this.lastChunk) return this;
5024
5022
  const newLeft = newRight ? newRight.previous : this.lastChunk;
5025
5023
  if (oldLeft) oldLeft.next = oldRight;
@@ -5091,12 +5089,12 @@ var MagicString = class MagicString {
5091
5089
  enumerable: true
5092
5090
  });
5093
5091
  }
5094
- const first = this.byStart[start];
5095
- const last = this.byEnd[end];
5092
+ const first = this.byStart.get(start);
5093
+ const last = this.byEnd.get(end);
5096
5094
  if (first) {
5097
5095
  let chunk = first;
5098
5096
  while (chunk !== last) {
5099
- if (chunk.next !== this.byStart[chunk.end]) throw new Error("Cannot overwrite across a split point");
5097
+ if (chunk.next !== this.byStart.get(chunk.end)) throw new Error("Cannot overwrite across a split point");
5100
5098
  chunk = chunk.next;
5101
5099
  chunk.edit("", false);
5102
5100
  }
@@ -5123,7 +5121,7 @@ var MagicString = class MagicString {
5123
5121
  index = index + this.offset;
5124
5122
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
5125
5123
  this._split(index);
5126
- const chunk = this.byEnd[index];
5124
+ const chunk = this.byEnd.get(index);
5127
5125
  if (chunk) chunk.prependLeft(content);
5128
5126
  else this.intro = content + this.intro;
5129
5127
  return this;
@@ -5135,7 +5133,7 @@ var MagicString = class MagicString {
5135
5133
  index = index + this.offset;
5136
5134
  if (typeof content !== "string") throw new TypeError("inserted content must be a string");
5137
5135
  this._split(index);
5138
- const chunk = this.byStart[index];
5136
+ const chunk = this.byStart.get(index);
5139
5137
  if (chunk) chunk.prependRight(content);
5140
5138
  else this.outro = content + this.outro;
5141
5139
  return this;
@@ -5156,12 +5154,12 @@ var MagicString = class MagicString {
5156
5154
  if (start > end) throw new Error("end must be greater than start");
5157
5155
  this._split(start);
5158
5156
  this._split(end);
5159
- let chunk = this.byStart[start];
5157
+ let chunk = this.byStart.get(start);
5160
5158
  while (chunk) {
5161
5159
  chunk.intro = "";
5162
5160
  chunk.outro = "";
5163
5161
  chunk.edit("");
5164
- chunk = end > chunk.end ? this.byStart[chunk.end] : null;
5162
+ chunk = end > chunk.end ? this.byStart.get(chunk.end) : null;
5165
5163
  }
5166
5164
  return this;
5167
5165
  }
@@ -5180,10 +5178,10 @@ var MagicString = class MagicString {
5180
5178
  if (start > end) throw new Error("end must be greater than start");
5181
5179
  this._split(start);
5182
5180
  this._split(end);
5183
- let chunk = this.byStart[start];
5181
+ let chunk = this.byStart.get(start);
5184
5182
  while (chunk) {
5185
5183
  chunk.reset();
5186
- chunk = end > chunk.end ? this.byStart[chunk.end] : null;
5184
+ chunk = end > chunk.end ? this.byStart.get(chunk.end) : null;
5187
5185
  }
5188
5186
  return this;
5189
5187
  }
@@ -5269,13 +5267,13 @@ var MagicString = class MagicString {
5269
5267
  }
5270
5268
  /** @internal */
5271
5269
  _split(index) {
5272
- if (this.byStart[index] || this.byEnd[index]) return;
5270
+ if (this.byStart.get(index) || this.byEnd.get(index)) return;
5273
5271
  let chunk = this.lastSearchedChunk;
5274
5272
  let previousChunk = chunk;
5275
5273
  const searchForward = index > chunk.end;
5276
5274
  while (chunk) {
5277
5275
  if (chunk.contains(index)) return this._splitChunk(chunk, index);
5278
- chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
5276
+ chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
5279
5277
  if (chunk === previousChunk) return;
5280
5278
  previousChunk = chunk;
5281
5279
  }
@@ -5287,9 +5285,9 @@ var MagicString = class MagicString {
5287
5285
  throw new Error(`Cannot split a chunk that has already been edited (${loc.line}:${loc.column} – "${chunk.original}")`);
5288
5286
  }
5289
5287
  const newChunk = chunk.split(index);
5290
- this.byEnd[index] = chunk;
5291
- this.byStart[index] = newChunk;
5292
- this.byEnd[newChunk.end] = newChunk;
5288
+ this.byEnd.set(index, chunk);
5289
+ this.byStart.set(index, newChunk);
5290
+ this.byEnd.set(newChunk.end, newChunk);
5293
5291
  if (chunk === this.lastChunk) this.lastChunk = newChunk;
5294
5292
  this.lastSearchedChunk = chunk;
5295
5293
  return true;
@@ -5349,9 +5347,9 @@ var MagicString = class MagicString {
5349
5347
  const aborted = chunk.trimEnd(rx);
5350
5348
  if (chunk.end !== end) {
5351
5349
  if (this.lastChunk === chunk) this.lastChunk = chunk.next;
5352
- this.byEnd[chunk.end] = chunk;
5353
- this.byStart[chunk.next.start] = chunk.next;
5354
- this.byEnd[chunk.next.end] = chunk.next;
5350
+ this.byEnd.set(chunk.end, chunk);
5351
+ this.byStart.set(chunk.next.start, chunk.next);
5352
+ this.byEnd.set(chunk.next.end, chunk.next);
5355
5353
  }
5356
5354
  if (aborted) return true;
5357
5355
  chunk = chunk.previous;
@@ -5376,9 +5374,9 @@ var MagicString = class MagicString {
5376
5374
  const aborted = chunk.trimStart(rx);
5377
5375
  if (chunk.end !== end) {
5378
5376
  if (chunk === this.lastChunk) this.lastChunk = chunk.next;
5379
- this.byEnd[chunk.end] = chunk;
5380
- this.byStart[chunk.next.start] = chunk.next;
5381
- this.byEnd[chunk.next.end] = chunk.next;
5377
+ this.byEnd.set(chunk.end, chunk);
5378
+ this.byStart.set(chunk.next.start, chunk.next);
5379
+ this.byEnd.set(chunk.next.end, chunk.next);
5382
5380
  }
5383
5381
  if (aborted) return true;
5384
5382
  chunk = chunk.next;
@@ -10832,6 +10830,7 @@ class ExportDefaultDeclaration extends NodeBase {
10832
10830
  render(code, options, nodeRenderOptions) {
10833
10831
  const { start, end } = nodeRenderOptions;
10834
10832
  const declarationStart = getDeclarationStart(code.original, this.start);
10833
+ let needsTrailingSemicolon = false;
10835
10834
  if (this.declaration instanceof FunctionDeclaration) {
10836
10835
  this.renderNamedDeclaration(code, declarationStart, this.declaration.id === null
10837
10836
  ? getFunctionIdInsertPosition(code.original, declarationStart)
@@ -10848,7 +10847,7 @@ class ExportDefaultDeclaration extends NodeBase {
10848
10847
  return;
10849
10848
  }
10850
10849
  else if (this.variable.included) {
10851
- this.renderVariableDeclaration(code, declarationStart, options);
10850
+ needsTrailingSemicolon = this.renderVariableDeclaration(code, declarationStart, options);
10852
10851
  }
10853
10852
  else {
10854
10853
  code.remove(this.start, declarationStart);
@@ -10861,6 +10860,12 @@ class ExportDefaultDeclaration extends NodeBase {
10861
10860
  return;
10862
10861
  }
10863
10862
  this.declaration.render(code, options);
10863
+ if (needsTrailingSemicolon) {
10864
+ // This needs to happen after the declaration was rendered as rendering can
10865
+ // replace the entire declaration, which would drop anything appended to the
10866
+ // left of its end.
10867
+ code.appendLeft(this.end, ';');
10868
+ }
10864
10869
  }
10865
10870
  renderNamedDeclaration(code, declarationStart, idInsertPosition, options) {
10866
10871
  const { exportNamesByVariable, format, snippets: { getPropertyAccess } } = options;
@@ -10876,19 +10881,18 @@ class ExportDefaultDeclaration extends NodeBase {
10876
10881
  code.appendLeft(this.end, ` ${getSystemExportStatement([this.variable], options)};`);
10877
10882
  }
10878
10883
  }
10884
+ // Returns whether a semicolon still needs to be appended after the declaration
10885
+ // was rendered.
10879
10886
  renderVariableDeclaration(code, declarationStart, { format, exportNamesByVariable, snippets: { cnst, getPropertyAccess } }) {
10880
10887
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59; /*";"*/
10881
10888
  const systemExportNames = format === 'system' && exportNamesByVariable.get(this.variable);
10882
10889
  if (systemExportNames) {
10883
10890
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
10884
10891
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ')' + (hasTrailingSemicolon ? '' : ';'));
10892
+ return false;
10885
10893
  }
10886
- else {
10887
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
10888
- if (!hasTrailingSemicolon) {
10889
- code.appendLeft(this.end, ';');
10890
- }
10891
- }
10894
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
10895
+ return !hasTrailingSemicolon;
10892
10896
  }
10893
10897
  }
10894
10898
  ExportDefaultDeclaration.prototype.needsBoundaries = true;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.3
4
- Sun, 26 Jul 2026 14:58:21 GMT - commit a80a1974c584bfa8b694fb5d1a20f3fa75ebaf0a
3
+ Rollup.js v4.62.5
4
+ Thu, 20 Aug 2026 16:59:36 GMT - commit c20402e2d4498a5861a4f49e00b2e7446c9900bb
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",
3
- "version": "4.62.3",
3
+ "version": "4.62.5",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -113,32 +113,33 @@
113
113
  },
114
114
  "homepage": "https://rollupjs.org/",
115
115
  "optionalDependencies": {
116
+ "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
116
117
  "fsevents": "~2.3.2",
117
- "@rollup/rollup-darwin-arm64": "4.62.3",
118
- "@rollup/rollup-android-arm64": "4.62.3",
119
- "@rollup/rollup-win32-arm64-msvc": "4.62.3",
120
- "@rollup/rollup-freebsd-arm64": "4.62.3",
121
- "@rollup/rollup-linux-arm64-gnu": "4.62.3",
122
- "@rollup/rollup-linux-arm64-musl": "4.62.3",
123
- "@rollup/rollup-android-arm-eabi": "4.62.3",
124
- "@rollup/rollup-linux-arm-gnueabihf": "4.62.3",
125
- "@rollup/rollup-linux-arm-musleabihf": "4.62.3",
126
- "@rollup/rollup-win32-ia32-msvc": "4.62.3",
127
- "@rollup/rollup-linux-loong64-gnu": "4.62.3",
128
- "@rollup/rollup-linux-loong64-musl": "4.62.3",
129
- "@rollup/rollup-linux-riscv64-gnu": "4.62.3",
130
- "@rollup/rollup-linux-riscv64-musl": "4.62.3",
131
- "@rollup/rollup-linux-ppc64-gnu": "4.62.3",
132
- "@rollup/rollup-linux-ppc64-musl": "4.62.3",
133
- "@rollup/rollup-linux-s390x-gnu": "4.62.3",
134
- "@rollup/rollup-darwin-x64": "4.62.3",
135
- "@rollup/rollup-win32-x64-gnu": "4.62.3",
136
- "@rollup/rollup-win32-x64-msvc": "4.62.3",
137
- "@rollup/rollup-freebsd-x64": "4.62.3",
138
- "@rollup/rollup-linux-x64-gnu": "4.62.3",
139
- "@rollup/rollup-linux-x64-musl": "4.62.3",
140
- "@rollup/rollup-openbsd-x64": "4.62.3",
141
- "@rollup/rollup-openharmony-arm64": "4.62.3"
118
+ "@rollup/rollup-darwin-arm64": "4.62.5",
119
+ "@rollup/rollup-android-arm64": "4.62.5",
120
+ "@rollup/rollup-win32-arm64-msvc": "4.62.5",
121
+ "@rollup/rollup-freebsd-arm64": "4.62.5",
122
+ "@rollup/rollup-linux-arm64-gnu": "4.62.5",
123
+ "@rollup/rollup-linux-arm64-musl": "4.62.5",
124
+ "@rollup/rollup-android-arm-eabi": "4.62.5",
125
+ "@rollup/rollup-linux-arm-gnueabihf": "4.62.5",
126
+ "@rollup/rollup-linux-arm-musleabihf": "4.62.5",
127
+ "@rollup/rollup-win32-ia32-msvc": "4.62.5",
128
+ "@rollup/rollup-linux-loong64-gnu": "4.62.5",
129
+ "@rollup/rollup-linux-loong64-musl": "4.62.5",
130
+ "@rollup/rollup-linux-riscv64-gnu": "4.62.5",
131
+ "@rollup/rollup-linux-riscv64-musl": "4.62.5",
132
+ "@rollup/rollup-linux-ppc64-gnu": "4.62.5",
133
+ "@rollup/rollup-linux-ppc64-musl": "4.62.5",
134
+ "@rollup/rollup-linux-s390x-gnu": "4.62.5",
135
+ "@rollup/rollup-darwin-x64": "4.62.5",
136
+ "@rollup/rollup-win32-x64-gnu": "4.62.5",
137
+ "@rollup/rollup-win32-x64-msvc": "4.62.5",
138
+ "@rollup/rollup-freebsd-x64": "4.62.5",
139
+ "@rollup/rollup-linux-x64-gnu": "4.62.5",
140
+ "@rollup/rollup-linux-x64-musl": "4.62.5",
141
+ "@rollup/rollup-openbsd-x64": "4.62.5",
142
+ "@rollup/rollup-openharmony-arm64": "4.62.5"
142
143
  },
143
144
  "dependencies": {
144
145
  "@types/estree": "1.0.9"
@@ -152,9 +153,9 @@
152
153
  "@codemirror/language": "^6.12.4",
153
154
  "@codemirror/search": "^6.7.1",
154
155
  "@codemirror/state": "^6.7.1",
155
- "@codemirror/view": "^6.43.6",
156
- "@emnapi/core": "^1.11.2",
157
- "@emnapi/runtime": "^1.11.2",
156
+ "@codemirror/view": "^6.43.8",
157
+ "@emnapi/core": "^1.11.3",
158
+ "@emnapi/runtime": "^1.11.3",
158
159
  "@eslint/js": "^10.0.1",
159
160
  "@inquirer/prompts": "^7.10.1",
160
161
  "@jridgewell/sourcemap-codec": "^1.5.5",
@@ -169,14 +170,14 @@
169
170
  "@rollup/plugin-terser": "^0.4.4",
170
171
  "@rollup/plugin-typescript": "^12.3.0",
171
172
  "@rollup/pluginutils": "^5.4.0",
172
- "@shikijs/vitepress-twoslash": "^4.3.1",
173
+ "@shikijs/vitepress-twoslash": "^4.4.3",
173
174
  "@types/mocha": "^10.0.10",
174
175
  "@types/node": "^20.19.43",
175
176
  "@types/picomatch": "^4.0.3",
176
- "@types/semver": "^7.7.1",
177
+ "@types/semver": "^7.8.0",
177
178
  "@types/yargs-parser": "^21.0.3",
178
- "@vue/language-server": "^3.3.7",
179
- "acorn": "^8.17.0",
179
+ "@vue/language-server": "^3.3.9",
180
+ "acorn": "^8.18.0",
180
181
  "acorn-import-assertions": "^1.9.0",
181
182
  "acorn-import-phases": "^1.0.4",
182
183
  "acorn-jsx": "^5.3.2",
@@ -188,23 +189,23 @@
188
189
  "date-time": "^4.0.0",
189
190
  "es5-shim": "^4.6.7",
190
191
  "es6-shim": "^0.35.8",
191
- "eslint": "^10.7.0",
192
+ "eslint": "^10.8.1",
192
193
  "eslint-config-prettier": "^10.1.8",
193
194
  "eslint-plugin-prettier": "^5.5.6",
194
- "eslint-plugin-unicorn": "^72.0.0",
195
+ "eslint-plugin-unicorn": "^73.0.0",
195
196
  "eslint-plugin-vue": "^10.10.0",
196
197
  "fixturify": "^3.0.0",
197
198
  "flru": "^1.0.2",
198
- "fs-extra": "^11.3.6",
199
+ "fs-extra": "^11.4.0",
199
200
  "github-api": "^3.4.0",
200
- "globals": "^17.7.0",
201
+ "globals": "^17.9.0",
201
202
  "husky": "^9.1.7",
202
203
  "is-reference": "^3.0.3",
203
- "lint-staged": "^17.1.0",
204
+ "lint-staged": "^17.3.0",
204
205
  "locate-character": "^3.0.0",
205
- "magic-string": "^1.0.0",
206
- "memfs": "^4.64.0",
207
- "mocha": "11.7.6",
206
+ "magic-string": "^1.1.0",
207
+ "memfs": "^4.68.1",
208
+ "mocha": "11.8.0",
208
209
  "nodemon": "^3.1.14",
209
210
  "npm-audit-resolver": "^3.0.0-RC.0",
210
211
  "nyc": "^18.0.0",
@@ -212,12 +213,12 @@
212
213
  "picocolors": "^1.1.1",
213
214
  "picomatch": "^4.0.5",
214
215
  "pinia": "^4.0.2",
215
- "prettier": "^3.9.5",
216
+ "prettier": "^3.9.6",
216
217
  "prettier-plugin-organize-imports": "^4.3.0",
217
218
  "pretty-bytes": "^7.1.1",
218
219
  "pretty-ms": "^9.3.0",
219
220
  "requirejs": "^2.3.8",
220
- "rollup": "^4.62.2",
221
+ "rollup": "^4.62.4",
221
222
  "rollup-plugin-license": "^3.7.1",
222
223
  "semver": "^7.8.5",
223
224
  "shx": "^0.4.0",
@@ -225,20 +226,20 @@
225
226
  "source-map": "^0.8.0",
226
227
  "source-map-support": "^0.5.21",
227
228
  "systemjs": "^6.15.1",
228
- "terser": "^5.49.0",
229
+ "terser": "^5.49.2",
229
230
  "tslib": "^2.8.1",
230
231
  "typescript": "^5.9.3",
231
- "typescript-eslint": "^8.65.0",
232
+ "typescript-eslint": "^8.67.0",
232
233
  "vite": "^7.3.6",
233
234
  "vitepress": "^1.6.4",
234
- "vue": "^3.5.40",
235
+ "vue": "^3.5.41",
235
236
  "vue-eslint-parser": "^10.4.1",
236
- "vue-tsc": "^3.3.7",
237
+ "vue-tsc": "^3.3.9",
237
238
  "wasm-pack": "^0.15.0",
238
239
  "yargs-parser": "^21.1.1"
239
240
  },
240
241
  "overrides": {
241
- "axios": "^1.18.1",
242
+ "axios": "^1.19.0",
242
243
  "esbuild": ">0.24.2",
243
244
  "lodash-es": ">4.17.22",
244
245
  "path-scurry": {
@@ -255,6 +256,7 @@
255
256
  "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges",
256
257
  "@emnapi/core": "If missing this fails npm install for Linux ARM",
257
258
  "@emnapi/runtime": "If missing this fails npm install for Linux ARM",
259
+ "@napi-rs/lzma-linux-x64-gnu": "If missing, napi build --use-napi-cross silently skips the cross toolchain and links against the host glibc (#6461)",
258
260
  "react": "If missing this fails npm install for Linux ARM",
259
261
  "react-dom": "If missing this fails npm install for Linux ARM"
260
262
  },