rollup 4.62.4 → 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.4
5
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4\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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4";
30
+ var version = "4.62.5";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -6691,6 +6691,7 @@ class ExportDefaultDeclaration extends NodeBase {
6691
6691
  render(code, options, nodeRenderOptions) {
6692
6692
  const { start, end } = nodeRenderOptions;
6693
6693
  const declarationStart = getDeclarationStart(code.original, this.start);
6694
+ let needsTrailingSemicolon = false;
6694
6695
  if (this.declaration instanceof FunctionDeclaration) {
6695
6696
  this.renderNamedDeclaration(code, declarationStart, this.declaration.id === null
6696
6697
  ? getFunctionIdInsertPosition(code.original, declarationStart)
@@ -6707,7 +6708,7 @@ class ExportDefaultDeclaration extends NodeBase {
6707
6708
  return;
6708
6709
  }
6709
6710
  else if (this.variable.included) {
6710
- this.renderVariableDeclaration(code, declarationStart, options);
6711
+ needsTrailingSemicolon = this.renderVariableDeclaration(code, declarationStart, options);
6711
6712
  }
6712
6713
  else {
6713
6714
  code.remove(this.start, declarationStart);
@@ -6720,6 +6721,12 @@ class ExportDefaultDeclaration extends NodeBase {
6720
6721
  return;
6721
6722
  }
6722
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
+ }
6723
6730
  }
6724
6731
  renderNamedDeclaration(code, declarationStart, idInsertPosition, options) {
6725
6732
  const { exportNamesByVariable, format, snippets: { getPropertyAccess } } = options;
@@ -6735,19 +6742,18 @@ class ExportDefaultDeclaration extends NodeBase {
6735
6742
  code.appendLeft(this.end, ` ${getSystemExportStatement([this.variable], options)};`);
6736
6743
  }
6737
6744
  }
6745
+ // Returns whether a semicolon still needs to be appended after the declaration
6746
+ // was rendered.
6738
6747
  renderVariableDeclaration(code, declarationStart, { format, exportNamesByVariable, snippets: { cnst, getPropertyAccess } }) {
6739
6748
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59; /*";"*/
6740
6749
  const systemExportNames = format === 'system' && exportNamesByVariable.get(this.variable);
6741
6750
  if (systemExportNames) {
6742
6751
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
6743
6752
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ')' + (hasTrailingSemicolon ? '' : ';'));
6753
+ return false;
6744
6754
  }
6745
- else {
6746
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
6747
- if (!hasTrailingSemicolon) {
6748
- code.appendLeft(this.end, ';');
6749
- }
6750
- }
6755
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
6756
+ return !hasTrailingSemicolon;
6751
6757
  }
6752
6758
  }
6753
6759
  ExportDefaultDeclaration.prototype.needsBoundaries = true;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4";
45
+ var version = "4.62.5";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -10830,6 +10830,7 @@ class ExportDefaultDeclaration extends NodeBase {
10830
10830
  render(code, options, nodeRenderOptions) {
10831
10831
  const { start, end } = nodeRenderOptions;
10832
10832
  const declarationStart = getDeclarationStart(code.original, this.start);
10833
+ let needsTrailingSemicolon = false;
10833
10834
  if (this.declaration instanceof FunctionDeclaration) {
10834
10835
  this.renderNamedDeclaration(code, declarationStart, this.declaration.id === null
10835
10836
  ? getFunctionIdInsertPosition(code.original, declarationStart)
@@ -10846,7 +10847,7 @@ class ExportDefaultDeclaration extends NodeBase {
10846
10847
  return;
10847
10848
  }
10848
10849
  else if (this.variable.included) {
10849
- this.renderVariableDeclaration(code, declarationStart, options);
10850
+ needsTrailingSemicolon = this.renderVariableDeclaration(code, declarationStart, options);
10850
10851
  }
10851
10852
  else {
10852
10853
  code.remove(this.start, declarationStart);
@@ -10859,6 +10860,12 @@ class ExportDefaultDeclaration extends NodeBase {
10859
10860
  return;
10860
10861
  }
10861
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
+ }
10862
10869
  }
10863
10870
  renderNamedDeclaration(code, declarationStart, idInsertPosition, options) {
10864
10871
  const { exportNamesByVariable, format, snippets: { getPropertyAccess } } = options;
@@ -10874,19 +10881,18 @@ class ExportDefaultDeclaration extends NodeBase {
10874
10881
  code.appendLeft(this.end, ` ${getSystemExportStatement([this.variable], options)};`);
10875
10882
  }
10876
10883
  }
10884
+ // Returns whether a semicolon still needs to be appended after the declaration
10885
+ // was rendered.
10877
10886
  renderVariableDeclaration(code, declarationStart, { format, exportNamesByVariable, snippets: { cnst, getPropertyAccess } }) {
10878
10887
  const hasTrailingSemicolon = code.original.charCodeAt(this.end - 1) === 59; /*";"*/
10879
10888
  const systemExportNames = format === 'system' && exportNamesByVariable.get(this.variable);
10880
10889
  if (systemExportNames) {
10881
10890
  code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = exports(${JSON.stringify(systemExportNames[0])}, `);
10882
10891
  code.appendRight(hasTrailingSemicolon ? this.end - 1 : this.end, ')' + (hasTrailingSemicolon ? '' : ';'));
10892
+ return false;
10883
10893
  }
10884
- else {
10885
- code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
10886
- if (!hasTrailingSemicolon) {
10887
- code.appendLeft(this.end, ';');
10888
- }
10889
- }
10894
+ code.overwrite(this.start, declarationStart, `${cnst} ${this.variable.getName(getPropertyAccess)} = `);
10895
+ return !hasTrailingSemicolon;
10890
10896
  }
10891
10897
  }
10892
10898
  ExportDefaultDeclaration.prototype.needsBoundaries = true;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.62.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4
4
- Sat, 01 Aug 2026 05:20:25 GMT - commit ddc4ffab628944e45dbb8d66d58aae818015440f
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.4",
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",
@@ -115,31 +115,31 @@
115
115
  "optionalDependencies": {
116
116
  "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
117
117
  "fsevents": "~2.3.2",
118
- "@rollup/rollup-darwin-arm64": "4.62.4",
119
- "@rollup/rollup-android-arm64": "4.62.4",
120
- "@rollup/rollup-win32-arm64-msvc": "4.62.4",
121
- "@rollup/rollup-freebsd-arm64": "4.62.4",
122
- "@rollup/rollup-linux-arm64-gnu": "4.62.4",
123
- "@rollup/rollup-linux-arm64-musl": "4.62.4",
124
- "@rollup/rollup-android-arm-eabi": "4.62.4",
125
- "@rollup/rollup-linux-arm-gnueabihf": "4.62.4",
126
- "@rollup/rollup-linux-arm-musleabihf": "4.62.4",
127
- "@rollup/rollup-win32-ia32-msvc": "4.62.4",
128
- "@rollup/rollup-linux-loong64-gnu": "4.62.4",
129
- "@rollup/rollup-linux-loong64-musl": "4.62.4",
130
- "@rollup/rollup-linux-riscv64-gnu": "4.62.4",
131
- "@rollup/rollup-linux-riscv64-musl": "4.62.4",
132
- "@rollup/rollup-linux-ppc64-gnu": "4.62.4",
133
- "@rollup/rollup-linux-ppc64-musl": "4.62.4",
134
- "@rollup/rollup-linux-s390x-gnu": "4.62.4",
135
- "@rollup/rollup-darwin-x64": "4.62.4",
136
- "@rollup/rollup-win32-x64-gnu": "4.62.4",
137
- "@rollup/rollup-win32-x64-msvc": "4.62.4",
138
- "@rollup/rollup-freebsd-x64": "4.62.4",
139
- "@rollup/rollup-linux-x64-gnu": "4.62.4",
140
- "@rollup/rollup-linux-x64-musl": "4.62.4",
141
- "@rollup/rollup-openbsd-x64": "4.62.4",
142
- "@rollup/rollup-openharmony-arm64": "4.62.4"
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"
143
143
  },
144
144
  "dependencies": {
145
145
  "@types/estree": "1.0.9"
@@ -153,7 +153,7 @@
153
153
  "@codemirror/language": "^6.12.4",
154
154
  "@codemirror/search": "^6.7.1",
155
155
  "@codemirror/state": "^6.7.1",
156
- "@codemirror/view": "^6.43.7",
156
+ "@codemirror/view": "^6.43.8",
157
157
  "@emnapi/core": "^1.11.3",
158
158
  "@emnapi/runtime": "^1.11.3",
159
159
  "@eslint/js": "^10.0.1",
@@ -170,14 +170,14 @@
170
170
  "@rollup/plugin-terser": "^0.4.4",
171
171
  "@rollup/plugin-typescript": "^12.3.0",
172
172
  "@rollup/pluginutils": "^5.4.0",
173
- "@shikijs/vitepress-twoslash": "^4.3.1",
173
+ "@shikijs/vitepress-twoslash": "^4.4.3",
174
174
  "@types/mocha": "^10.0.10",
175
175
  "@types/node": "^20.19.43",
176
176
  "@types/picomatch": "^4.0.3",
177
- "@types/semver": "^7.7.1",
177
+ "@types/semver": "^7.8.0",
178
178
  "@types/yargs-parser": "^21.0.3",
179
- "@vue/language-server": "^3.3.8",
180
- "acorn": "^8.17.0",
179
+ "@vue/language-server": "^3.3.9",
180
+ "acorn": "^8.18.0",
181
181
  "acorn-import-assertions": "^1.9.0",
182
182
  "acorn-import-phases": "^1.0.4",
183
183
  "acorn-jsx": "^5.3.2",
@@ -189,23 +189,23 @@
189
189
  "date-time": "^4.0.0",
190
190
  "es5-shim": "^4.6.7",
191
191
  "es6-shim": "^0.35.8",
192
- "eslint": "^10.8.0",
192
+ "eslint": "^10.8.1",
193
193
  "eslint-config-prettier": "^10.1.8",
194
194
  "eslint-plugin-prettier": "^5.5.6",
195
- "eslint-plugin-unicorn": "^72.0.0",
195
+ "eslint-plugin-unicorn": "^73.0.0",
196
196
  "eslint-plugin-vue": "^10.10.0",
197
197
  "fixturify": "^3.0.0",
198
198
  "flru": "^1.0.2",
199
199
  "fs-extra": "^11.4.0",
200
200
  "github-api": "^3.4.0",
201
- "globals": "^17.8.0",
201
+ "globals": "^17.9.0",
202
202
  "husky": "^9.1.7",
203
203
  "is-reference": "^3.0.3",
204
- "lint-staged": "^17.2.0",
204
+ "lint-staged": "^17.3.0",
205
205
  "locate-character": "^3.0.0",
206
206
  "magic-string": "^1.1.0",
207
- "memfs": "^4.64.0",
208
- "mocha": "11.7.6",
207
+ "memfs": "^4.68.1",
208
+ "mocha": "11.8.0",
209
209
  "nodemon": "^3.1.14",
210
210
  "npm-audit-resolver": "^3.0.0-RC.0",
211
211
  "nyc": "^18.0.0",
@@ -218,7 +218,7 @@
218
218
  "pretty-bytes": "^7.1.1",
219
219
  "pretty-ms": "^9.3.0",
220
220
  "requirejs": "^2.3.8",
221
- "rollup": "^4.62.3",
221
+ "rollup": "^4.62.4",
222
222
  "rollup-plugin-license": "^3.7.1",
223
223
  "semver": "^7.8.5",
224
224
  "shx": "^0.4.0",
@@ -226,20 +226,20 @@
226
226
  "source-map": "^0.8.0",
227
227
  "source-map-support": "^0.5.21",
228
228
  "systemjs": "^6.15.1",
229
- "terser": "^5.49.0",
229
+ "terser": "^5.49.2",
230
230
  "tslib": "^2.8.1",
231
231
  "typescript": "^5.9.3",
232
- "typescript-eslint": "^8.65.0",
232
+ "typescript-eslint": "^8.67.0",
233
233
  "vite": "^7.3.6",
234
234
  "vitepress": "^1.6.4",
235
- "vue": "^3.5.40",
235
+ "vue": "^3.5.41",
236
236
  "vue-eslint-parser": "^10.4.1",
237
- "vue-tsc": "^3.3.8",
237
+ "vue-tsc": "^3.3.9",
238
238
  "wasm-pack": "^0.15.0",
239
239
  "yargs-parser": "^21.1.1"
240
240
  },
241
241
  "overrides": {
242
- "axios": "^1.18.1",
242
+ "axios": "^1.19.0",
243
243
  "esbuild": ">0.24.2",
244
244
  "lodash-es": ">4.17.22",
245
245
  "path-scurry": {