@rollup/wasm-node 4.63.1 → 4.63.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/rollup CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.63.1
5
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
4
+ Rollup.js v4.63.2
5
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1\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.2\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--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
@@ -1471,10 +1471,11 @@ function prettyMilliseconds(milliseconds, options) {
1471
1471
  const roundedMilliseconds = millisecondsAndBelow >= 1
1472
1472
  ? Math.round(millisecondsAndBelow)
1473
1473
  : Math.ceil(millisecondsAndBelow);
1474
+ const maximumMilliseconds = 1000 - (10 ** -millisecondsDecimalDigits);
1474
1475
 
1475
1476
  const millisecondsString = millisecondsDecimalDigits
1476
- ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits)
1477
- : roundedMilliseconds;
1477
+ ? Math.min(millisecondsAndBelow, maximumMilliseconds).toFixed(millisecondsDecimalDigits)
1478
+ : Math.min(roundedMilliseconds, maximumMilliseconds);
1478
1479
 
1479
1480
  add(
1480
1481
  Number.parseFloat(millisecondsString),
@@ -1562,16 +1563,18 @@ const BIBIT_UNITS = [
1562
1563
 
1563
1564
  /*
1564
1565
  Formats the given number using `Number#toLocaleString`.
1565
- - If locale is a string, the value is expected to be a locale-key (for example: `de`).
1566
+ - If locale is a string or array, the value is expected to be a BCP 47 language tag or list of language tags (for example: `de`).
1566
1567
  - If locale is true, the system default locale is used for translation.
1567
- - If no value for locale is specified, the number is returned unmodified.
1568
+ - If locale is false or unspecified, formatting options are applied without localization; without options, the number is returned unmodified.
1568
1569
  */
1569
1570
  const toLocaleString = (number, locale, options) => {
1570
1571
  let result = number;
1571
1572
  if (typeof locale === 'string' || Array.isArray(locale)) {
1572
1573
  result = number.toLocaleString(locale, options);
1573
- } else if (locale === true || options !== undefined) {
1574
+ } else if (locale === true) {
1574
1575
  result = number.toLocaleString(undefined, options);
1576
+ } else if (options !== undefined) {
1577
+ result = number.toLocaleString('en-US', {...options, useGrouping: false});
1575
1578
  }
1576
1579
 
1577
1580
  return result;
@@ -1669,17 +1672,23 @@ function prettyBytes(number, options) {
1669
1672
  }
1670
1673
 
1671
1674
  const localeOptions = buildLocaleOptions(options);
1675
+ const base = options.binary ? 1024 : 1000;
1672
1676
 
1673
1677
  let exponent = 0;
1674
1678
  if (number >= 1) {
1675
- exponent = Math.min(Math.floor(options.binary ? log(number) / Math.log(1024) : log10(number) / 3), UNITS.length - 1);
1679
+ exponent = Math.min(Math.floor(options.binary ? log(number) / Math.log(base) : log10(number) / 3), UNITS.length - 1);
1676
1680
  }
1677
1681
 
1678
- number = divide(number, (options.binary ? 1024 : 1000) ** exponent);
1682
+ number = divide(number, base ** exponent);
1679
1683
 
1680
1684
  if (!localeOptions) {
1681
- const minPrecision = Math.max(3, Math.floor(number).toString().length);
1682
- number = Number(number.toPrecision(minPrecision));
1685
+ const minimumPrecision = Math.max(3, Math.floor(number).toString().length);
1686
+ number = Number(number.toPrecision(minimumPrecision));
1687
+
1688
+ if (number >= base && exponent < UNITS.length - 1) {
1689
+ number /= base;
1690
+ exponent += 1;
1691
+ }
1683
1692
  }
1684
1693
 
1685
1694
  const numberString = toLocaleString(number, options.locale, localeOptions);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -33,7 +33,7 @@ const getLogFilter = filters => {
33
33
  const testFilter = (log, key, parts) => {
34
34
  let rawValue = log;
35
35
  for (let index = 0; index < key.length; index++) {
36
- if (!rawValue) {
36
+ if (rawValue === null || (typeof rawValue !== 'object' && typeof rawValue !== 'function')) {
37
37
  return false;
38
38
  }
39
39
  const part = key[index];
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1";
30
+ var version = "4.63.2";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -42,7 +42,7 @@ for (let i = 0; i < chars$1.length; i++) {
42
42
  intToChar[i] = c;
43
43
  charToInt[c] = i;
44
44
  }
45
- function decodeInteger(reader, relative) {
45
+ function decodeInteger(reader) {
46
46
  let value = 0;
47
47
  let shift = 0;
48
48
  let integer = 0;
@@ -52,23 +52,21 @@ function decodeInteger(reader, relative) {
52
52
  value |= (integer & 31) << shift;
53
53
  shift += 5;
54
54
  } while (integer & 32);
55
- const shouldNegate = value & 1;
56
- value >>>= 1;
57
- if (shouldNegate) {
58
- value = -2147483648 | -value;
59
- }
60
- return relative + value;
55
+ return value;
56
+ }
57
+ function decodeSign(num) {
58
+ return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
61
59
  }
62
- function encodeInteger(builder, num, relative) {
63
- let delta = num - relative;
64
- delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
60
+ function encodeInteger(builder, num) {
65
61
  do {
66
- let clamped = delta & 31;
67
- delta >>>= 5;
68
- if (delta > 0) clamped |= 32;
62
+ let clamped = num & 31;
63
+ num >>>= 5;
64
+ if (num > 0) clamped |= 32;
69
65
  builder.write(intToChar[clamped]);
70
- } while (delta > 0);
71
- return num;
66
+ } while (num > 0);
67
+ }
68
+ function encodeSign(num) {
69
+ return num < 0 ? -num << 1 | 1 : num << 1;
72
70
  }
73
71
  function hasMoreVlq(reader, max) {
74
72
  if (reader.pos >= max) return false;
@@ -146,15 +144,15 @@ function decode(mappings) {
146
144
  genColumn = 0;
147
145
  while (reader.pos < semi) {
148
146
  let seg;
149
- genColumn = decodeInteger(reader, genColumn);
147
+ genColumn += decodeSign(decodeInteger(reader));
150
148
  if (genColumn < lastCol) sorted = false;
151
149
  lastCol = genColumn;
152
150
  if (hasMoreVlq(reader, semi)) {
153
- sourcesIndex = decodeInteger(reader, sourcesIndex);
154
- sourceLine = decodeInteger(reader, sourceLine);
155
- sourceColumn = decodeInteger(reader, sourceColumn);
151
+ sourcesIndex += decodeSign(decodeInteger(reader));
152
+ sourceLine += decodeSign(decodeInteger(reader));
153
+ sourceColumn += decodeSign(decodeInteger(reader));
156
154
  if (hasMoreVlq(reader, semi)) {
157
- namesIndex = decodeInteger(reader, namesIndex);
155
+ namesIndex += decodeSign(decodeInteger(reader));
158
156
  seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
159
157
  } else {
160
158
  seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
@@ -191,13 +189,18 @@ function encode(decoded) {
191
189
  for (let j = 0; j < line.length; j++) {
192
190
  const segment = line[j];
193
191
  if (j > 0) writer.write(comma);
194
- genColumn = encodeInteger(writer, segment[0], genColumn);
192
+ encodeInteger(writer, encodeSign(segment[0] - genColumn));
193
+ genColumn = segment[0];
195
194
  if (segment.length === 1) continue;
196
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
197
- sourceLine = encodeInteger(writer, segment[2], sourceLine);
198
- sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
195
+ encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
196
+ encodeInteger(writer, encodeSign(segment[2] - sourceLine));
197
+ encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
198
+ sourcesIndex = segment[1];
199
+ sourceLine = segment[2];
200
+ sourceColumn = segment[3];
199
201
  if (segment.length === 4) continue;
200
- namesIndex = encodeInteger(writer, segment[4], namesIndex);
202
+ encodeInteger(writer, encodeSign(segment[4] - namesIndex));
203
+ namesIndex = segment[4];
201
204
  }
202
205
  }
203
206
  return writer.flush();
@@ -922,8 +925,8 @@ var MagicString = class MagicString {
922
925
  end = end + this.offset;
923
926
  if (typeof content !== "string") throw new MagicStringError(`content must be a string, got ${typeof content}`);
924
927
  if (this.original.length !== 0) {
925
- while (start < 0) start += this.original.length;
926
- while (end < 0) end += this.original.length;
928
+ if (start < 0) start = Math.max(0, start + this.original.length);
929
+ if (end < 0) end = Math.max(0, end + this.original.length);
927
930
  }
928
931
  if (start < 0) throw new MagicStringError(`start ${start} is out of bounds`);
929
932
  if (end > this.original.length) throw new MagicStringError(`end ${end} is out of bounds`);
@@ -1006,8 +1009,8 @@ var MagicString = class MagicString {
1006
1009
  start = start + this.offset;
1007
1010
  end = end + this.offset;
1008
1011
  if (this.original.length !== 0) {
1009
- while (start < 0) start += this.original.length;
1010
- while (end < 0) end += this.original.length;
1012
+ if (start < 0) start = Math.max(0, start + this.original.length);
1013
+ if (end < 0) end = Math.max(0, end + this.original.length);
1011
1014
  }
1012
1015
  if (start === end) return this;
1013
1016
  if (start < 0 || end > this.original.length) throw new MagicStringError(`range ${start}–${end} is out of bounds`);
@@ -1030,8 +1033,8 @@ var MagicString = class MagicString {
1030
1033
  start = start + this.offset;
1031
1034
  end = end + this.offset;
1032
1035
  if (this.original.length !== 0) {
1033
- while (start < 0) start += this.original.length;
1034
- while (end < 0) end += this.original.length;
1036
+ if (start < 0) start = Math.max(0, start + this.original.length);
1037
+ if (end < 0) end = Math.max(0, end + this.original.length);
1035
1038
  }
1036
1039
  if (start === end) return this;
1037
1040
  if (start < 0 || end > this.original.length) throw new MagicStringError(`range ${start}–${end} is out of bounds`);
@@ -1092,8 +1095,8 @@ var MagicString = class MagicString {
1092
1095
  start = start + this.offset;
1093
1096
  end = end + this.offset;
1094
1097
  if (this.original.length !== 0) {
1095
- while (start < 0) start += this.original.length;
1096
- while (end < 0) end += this.original.length;
1098
+ if (start < 0) start = Math.max(0, start + this.original.length);
1099
+ if (end < 0) end = Math.max(0, end + this.original.length);
1097
1100
  }
1098
1101
  let result = "";
1099
1102
  let chunk = this.firstChunk;
@@ -1279,27 +1282,19 @@ var MagicString = class MagicString {
1279
1282
  });
1280
1283
  else return replacement(match[0], ...match.slice(1), match.index, str, match.groups);
1281
1284
  }
1282
- function matchAll(re, str) {
1283
- const matches = [];
1284
- while (true) {
1285
- const match = re.exec(str);
1286
- if (!match) break;
1287
- matches.push(match);
1288
- }
1289
- return matches;
1290
- }
1291
- if (searchValue.global) matchAll(searchValue, this.original).forEach((match) => {
1292
- if (match.index != null) {
1293
- const replacement = getReplacement(match, this.original);
1294
- if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
1295
- }
1296
- });
1297
- else {
1285
+ const replaceMatch = (match) => {
1286
+ if (match.index == null) return;
1287
+ const replacement = getReplacement(match, this.original);
1288
+ if (replacement === match[0]) return;
1289
+ if (match[0].length === 0) this.appendRight(match.index, replacement);
1290
+ else this.overwrite(match.index, match.index + match[0].length, replacement);
1291
+ };
1292
+ if (searchValue.global) {
1293
+ searchValue.lastIndex = 0;
1294
+ for (const match of this.original.matchAll(searchValue)) replaceMatch(match);
1295
+ } else {
1298
1296
  const match = this.original.match(searchValue);
1299
- if (match && match.index != null) {
1300
- const replacement = getReplacement(match, this.original);
1301
- if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
1302
- }
1297
+ if (match) replaceMatch(match);
1303
1298
  }
1304
1299
  return this;
1305
1300
  }
@@ -1309,7 +1304,8 @@ var MagicString = class MagicString {
1309
1304
  const index = original.indexOf(string);
1310
1305
  if (index !== -1) {
1311
1306
  if (typeof replacement === "function") replacement = replacement(string, index, original);
1312
- if (string !== replacement) this.overwrite(index, index + string.length, replacement);
1307
+ if (string !== replacement) if (string.length === 0) this.appendRight(index, replacement);
1308
+ else this.overwrite(index, index + string.length, replacement);
1313
1309
  }
1314
1310
  return this;
1315
1311
  }
@@ -1324,6 +1320,13 @@ var MagicString = class MagicString {
1324
1320
  _replaceAllString(string, replacement) {
1325
1321
  const { original } = this;
1326
1322
  const stringLength = string.length;
1323
+ if (stringLength === 0) {
1324
+ for (let index = 0; index <= original.length; index += 1) {
1325
+ const _replacement = typeof replacement === "function" ? replacement("", index, original) : replacement;
1326
+ if (_replacement !== "") this.appendRight(index, _replacement);
1327
+ }
1328
+ return this;
1329
+ }
1327
1330
  for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
1328
1331
  const previous = original.slice(index, index + stringLength);
1329
1332
  const _replacement = typeof replacement === "function" ? replacement(previous, index, original) : replacement;
@@ -1468,7 +1471,7 @@ var Bundle$1 = class Bundle {
1468
1471
  indentStringCounts[indentStr] += 1;
1469
1472
  });
1470
1473
  return Object.keys(indentStringCounts).sort((a, b) => {
1471
- return indentStringCounts[a] - indentStringCounts[b];
1474
+ return indentStringCounts[b] - indentStringCounts[a];
1472
1475
  })[0] || " ";
1473
1476
  }
1474
1477
  indent(indentStr) {
@@ -1523,27 +1526,27 @@ var Bundle$1 = class Bundle {
1523
1526
  trimStart(charType) {
1524
1527
  const rx = new RegExp(`^${charType || "\\s"}+`);
1525
1528
  this.intro = this.intro.replace(rx, "");
1526
- if (!this.intro) {
1527
- let source;
1528
- let i = 0;
1529
- do {
1530
- source = this.sources[i++];
1531
- if (!source) break;
1532
- } while (!source.content.trimStartAborted(charType));
1529
+ if (!this.intro) for (let i = 0; i < this.sources.length; i += 1) {
1530
+ const source = this.sources[i];
1531
+ if (i > 0) {
1532
+ source.separator = (source.separator !== void 0 ? source.separator : this.separator).replace(rx, "");
1533
+ if (source.separator) break;
1534
+ }
1535
+ if (source.content.trimStartAborted(charType)) break;
1533
1536
  }
1534
1537
  return this;
1535
1538
  }
1536
1539
  trimEnd(charType) {
1537
1540
  const rx = new RegExp(`${charType || "\\s"}+$`);
1538
- let source;
1539
- let i = this.sources.length - 1;
1540
- do {
1541
- source = this.sources[i--];
1542
- if (!source) {
1543
- this.intro = this.intro.replace(rx, "");
1544
- break;
1541
+ for (let i = this.sources.length - 1; i >= 0; i -= 1) {
1542
+ const source = this.sources[i];
1543
+ if (source.content.trimEndAborted(charType)) return this;
1544
+ if (i > 0) {
1545
+ source.separator = (source.separator !== void 0 ? source.separator : this.separator).replace(rx, "");
1546
+ if (source.separator) return this;
1545
1547
  }
1546
- } while (!source.content.trimEndAborted(charType));
1548
+ }
1549
+ this.intro = this.intro.replace(rx, "");
1547
1550
  return this;
1548
1551
  }
1549
1552
  };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -37,7 +37,7 @@ const getLogFilter = filters => {
37
37
  const testFilter = (log, key, parts) => {
38
38
  let rawValue = log;
39
39
  for (let index = 0; index < key.length; index++) {
40
- if (!rawValue) {
40
+ if (rawValue === null || (typeof rawValue !== 'object' && typeof rawValue !== 'function')) {
41
41
  return false;
42
42
  }
43
43
  const part = key[index];
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1";
45
+ var version = "4.63.2";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -4232,7 +4232,7 @@ for (let i = 0; i < chars.length; i++) {
4232
4232
  intToChar[i] = c;
4233
4233
  charToInt[c] = i;
4234
4234
  }
4235
- function decodeInteger(reader, relative) {
4235
+ function decodeInteger(reader) {
4236
4236
  let value = 0;
4237
4237
  let shift = 0;
4238
4238
  let integer = 0;
@@ -4242,23 +4242,21 @@ function decodeInteger(reader, relative) {
4242
4242
  value |= (integer & 31) << shift;
4243
4243
  shift += 5;
4244
4244
  } while (integer & 32);
4245
- const shouldNegate = value & 1;
4246
- value >>>= 1;
4247
- if (shouldNegate) {
4248
- value = -2147483648 | -value;
4249
- }
4250
- return relative + value;
4245
+ return value;
4246
+ }
4247
+ function decodeSign(num) {
4248
+ return num & 1 ? -2147483648 | -(num >>> 1) : num >>> 1;
4251
4249
  }
4252
- function encodeInteger(builder, num, relative) {
4253
- let delta = num - relative;
4254
- delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
4250
+ function encodeInteger(builder, num) {
4255
4251
  do {
4256
- let clamped = delta & 31;
4257
- delta >>>= 5;
4258
- if (delta > 0) clamped |= 32;
4252
+ let clamped = num & 31;
4253
+ num >>>= 5;
4254
+ if (num > 0) clamped |= 32;
4259
4255
  builder.write(intToChar[clamped]);
4260
- } while (delta > 0);
4261
- return num;
4256
+ } while (num > 0);
4257
+ }
4258
+ function encodeSign(num) {
4259
+ return num < 0 ? -num << 1 | 1 : num << 1;
4262
4260
  }
4263
4261
  function hasMoreVlq(reader, max) {
4264
4262
  if (reader.pos >= max) return false;
@@ -4336,15 +4334,15 @@ function decode(mappings) {
4336
4334
  genColumn = 0;
4337
4335
  while (reader.pos < semi) {
4338
4336
  let seg;
4339
- genColumn = decodeInteger(reader, genColumn);
4337
+ genColumn += decodeSign(decodeInteger(reader));
4340
4338
  if (genColumn < lastCol) sorted = false;
4341
4339
  lastCol = genColumn;
4342
4340
  if (hasMoreVlq(reader, semi)) {
4343
- sourcesIndex = decodeInteger(reader, sourcesIndex);
4344
- sourceLine = decodeInteger(reader, sourceLine);
4345
- sourceColumn = decodeInteger(reader, sourceColumn);
4341
+ sourcesIndex += decodeSign(decodeInteger(reader));
4342
+ sourceLine += decodeSign(decodeInteger(reader));
4343
+ sourceColumn += decodeSign(decodeInteger(reader));
4346
4344
  if (hasMoreVlq(reader, semi)) {
4347
- namesIndex = decodeInteger(reader, namesIndex);
4345
+ namesIndex += decodeSign(decodeInteger(reader));
4348
4346
  seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
4349
4347
  } else {
4350
4348
  seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
@@ -4381,13 +4379,18 @@ function encode(decoded) {
4381
4379
  for (let j = 0; j < line.length; j++) {
4382
4380
  const segment = line[j];
4383
4381
  if (j > 0) writer.write(comma);
4384
- genColumn = encodeInteger(writer, segment[0], genColumn);
4382
+ encodeInteger(writer, encodeSign(segment[0] - genColumn));
4383
+ genColumn = segment[0];
4385
4384
  if (segment.length === 1) continue;
4386
- sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
4387
- sourceLine = encodeInteger(writer, segment[2], sourceLine);
4388
- sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
4385
+ encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
4386
+ encodeInteger(writer, encodeSign(segment[2] - sourceLine));
4387
+ encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
4388
+ sourcesIndex = segment[1];
4389
+ sourceLine = segment[2];
4390
+ sourceColumn = segment[3];
4389
4391
  if (segment.length === 4) continue;
4390
- namesIndex = encodeInteger(writer, segment[4], namesIndex);
4392
+ encodeInteger(writer, encodeSign(segment[4] - namesIndex));
4393
+ namesIndex = segment[4];
4391
4394
  }
4392
4395
  }
4393
4396
  return writer.flush();
@@ -5112,8 +5115,8 @@ var MagicString = class MagicString {
5112
5115
  end = end + this.offset;
5113
5116
  if (typeof content !== "string") throw new MagicStringError(`content must be a string, got ${typeof content}`);
5114
5117
  if (this.original.length !== 0) {
5115
- while (start < 0) start += this.original.length;
5116
- while (end < 0) end += this.original.length;
5118
+ if (start < 0) start = Math.max(0, start + this.original.length);
5119
+ if (end < 0) end = Math.max(0, end + this.original.length);
5117
5120
  }
5118
5121
  if (start < 0) throw new MagicStringError(`start ${start} is out of bounds`);
5119
5122
  if (end > this.original.length) throw new MagicStringError(`end ${end} is out of bounds`);
@@ -5196,8 +5199,8 @@ var MagicString = class MagicString {
5196
5199
  start = start + this.offset;
5197
5200
  end = end + this.offset;
5198
5201
  if (this.original.length !== 0) {
5199
- while (start < 0) start += this.original.length;
5200
- while (end < 0) end += this.original.length;
5202
+ if (start < 0) start = Math.max(0, start + this.original.length);
5203
+ if (end < 0) end = Math.max(0, end + this.original.length);
5201
5204
  }
5202
5205
  if (start === end) return this;
5203
5206
  if (start < 0 || end > this.original.length) throw new MagicStringError(`range ${start}–${end} is out of bounds`);
@@ -5220,8 +5223,8 @@ var MagicString = class MagicString {
5220
5223
  start = start + this.offset;
5221
5224
  end = end + this.offset;
5222
5225
  if (this.original.length !== 0) {
5223
- while (start < 0) start += this.original.length;
5224
- while (end < 0) end += this.original.length;
5226
+ if (start < 0) start = Math.max(0, start + this.original.length);
5227
+ if (end < 0) end = Math.max(0, end + this.original.length);
5225
5228
  }
5226
5229
  if (start === end) return this;
5227
5230
  if (start < 0 || end > this.original.length) throw new MagicStringError(`range ${start}–${end} is out of bounds`);
@@ -5282,8 +5285,8 @@ var MagicString = class MagicString {
5282
5285
  start = start + this.offset;
5283
5286
  end = end + this.offset;
5284
5287
  if (this.original.length !== 0) {
5285
- while (start < 0) start += this.original.length;
5286
- while (end < 0) end += this.original.length;
5288
+ if (start < 0) start = Math.max(0, start + this.original.length);
5289
+ if (end < 0) end = Math.max(0, end + this.original.length);
5287
5290
  }
5288
5291
  let result = "";
5289
5292
  let chunk = this.firstChunk;
@@ -5469,27 +5472,19 @@ var MagicString = class MagicString {
5469
5472
  });
5470
5473
  else return replacement(match[0], ...match.slice(1), match.index, str, match.groups);
5471
5474
  }
5472
- function matchAll(re, str) {
5473
- const matches = [];
5474
- while (true) {
5475
- const match = re.exec(str);
5476
- if (!match) break;
5477
- matches.push(match);
5478
- }
5479
- return matches;
5480
- }
5481
- if (searchValue.global) matchAll(searchValue, this.original).forEach((match) => {
5482
- if (match.index != null) {
5483
- const replacement = getReplacement(match, this.original);
5484
- if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
5485
- }
5486
- });
5487
- else {
5475
+ const replaceMatch = (match) => {
5476
+ if (match.index == null) return;
5477
+ const replacement = getReplacement(match, this.original);
5478
+ if (replacement === match[0]) return;
5479
+ if (match[0].length === 0) this.appendRight(match.index, replacement);
5480
+ else this.overwrite(match.index, match.index + match[0].length, replacement);
5481
+ };
5482
+ if (searchValue.global) {
5483
+ searchValue.lastIndex = 0;
5484
+ for (const match of this.original.matchAll(searchValue)) replaceMatch(match);
5485
+ } else {
5488
5486
  const match = this.original.match(searchValue);
5489
- if (match && match.index != null) {
5490
- const replacement = getReplacement(match, this.original);
5491
- if (replacement !== match[0]) this.overwrite(match.index, match.index + match[0].length, replacement);
5492
- }
5487
+ if (match) replaceMatch(match);
5493
5488
  }
5494
5489
  return this;
5495
5490
  }
@@ -5499,7 +5494,8 @@ var MagicString = class MagicString {
5499
5494
  const index = original.indexOf(string);
5500
5495
  if (index !== -1) {
5501
5496
  if (typeof replacement === "function") replacement = replacement(string, index, original);
5502
- if (string !== replacement) this.overwrite(index, index + string.length, replacement);
5497
+ if (string !== replacement) if (string.length === 0) this.appendRight(index, replacement);
5498
+ else this.overwrite(index, index + string.length, replacement);
5503
5499
  }
5504
5500
  return this;
5505
5501
  }
@@ -5514,6 +5510,13 @@ var MagicString = class MagicString {
5514
5510
  _replaceAllString(string, replacement) {
5515
5511
  const { original } = this;
5516
5512
  const stringLength = string.length;
5513
+ if (stringLength === 0) {
5514
+ for (let index = 0; index <= original.length; index += 1) {
5515
+ const _replacement = typeof replacement === "function" ? replacement("", index, original) : replacement;
5516
+ if (_replacement !== "") this.appendRight(index, _replacement);
5517
+ }
5518
+ return this;
5519
+ }
5517
5520
  for (let index = original.indexOf(string); index !== -1; index = original.indexOf(string, index + stringLength)) {
5518
5521
  const previous = original.slice(index, index + stringLength);
5519
5522
  const _replacement = typeof replacement === "function" ? replacement(previous, index, original) : replacement;
@@ -5658,7 +5661,7 @@ var Bundle$1 = class Bundle {
5658
5661
  indentStringCounts[indentStr] += 1;
5659
5662
  });
5660
5663
  return Object.keys(indentStringCounts).sort((a, b) => {
5661
- return indentStringCounts[a] - indentStringCounts[b];
5664
+ return indentStringCounts[b] - indentStringCounts[a];
5662
5665
  })[0] || " ";
5663
5666
  }
5664
5667
  indent(indentStr) {
@@ -5713,27 +5716,27 @@ var Bundle$1 = class Bundle {
5713
5716
  trimStart(charType) {
5714
5717
  const rx = new RegExp(`^${charType || "\\s"}+`);
5715
5718
  this.intro = this.intro.replace(rx, "");
5716
- if (!this.intro) {
5717
- let source;
5718
- let i = 0;
5719
- do {
5720
- source = this.sources[i++];
5721
- if (!source) break;
5722
- } while (!source.content.trimStartAborted(charType));
5719
+ if (!this.intro) for (let i = 0; i < this.sources.length; i += 1) {
5720
+ const source = this.sources[i];
5721
+ if (i > 0) {
5722
+ source.separator = (source.separator !== void 0 ? source.separator : this.separator).replace(rx, "");
5723
+ if (source.separator) break;
5724
+ }
5725
+ if (source.content.trimStartAborted(charType)) break;
5723
5726
  }
5724
5727
  return this;
5725
5728
  }
5726
5729
  trimEnd(charType) {
5727
5730
  const rx = new RegExp(`${charType || "\\s"}+$`);
5728
- let source;
5729
- let i = this.sources.length - 1;
5730
- do {
5731
- source = this.sources[i--];
5732
- if (!source) {
5733
- this.intro = this.intro.replace(rx, "");
5734
- break;
5731
+ for (let i = this.sources.length - 1; i >= 0; i -= 1) {
5732
+ const source = this.sources[i];
5733
+ if (source.content.trimEndAborted(charType)) return this;
5734
+ if (i > 0) {
5735
+ source.separator = (source.separator !== void 0 ? source.separator : this.separator).replace(rx, "");
5736
+ if (source.separator) return this;
5735
5737
  }
5736
- } while (!source.content.trimEndAborted(charType));
5738
+ }
5739
+ this.intro = this.intro.replace(rx, "");
5737
5740
  return this;
5738
5741
  }
5739
5742
  };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.63.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
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.1
4
- Fri, 28 Aug 2026 05:58:50 GMT - commit 78bfef0cb94479566f81012fafa372c84b90bd34
3
+ Rollup.js v4.63.2
4
+ Sat, 12 Sep 2026 06:36:48 GMT - commit 43ed4ec364940fbce7054d8da1f92c695d1e6808
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -91,7 +91,7 @@ exports.xxhashBase64Url = xxhashBase64Url;
91
91
  function __wbg_get_imports() {
92
92
  const import0 = {
93
93
  __proto__: null,
94
- __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
94
+ __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
95
95
  throw new Error(getStringFromWasm0(arg0, arg1));
96
96
  },
97
97
  __wbg_error_757e9472f8410341: function(arg0, arg1) {
@@ -105,7 +105,7 @@ function __wbg_get_imports() {
105
105
  wasm.__wbindgen_export(deferred0_0, deferred0_1, 1);
106
106
  }
107
107
  },
108
- __wbg_length_36bd29c6848c2144: function(arg0) {
108
+ __wbg_length_31bdaf014f5fbde2: function(arg0) {
109
109
  const ret = getObject(arg0).length;
110
110
  return ret;
111
111
  },
@@ -113,7 +113,7 @@ function __wbg_get_imports() {
113
113
  const ret = new Error();
114
114
  return addHeapObject(ret);
115
115
  },
116
- __wbg_prototypesetcall_de8e0d9553586985: function(arg0, arg1, arg2) {
116
+ __wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
117
117
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
118
118
  },
119
119
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.63.1",
3
+ "version": "4.63.2",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -39,15 +39,15 @@
39
39
  "@codemirror/commands": "^6.11.0",
40
40
  "@codemirror/lang-javascript": "^6.2.5",
41
41
  "@codemirror/language": "^6.12.4",
42
- "@codemirror/search": "^6.7.1",
43
- "@codemirror/state": "^6.7.1",
44
- "@codemirror/view": "^6.43.9",
42
+ "@codemirror/search": "^6.7.2",
43
+ "@codemirror/state": "^6.7.4",
44
+ "@codemirror/view": "^6.43.11",
45
45
  "@emnapi/core": "^1.11.3",
46
46
  "@emnapi/runtime": "^1.11.3",
47
47
  "@eslint/js": "^10.0.1",
48
48
  "@inquirer/prompts": "^7.10.1",
49
- "@jridgewell/sourcemap-codec": "^1.5.5",
50
- "@mermaid-js/mermaid-cli": "^11.16.0",
49
+ "@jridgewell/sourcemap-codec": "^1.6.0",
50
+ "@mermaid-js/mermaid-cli": "^11.17.0",
51
51
  "@napi-rs/cli": "3.4.1",
52
52
  "@rollup/plugin-alias": "^6.0.0",
53
53
  "@rollup/plugin-buble": "^1.0.3",
@@ -77,23 +77,23 @@
77
77
  "date-time": "^4.0.0",
78
78
  "es5-shim": "^4.6.7",
79
79
  "es6-shim": "^0.35.8",
80
- "eslint": "^10.9.1",
80
+ "eslint": "^10.10.0",
81
81
  "eslint-config-prettier": "^10.1.8",
82
82
  "eslint-plugin-prettier": "^5.5.6",
83
- "eslint-plugin-unicorn": "^73.0.0",
84
- "eslint-plugin-vue": "^10.10.0",
83
+ "eslint-plugin-unicorn": "^74.0.0",
84
+ "eslint-plugin-vue": "^10.11.0",
85
85
  "fixturify": "^3.0.0",
86
86
  "flru": "^1.0.2",
87
87
  "fs-extra": "^11.4.0",
88
88
  "github-api": "^3.4.0",
89
- "globals": "^17.11.0",
89
+ "globals": "^17.12.0",
90
90
  "husky": "^9.1.7",
91
91
  "is-reference": "^3.0.3",
92
- "lint-staged": "^17.3.0",
92
+ "lint-staged": "^17.5.0",
93
93
  "locate-character": "^3.0.0",
94
- "magic-string": "^1.2.2",
95
- "memfs": "^4.68.1",
96
- "mocha": "11.8.0",
94
+ "magic-string": "^1.2.3",
95
+ "memfs": "^4.71.0",
96
+ "mocha": "^11.8.0",
97
97
  "nodemon": "^3.1.14",
98
98
  "npm-audit-resolver": "^3.0.0-RC.0",
99
99
  "nyc": "^18.0.0",
@@ -103,10 +103,10 @@
103
103
  "pinia": "^4.0.3",
104
104
  "prettier": "^3.9.6",
105
105
  "prettier-plugin-organize-imports": "^4.3.0",
106
- "pretty-bytes": "^7.1.1",
107
- "pretty-ms": "^9.3.0",
106
+ "pretty-bytes": "^7.1.3",
107
+ "pretty-ms": "^9.3.1",
108
108
  "requirejs": "^2.3.8",
109
- "rollup": "^4.62.5",
109
+ "rollup": "^4.63.1",
110
110
  "rollup-plugin-license": "^3.7.1",
111
111
  "semver": "^7.8.5",
112
112
  "shx": "^0.4.0",
@@ -114,20 +114,20 @@
114
114
  "source-map": "^0.8.0",
115
115
  "source-map-support": "^0.5.21",
116
116
  "systemjs": "^6.15.1",
117
- "terser": "^5.50.0",
117
+ "terser": "^5.51.2",
118
118
  "tslib": "^2.8.1",
119
119
  "typescript": "^5.9.3",
120
- "typescript-eslint": "^8.68.0",
120
+ "typescript-eslint": "^8.70.0",
121
121
  "vite": "^7.3.6",
122
122
  "vitepress": "^1.6.4",
123
- "vue": "^3.5.41",
123
+ "vue": "^3.5.42",
124
124
  "vue-eslint-parser": "^10.4.1",
125
125
  "vue-tsc": "^3.3.11",
126
126
  "wasm-pack": "^0.15.0",
127
127
  "yargs-parser": "^21.1.1"
128
128
  },
129
129
  "overrides": {
130
- "axios": "^1.19.0",
130
+ "axios": "^1.20.0",
131
131
  "esbuild": ">0.24.2",
132
132
  "lodash-es": ">4.17.22",
133
133
  "path-scurry": {