rollup 4.63.5 → 4.63.6

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.63.5
5
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
4
+ Rollup.js v4.63.6
5
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.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";
30
+ const help = "rollup version 4.63.6\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.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5";
30
+ var version = "4.63.6";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -317,7 +317,7 @@ var Chunk$1 = class Chunk {
317
317
  this.outro = "";
318
318
  this.end = index;
319
319
  if (this.edited) {
320
- newChunk.edit("", false);
320
+ newChunk.edit("", false, true);
321
321
  this.content = "";
322
322
  } else this.content = originalBefore;
323
323
  newChunk.next = this.next;
@@ -1295,7 +1295,7 @@ var MagicString = class MagicString {
1295
1295
  * Content appended or prepended at positions strictly inside the range is removed with it, while
1296
1296
  * content attached at `start` or `end` is preserved — use `s.overwrite(start, end, '')` to remove
1297
1297
  * the range including its edge inserts.
1298
- * Removing the same content twice, or making removals that partially overlap, will cause an error.
1298
+ * Repeated removals and removals with partially overlapping ranges are allowed.
1299
1299
  */
1300
1300
  remove(start, end) {
1301
1301
  start = start + this.offset;
@@ -1577,10 +1577,16 @@ var MagicString = class MagicString {
1577
1577
  * @internal
1578
1578
  */
1579
1579
  _hasRemovedContent(start, end) {
1580
- let chunk = this.firstChunk;
1581
- while (chunk) {
1582
- if (chunk.content === "" && chunk.start < end && chunk.end > start) return true;
1583
- chunk = chunk.next;
1580
+ let chunk = this.byStart.get(start);
1581
+ if (!chunk) {
1582
+ chunk = this.lastSearchedChunk;
1583
+ const searchForward = start >= chunk.end;
1584
+ while (chunk && !chunk.contains(start)) chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
1585
+ if (chunk) this.lastSearchedChunk = chunk;
1586
+ }
1587
+ while (chunk && chunk.start < end) {
1588
+ if (chunk.content === "") return true;
1589
+ chunk = this.byStart.get(chunk.end);
1584
1590
  }
1585
1591
  return false;
1586
1592
  }
@@ -1644,6 +1650,7 @@ var MagicString = class MagicString {
1644
1650
  const stringLength = string.length;
1645
1651
  if (stringLength === 0) {
1646
1652
  for (let index = 0; index <= original.length; index += 1) {
1653
+ if (this._hasRemovedContent(index, index)) continue;
1647
1654
  const _replacement = typeof replacement === "function" ? replacement("", index, original) : expandReplacement(replacement, "", index, original, [], void 0);
1648
1655
  if (_replacement !== "") this.appendRight(index, _replacement);
1649
1656
  }
@@ -7512,9 +7519,9 @@ class Literal extends NodeBase {
7512
7519
  this.regex = esTreeNode.regex;
7513
7520
  return super.parseNode(esTreeNode);
7514
7521
  }
7515
- render(code) {
7522
+ render() {
7516
7523
  if (typeof this.value === 'string') {
7517
- code.indentExclusionRanges.push([this.start + 1, this.end - 1]);
7524
+ this.scope.context.addIndentExclusionRange([this.start + 1, this.end - 1]);
7518
7525
  }
7519
7526
  }
7520
7527
  }
@@ -15657,7 +15664,7 @@ class TemplateLiteral extends NodeBase {
15657
15664
  }
15658
15665
  }
15659
15666
  render(code, options) {
15660
- code.indentExclusionRanges.push([this.start, this.end]);
15667
+ this.scope.context.addIndentExclusionRange([this.start, this.end]);
15661
15668
  super.render(code, options);
15662
15669
  }
15663
15670
  }
@@ -17558,6 +17565,7 @@ class Module {
17558
17565
  this.exportedVariablesByName = null;
17559
17566
  this.exportNamesByVariable = null;
17560
17567
  this.exportShimVariable = new ExportShimVariable(this);
17568
+ this.indentExclusionRanges = [];
17561
17569
  this.namespaceReexportsByName = new Map();
17562
17570
  this.reexportDescriptions = new Map();
17563
17571
  this.relevantDependencies = null;
@@ -17963,6 +17971,7 @@ class Module {
17963
17971
  this.options.onLog(level, properties);
17964
17972
  }
17965
17973
  render(options) {
17974
+ this.indentExclusionRanges = [];
17966
17975
  const source = this.magicString.clone();
17967
17976
  this.ast.render(source, options);
17968
17977
  source.trim();
@@ -17970,7 +17979,7 @@ class Module {
17970
17979
  if (usesTopLevelAwait && options.format !== 'es' && options.format !== 'system') {
17971
17980
  return error(logInvalidFormatForTopLevelAwait(this.id, options.format));
17972
17981
  }
17973
- return { source, usesTopLevelAwait };
17982
+ return { indentExclusionRanges: this.indentExclusionRanges, source, usesTopLevelAwait };
17974
17983
  }
17975
17984
  async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, safeVariableNames, ...moduleOptions }) {
17976
17985
  timeStart('generate ast', 3);
@@ -17999,8 +18008,7 @@ class Module {
17999
18008
  // can change that, but it makes sense to use it for the source file name
18000
18009
  const fileName = this.id;
18001
18010
  this.magicString = new MagicString(code, {
18002
- filename: (this.excludeFromSourcemap ? null : fileName), // don't include plugin helpers in sourcemap
18003
- indentExclusionRanges: []
18011
+ filename: (this.excludeFromSourcemap ? null : fileName) // don't include plugin helpers in sourcemap
18004
18012
  });
18005
18013
  this.astContext = {
18006
18014
  addDynamicImport: this.addDynamicImport.bind(this),
@@ -18008,6 +18016,7 @@ class Module {
18008
18016
  addImport: this.addImport.bind(this),
18009
18017
  addImportMeta: this.addImportMeta.bind(this),
18010
18018
  addImportSource: this.addImportSource.bind(this),
18019
+ addIndentExclusionRange: (range) => this.indentExclusionRanges.push(range),
18011
18020
  code, // Only needed for debugging
18012
18021
  deoptimizationTracker: this.graph.deoptimizationTracker,
18013
18022
  error: this.error.bind(this),
@@ -19416,6 +19425,9 @@ class Chunk {
19416
19425
  }
19417
19426
  }
19418
19427
  }
19428
+ else if (exportingModule instanceof ExternalModule && importedVariable.included) {
19429
+ includedReexports.push(importedVariable);
19430
+ }
19419
19431
  }
19420
19432
  }
19421
19433
  if (includedReexports.length > 0) {
@@ -19846,7 +19858,10 @@ class Chunk {
19846
19858
  if (renderedLength) {
19847
19859
  if (compact && source.lastLine().includes('//'))
19848
19860
  source.append('\n');
19849
- magicString.addSource(source);
19861
+ magicString.addSource({
19862
+ content: source,
19863
+ indentExclusionRanges: rendered.indentExclusionRanges
19864
+ });
19850
19865
  usedModules.push(module);
19851
19866
  }
19852
19867
  const namespace = module.namespace;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5";
45
+ var version = "4.63.6";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -4507,7 +4507,7 @@ var Chunk$1 = class Chunk {
4507
4507
  this.outro = "";
4508
4508
  this.end = index;
4509
4509
  if (this.edited) {
4510
- newChunk.edit("", false);
4510
+ newChunk.edit("", false, true);
4511
4511
  this.content = "";
4512
4512
  } else this.content = originalBefore;
4513
4513
  newChunk.next = this.next;
@@ -5485,7 +5485,7 @@ var MagicString = class MagicString {
5485
5485
  * Content appended or prepended at positions strictly inside the range is removed with it, while
5486
5486
  * content attached at `start` or `end` is preserved — use `s.overwrite(start, end, '')` to remove
5487
5487
  * the range including its edge inserts.
5488
- * Removing the same content twice, or making removals that partially overlap, will cause an error.
5488
+ * Repeated removals and removals with partially overlapping ranges are allowed.
5489
5489
  */
5490
5490
  remove(start, end) {
5491
5491
  start = start + this.offset;
@@ -5767,10 +5767,16 @@ var MagicString = class MagicString {
5767
5767
  * @internal
5768
5768
  */
5769
5769
  _hasRemovedContent(start, end) {
5770
- let chunk = this.firstChunk;
5771
- while (chunk) {
5772
- if (chunk.content === "" && chunk.start < end && chunk.end > start) return true;
5773
- chunk = chunk.next;
5770
+ let chunk = this.byStart.get(start);
5771
+ if (!chunk) {
5772
+ chunk = this.lastSearchedChunk;
5773
+ const searchForward = start >= chunk.end;
5774
+ while (chunk && !chunk.contains(start)) chunk = searchForward ? this.byStart.get(chunk.end) : this.byEnd.get(chunk.start);
5775
+ if (chunk) this.lastSearchedChunk = chunk;
5776
+ }
5777
+ while (chunk && chunk.start < end) {
5778
+ if (chunk.content === "") return true;
5779
+ chunk = this.byStart.get(chunk.end);
5774
5780
  }
5775
5781
  return false;
5776
5782
  }
@@ -5834,6 +5840,7 @@ var MagicString = class MagicString {
5834
5840
  const stringLength = string.length;
5835
5841
  if (stringLength === 0) {
5836
5842
  for (let index = 0; index <= original.length; index += 1) {
5843
+ if (this._hasRemovedContent(index, index)) continue;
5837
5844
  const _replacement = typeof replacement === "function" ? replacement("", index, original) : expandReplacement(replacement, "", index, original, [], void 0);
5838
5845
  if (_replacement !== "") this.appendRight(index, _replacement);
5839
5846
  }
@@ -11672,9 +11679,9 @@ class Literal extends NodeBase {
11672
11679
  this.regex = esTreeNode.regex;
11673
11680
  return super.parseNode(esTreeNode);
11674
11681
  }
11675
- render(code) {
11682
+ render() {
11676
11683
  if (typeof this.value === 'string') {
11677
- code.indentExclusionRanges.push([this.start + 1, this.end - 1]);
11684
+ this.scope.context.addIndentExclusionRange([this.start + 1, this.end - 1]);
11678
11685
  }
11679
11686
  }
11680
11687
  }
@@ -17274,7 +17281,7 @@ class TemplateLiteral extends NodeBase {
17274
17281
  }
17275
17282
  }
17276
17283
  render(code, options) {
17277
- code.indentExclusionRanges.push([this.start, this.end]);
17284
+ this.scope.context.addIndentExclusionRange([this.start, this.end]);
17278
17285
  super.render(code, options);
17279
17286
  }
17280
17287
  }
@@ -19168,6 +19175,7 @@ class Module {
19168
19175
  this.exportedVariablesByName = null;
19169
19176
  this.exportNamesByVariable = null;
19170
19177
  this.exportShimVariable = new ExportShimVariable(this);
19178
+ this.indentExclusionRanges = [];
19171
19179
  this.namespaceReexportsByName = new Map();
19172
19180
  this.reexportDescriptions = new Map();
19173
19181
  this.relevantDependencies = null;
@@ -19573,6 +19581,7 @@ class Module {
19573
19581
  this.options.onLog(level, properties);
19574
19582
  }
19575
19583
  render(options) {
19584
+ this.indentExclusionRanges = [];
19576
19585
  const source = this.magicString.clone();
19577
19586
  this.ast.render(source, options);
19578
19587
  source.trim();
@@ -19580,7 +19589,7 @@ class Module {
19580
19589
  if (usesTopLevelAwait && options.format !== 'es' && options.format !== 'system') {
19581
19590
  return parseAst_js.error(parseAst_js.logInvalidFormatForTopLevelAwait(this.id, options.format));
19582
19591
  }
19583
- return { source, usesTopLevelAwait };
19592
+ return { indentExclusionRanges: this.indentExclusionRanges, source, usesTopLevelAwait };
19584
19593
  }
19585
19594
  async setSource({ ast, code, customTransformCache, originalCode, originalSourcemap, resolvedIds, sourcemapChain, transformDependencies, transformFiles, safeVariableNames, ...moduleOptions }) {
19586
19595
  timeStart('generate ast', 3);
@@ -19609,8 +19618,7 @@ class Module {
19609
19618
  // can change that, but it makes sense to use it for the source file name
19610
19619
  const fileName = this.id;
19611
19620
  this.magicString = new MagicString(code, {
19612
- filename: (this.excludeFromSourcemap ? null : fileName), // don't include plugin helpers in sourcemap
19613
- indentExclusionRanges: []
19621
+ filename: (this.excludeFromSourcemap ? null : fileName) // don't include plugin helpers in sourcemap
19614
19622
  });
19615
19623
  this.astContext = {
19616
19624
  addDynamicImport: this.addDynamicImport.bind(this),
@@ -19618,6 +19626,7 @@ class Module {
19618
19626
  addImport: this.addImport.bind(this),
19619
19627
  addImportMeta: this.addImportMeta.bind(this),
19620
19628
  addImportSource: this.addImportSource.bind(this),
19629
+ addIndentExclusionRange: (range) => this.indentExclusionRanges.push(range),
19621
19630
  code, // Only needed for debugging
19622
19631
  deoptimizationTracker: this.graph.deoptimizationTracker,
19623
19632
  error: this.error.bind(this),
@@ -20912,6 +20921,9 @@ class Chunk {
20912
20921
  }
20913
20922
  }
20914
20923
  }
20924
+ else if (exportingModule instanceof ExternalModule && importedVariable.included) {
20925
+ includedReexports.push(importedVariable);
20926
+ }
20915
20927
  }
20916
20928
  }
20917
20929
  if (includedReexports.length > 0) {
@@ -21342,7 +21354,10 @@ class Chunk {
21342
21354
  if (renderedLength) {
21343
21355
  if (compact && source.lastLine().includes('//'))
21344
21356
  source.append('\n');
21345
- magicString.addSource(source);
21357
+ magicString.addSource({
21358
+ content: source,
21359
+ indentExclusionRanges: rendered.indentExclusionRanges
21360
+ });
21346
21361
  usedModules.push(module);
21347
21362
  }
21348
21363
  const namespace = module.namespace;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.5
4
- Thu, 24 Sep 2026 10:07:23 GMT - commit 3722484c33c58b3ab0cbbfcca09b8f267d420329
3
+ Rollup.js v4.63.6
4
+ Thu, 01 Oct 2026 06:50:26 GMT - commit 966ac85d64887ed38abd4eef67c3813633cbc2f6
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.63.5",
3
+ "version": "4.63.6",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -117,31 +117,31 @@
117
117
  "optionalDependencies": {
118
118
  "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
119
119
  "fsevents": "~2.3.2",
120
- "@rollup/rollup-darwin-arm64": "4.63.5",
121
- "@rollup/rollup-android-arm64": "4.63.5",
122
- "@rollup/rollup-win32-arm64-msvc": "4.63.5",
123
- "@rollup/rollup-freebsd-arm64": "4.63.5",
124
- "@rollup/rollup-linux-arm64-gnu": "4.63.5",
125
- "@rollup/rollup-linux-arm64-musl": "4.63.5",
126
- "@rollup/rollup-android-arm-eabi": "4.63.5",
127
- "@rollup/rollup-linux-arm-gnueabihf": "4.63.5",
128
- "@rollup/rollup-linux-arm-musleabihf": "4.63.5",
129
- "@rollup/rollup-win32-ia32-msvc": "4.63.5",
130
- "@rollup/rollup-linux-loong64-gnu": "4.63.5",
131
- "@rollup/rollup-linux-loong64-musl": "4.63.5",
132
- "@rollup/rollup-linux-riscv64-gnu": "4.63.5",
133
- "@rollup/rollup-linux-riscv64-musl": "4.63.5",
134
- "@rollup/rollup-linux-ppc64-gnu": "4.63.5",
135
- "@rollup/rollup-linux-ppc64-musl": "4.63.5",
136
- "@rollup/rollup-linux-s390x-gnu": "4.63.5",
137
- "@rollup/rollup-darwin-x64": "4.63.5",
138
- "@rollup/rollup-win32-x64-gnu": "4.63.5",
139
- "@rollup/rollup-win32-x64-msvc": "4.63.5",
140
- "@rollup/rollup-freebsd-x64": "4.63.5",
141
- "@rollup/rollup-linux-x64-gnu": "4.63.5",
142
- "@rollup/rollup-linux-x64-musl": "4.63.5",
143
- "@rollup/rollup-openbsd-x64": "4.63.5",
144
- "@rollup/rollup-openharmony-arm64": "4.63.5"
120
+ "@rollup/rollup-darwin-arm64": "4.63.6",
121
+ "@rollup/rollup-android-arm64": "4.63.6",
122
+ "@rollup/rollup-win32-arm64-msvc": "4.63.6",
123
+ "@rollup/rollup-freebsd-arm64": "4.63.6",
124
+ "@rollup/rollup-linux-arm64-gnu": "4.63.6",
125
+ "@rollup/rollup-linux-arm64-musl": "4.63.6",
126
+ "@rollup/rollup-android-arm-eabi": "4.63.6",
127
+ "@rollup/rollup-linux-arm-gnueabihf": "4.63.6",
128
+ "@rollup/rollup-linux-arm-musleabihf": "4.63.6",
129
+ "@rollup/rollup-win32-ia32-msvc": "4.63.6",
130
+ "@rollup/rollup-linux-loong64-gnu": "4.63.6",
131
+ "@rollup/rollup-linux-loong64-musl": "4.63.6",
132
+ "@rollup/rollup-linux-riscv64-gnu": "4.63.6",
133
+ "@rollup/rollup-linux-riscv64-musl": "4.63.6",
134
+ "@rollup/rollup-linux-ppc64-gnu": "4.63.6",
135
+ "@rollup/rollup-linux-ppc64-musl": "4.63.6",
136
+ "@rollup/rollup-linux-s390x-gnu": "4.63.6",
137
+ "@rollup/rollup-darwin-x64": "4.63.6",
138
+ "@rollup/rollup-win32-x64-gnu": "4.63.6",
139
+ "@rollup/rollup-win32-x64-msvc": "4.63.6",
140
+ "@rollup/rollup-freebsd-x64": "4.63.6",
141
+ "@rollup/rollup-linux-x64-gnu": "4.63.6",
142
+ "@rollup/rollup-linux-x64-musl": "4.63.6",
143
+ "@rollup/rollup-openbsd-x64": "4.63.6",
144
+ "@rollup/rollup-openharmony-arm64": "4.63.6"
145
145
  },
146
146
  "dependencies": {
147
147
  "@types/estree": "1.0.9"
@@ -150,12 +150,12 @@
150
150
  "core-js": "We only update manually as every update requires a snapshot update"
151
151
  },
152
152
  "devDependencies": {
153
- "@codemirror/commands": "^6.11.0",
153
+ "@codemirror/commands": "^6.11.1",
154
154
  "@codemirror/lang-javascript": "^6.2.5",
155
155
  "@codemirror/language": "^6.12.4",
156
156
  "@codemirror/search": "^6.7.2",
157
- "@codemirror/state": "^6.7.4",
158
- "@codemirror/view": "^6.43.11",
157
+ "@codemirror/state": "^6.7.5",
158
+ "@codemirror/view": "^6.43.12",
159
159
  "@emnapi/core": "^1.11.3",
160
160
  "@emnapi/runtime": "^1.11.3",
161
161
  "@eslint/js": "^10.0.1",
@@ -184,17 +184,17 @@
184
184
  "acorn-import-phases": "^1.0.4",
185
185
  "acorn-jsx": "^5.3.2",
186
186
  "buble": "^0.20.0",
187
- "builtin-modules": "^5.3.0",
187
+ "builtin-modules": "^5.4.0",
188
188
  "chokidar": "^3.6.0",
189
189
  "concurrently": "^9.2.4",
190
190
  "core-js": "3.38.1",
191
191
  "date-time": "^4.0.0",
192
192
  "es5-shim": "^4.6.7",
193
193
  "es6-shim": "^0.35.8",
194
- "eslint": "^10.10.0",
194
+ "eslint": "^10.11.0",
195
195
  "eslint-config-prettier": "^10.1.8",
196
196
  "eslint-plugin-prettier": "^5.5.6",
197
- "eslint-plugin-unicorn": "^74.0.0",
197
+ "eslint-plugin-unicorn": "^76.0.0",
198
198
  "eslint-plugin-vue": "^10.11.0",
199
199
  "fixturify": "^3.0.0",
200
200
  "flru": "^1.0.2",
@@ -206,7 +206,7 @@
206
206
  "lint-staged": "^17.5.1",
207
207
  "locate-character": "^3.0.0",
208
208
  "magic-string": "^1.4.1",
209
- "memfs": "^4.78.0",
209
+ "memfs": "^4.78.1",
210
210
  "mocha": "^11.8.0",
211
211
  "nodemon": "^3.1.14",
212
212
  "npm-audit-resolver": "^3.0.0-RC.0",
@@ -215,12 +215,12 @@
215
215
  "picocolors": "^1.1.1",
216
216
  "picomatch": "^4.0.7",
217
217
  "pinia": "^4.0.3",
218
- "prettier": "^3.9.6",
218
+ "prettier": "^3.9.8",
219
219
  "prettier-plugin-organize-imports": "^4.3.0",
220
220
  "pretty-bytes": "^7.1.3",
221
221
  "pretty-ms": "^9.3.1",
222
222
  "requirejs": "^2.3.8",
223
- "rollup": "^4.63.3",
223
+ "rollup": "^4.63.4",
224
224
  "rollup-plugin-license": "^3.7.1",
225
225
  "semver": "^7.8.5",
226
226
  "shx": "^0.4.0",
@@ -231,10 +231,10 @@
231
231
  "terser": "^5.51.2",
232
232
  "tslib": "^2.8.1",
233
233
  "typescript": "^5.9.3",
234
- "typescript-eslint": "^8.70.0",
234
+ "typescript-eslint": "^8.70.1",
235
235
  "vite": "^7.3.6",
236
236
  "vitepress": "^1.6.4",
237
- "vue": "^3.5.42",
237
+ "vue": "^3.5.43",
238
238
  "vue-eslint-parser": "^10.4.1",
239
239
  "vue-tsc": "^3.3.11",
240
240
  "wasm-pack": "^0.15.0",