rollup 4.60.2 → 4.60.3

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.60.2
5
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
4
+ Rollup.js v4.60.3
5
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
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.60.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";
30
+ const help = "rollup version 4.60.3\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--logLevel <level> Which kind of logs to display\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-reexportProtoFromExternal Ignore `__proto__` in star re-exports\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
31
31
 
32
32
  /**
33
33
  * @license
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.60.2
4
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
3
+ Rollup.js v4.60.3
4
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.60.2
4
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
3
+ Rollup.js v4.60.3
4
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
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.60.2
4
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
3
+ Rollup.js v4.60.3
4
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.60.2
4
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
3
+ Rollup.js v4.60.3
4
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
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.60.2";
30
+ var version = "4.60.3";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -2519,7 +2519,6 @@ const RESERVED_NAMES = new Set([
2519
2519
  'enum',
2520
2520
  'eval',
2521
2521
  'export',
2522
- 'exports',
2523
2522
  'extends',
2524
2523
  'false',
2525
2524
  'finally',
@@ -5625,10 +5624,17 @@ class ChildScope extends Scope {
5625
5624
  this.parent.addReturnExpression(expression);
5626
5625
  }
5627
5626
  }
5628
- addUsedOutsideNames(usedNames, accessedGlobalsByScope) {
5627
+ addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope) {
5629
5628
  for (const variable of this.accessedOutsideVariables.values()) {
5630
5629
  if (variable.included) {
5631
5630
  usedNames.add(variable.getBaseVariableName());
5631
+ // In system format, exported variables are assigned via `exports(name, value)`.
5632
+ // Any scope that references such a variable must treat `exports` as used so
5633
+ // that a nested binding of the same name does not shadow the system wrapper's
5634
+ // `exports` argument.
5635
+ if (format === 'system' && exportNamesByVariable.has(variable)) {
5636
+ usedNames.add('exports');
5637
+ }
5632
5638
  }
5633
5639
  }
5634
5640
  const accessedGlobals = accessedGlobalsByScope.get(this);
@@ -5643,7 +5649,7 @@ class ChildScope extends Scope {
5643
5649
  }
5644
5650
  deconflict(format, exportNamesByVariable, accessedGlobalsByScope) {
5645
5651
  const usedNames = new Set();
5646
- this.addUsedOutsideNames(usedNames, accessedGlobalsByScope);
5652
+ this.addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope);
5647
5653
  if (this.accessedDynamicImports) {
5648
5654
  for (const importExpression of this.accessedDynamicImports) {
5649
5655
  if (importExpression.inlineNamespace) {
@@ -8221,10 +8227,10 @@ function getCompleteAmdId(options, chunkId) {
8221
8227
  return options.id ?? '';
8222
8228
  }
8223
8229
 
8224
- function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, mechanism = 'return ') {
8230
+ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, mechanism = 'return ') {
8225
8231
  const { _, getDirectReturnFunction, getFunctionIntro, getPropertyAccess, n, s } = snippets;
8226
8232
  if (!namedExportsMode) {
8227
- return `${n}${n}${mechanism}${getSingleDefaultExport(exports$1, dependencies, interop, externalLiveBindings, getPropertyAccess)};`;
8233
+ return `${n}${n}${mechanism}${getSingleDefaultExport(exports, dependencies, interop, externalLiveBindings, getPropertyAccess)};`;
8228
8234
  }
8229
8235
  let exportBlock = '';
8230
8236
  if (namedExportsMode) {
@@ -8261,7 +8267,7 @@ function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, sn
8261
8267
  }
8262
8268
  }
8263
8269
  }
8264
- for (const { exported, local } of exports$1) {
8270
+ for (const { exported, local } of exports) {
8265
8271
  const lhs = `exports${getPropertyAccess(exported)}`;
8266
8272
  const rhs = local;
8267
8273
  if (lhs !== rhs) {
@@ -8308,9 +8314,9 @@ function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, sn
8308
8314
  }
8309
8315
  return '';
8310
8316
  }
8311
- function getSingleDefaultExport(exports$1, dependencies, interop, externalLiveBindings, getPropertyAccess) {
8312
- if (exports$1.length > 0) {
8313
- return exports$1[0].local;
8317
+ function getSingleDefaultExport(exports, dependencies, interop, externalLiveBindings, getPropertyAccess) {
8318
+ if (exports.length > 0) {
8319
+ return exports[0].local;
8314
8320
  }
8315
8321
  else {
8316
8322
  for (const { defaultVariableName, importPath, isChunk, name, namedExportsMode: depNamedExportsMode, namespaceVariableName, reexports } of dependencies) {
@@ -8582,13 +8588,13 @@ function warnOnBuiltins(log, dependencies) {
8582
8588
  log(LOGLEVEL_WARN, logMissingNodeBuiltins(externalBuiltins));
8583
8589
  }
8584
8590
 
8585
- function amd(magicString, { accessedGlobals, dependencies, exports: exports$1, hasDefaultExport, hasExports, id, indent: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, log, outro, snippets }, { amd, esModule, externalLiveBindings, freeze, generatedCode: { symbols }, interop, reexportProtoFromExternal, strict }) {
8591
+ function amd(magicString, { accessedGlobals, dependencies, exports, hasDefaultExport, hasExports, id, indent: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, log, outro, snippets }, { amd, esModule, externalLiveBindings, freeze, generatedCode: { symbols }, interop, reexportProtoFromExternal, strict }) {
8586
8592
  warnOnBuiltins(log, dependencies);
8587
8593
  throwOnPhase('amd', id, dependencies);
8588
8594
  const deps = dependencies.map(m => `'${updateExtensionForRelativeAmdId(m.importPath, amd.forceJsExtensionForImports)}'`);
8589
8595
  const parameters = dependencies.map(m => m.name);
8590
8596
  const { n, getNonArrowFunctionIntro, _ } = snippets;
8591
- if (hasExports && (namedExportsMode || exports$1[0]?.local === 'exports.default')) {
8597
+ if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
8592
8598
  parameters.unshift(`exports`);
8593
8599
  deps.unshift(`'exports'`);
8594
8600
  }
@@ -8605,7 +8611,7 @@ function amd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
8605
8611
  (deps.length > 0 ? `[${deps.join(`,${_}`)}],${_}` : ``);
8606
8612
  const useStrict = strict ? `${_}'use strict';` : '';
8607
8613
  magicString.prepend(`${intro}${getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets)}`);
8608
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
8614
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
8609
8615
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, isEntryFacade && (esModule === true || (esModule === 'if-default-prop' && hasDefaultExport)), isModuleFacade && symbols, snippets);
8610
8616
  if (namespaceMarkers) {
8611
8617
  namespaceMarkers = n + n + namespaceMarkers;
@@ -8622,7 +8628,7 @@ function amd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
8622
8628
  .append(`${n}${n}}));`);
8623
8629
  }
8624
8630
 
8625
- function cjs(magicString, { accessedGlobals, dependencies, exports: exports$1, hasDefaultExport, hasExports, id, indent: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, outro, snippets }, { compact, esModule, externalLiveBindings, freeze, interop, generatedCode: { symbols }, reexportProtoFromExternal, strict }) {
8631
+ function cjs(magicString, { accessedGlobals, dependencies, exports, hasDefaultExport, hasExports, id, indent: t, intro, isEntryFacade, isModuleFacade, namedExportsMode, outro, snippets }, { compact, esModule, externalLiveBindings, freeze, interop, generatedCode: { symbols }, reexportProtoFromExternal, strict }) {
8626
8632
  throwOnPhase('cjs', id, dependencies);
8627
8633
  const { _, n } = snippets;
8628
8634
  const useStrict = strict ? `'use strict';${n}${n}` : '';
@@ -8633,7 +8639,7 @@ function cjs(magicString, { accessedGlobals, dependencies, exports: exports$1, h
8633
8639
  const importBlock = getImportBlock$1(dependencies, snippets, compact);
8634
8640
  const interopBlock = getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets);
8635
8641
  magicString.prepend(`${useStrict}${intro}${namespaceMarkers}${importBlock}${interopBlock}`);
8636
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, `module.exports${_}=${_}`);
8642
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, `module.exports${_}=${_}`);
8637
8643
  magicString.append(`${exportBlock}${outro}`);
8638
8644
  }
8639
8645
  function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
@@ -8659,7 +8665,7 @@ function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
8659
8665
  return '';
8660
8666
  }
8661
8667
 
8662
- function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports: exports$1, snippets }, { externalLiveBindings, freeze, generatedCode: { symbols }, importAttributesKey }) {
8668
+ function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports, snippets }, { externalLiveBindings, freeze, generatedCode: { symbols }, importAttributesKey }) {
8663
8669
  const { n } = snippets;
8664
8670
  const importBlock = getImportBlock(dependencies, importAttributesKey, snippets);
8665
8671
  if (importBlock.length > 0)
@@ -8667,7 +8673,7 @@ function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencie
8667
8673
  intro += getHelpersBlock(null, accessedGlobals, t, snippets, externalLiveBindings, freeze, symbols);
8668
8674
  if (intro)
8669
8675
  magicString.prepend(intro);
8670
- const exportBlock = getExportBlock(exports$1, snippets);
8676
+ const exportBlock = getExportBlock(exports, snippets);
8671
8677
  if (exportBlock.length > 0)
8672
8678
  magicString.append(n + n + exportBlock.join(n).trim());
8673
8679
  if (outro)
@@ -8757,11 +8763,11 @@ function getImportBlock(dependencies, importAttributesKey, { _ }) {
8757
8763
  }
8758
8764
  return importBlock;
8759
8765
  }
8760
- function getExportBlock(exports$1, { _, cnst }) {
8766
+ function getExportBlock(exports, { _, cnst }) {
8761
8767
  const exportBlock = [];
8762
- const exportDeclaration = new Array(exports$1.length);
8768
+ const exportDeclaration = new Array(exports.length);
8763
8769
  let index = 0;
8764
- for (const specifier of exports$1) {
8770
+ for (const specifier of exports) {
8765
8771
  if (specifier.expression) {
8766
8772
  exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
8767
8773
  }
@@ -8839,7 +8845,7 @@ function trimEmptyImports(dependencies) {
8839
8845
  return [];
8840
8846
  }
8841
8847
 
8842
- function iife(magicString, { accessedGlobals, dependencies, exports: exports$1, hasDefaultExport, hasExports, id, indent: t, intro, namedExportsMode, log, outro, snippets }, { compact, esModule, extend, freeze, externalLiveBindings, reexportProtoFromExternal, globals, interop, name, generatedCode: { symbols }, strict }) {
8848
+ function iife(magicString, { accessedGlobals, dependencies, exports, hasDefaultExport, hasExports, id, indent: t, intro, namedExportsMode, log, outro, snippets }, { compact, esModule, extend, freeze, externalLiveBindings, reexportProtoFromExternal, globals, interop, name, generatedCode: { symbols }, strict }) {
8843
8849
  throwOnPhase('iife', id, dependencies);
8844
8850
  const { _, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
8845
8851
  const isNamespaced = name && name.includes('.');
@@ -8854,7 +8860,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
8854
8860
  if (hasExports && !name) {
8855
8861
  log(LOGLEVEL_WARN, logMissingNameOptionForIifeExport());
8856
8862
  }
8857
- if (hasExports && (namedExportsMode || exports$1[0]?.local === 'exports.default')) {
8863
+ if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
8858
8864
  if (extend) {
8859
8865
  deps.unshift(`this${keypath(name, getPropertyAccess)}${_}=${_}this${keypath(name, getPropertyAccess)}${_}||${_}{}`);
8860
8866
  parameters.unshift('exports');
@@ -8885,7 +8891,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
8885
8891
  if (hasExports && !extend && namedExportsMode) {
8886
8892
  wrapperOutro = `${n}${n}${t}return exports;${wrapperOutro}`;
8887
8893
  }
8888
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
8894
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
8889
8895
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), symbols, snippets);
8890
8896
  if (namespaceMarkers) {
8891
8897
  namespaceMarkers = n + n + namespaceMarkers;
@@ -8899,10 +8905,10 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
8899
8905
 
8900
8906
  const MISSING_EXPORT_SHIM_VARIABLE = '_missingExportShim';
8901
8907
 
8902
- function system(magicString, { accessedGlobals, dependencies, exports: exports$1, hasExports, id, indent: t, intro, snippets, outro, usesTopLevelAwait }, { externalLiveBindings, freeze, name, generatedCode: { symbols }, strict, systemNullSetters }) {
8908
+ function system(magicString, { accessedGlobals, dependencies, exports, hasExports, id, indent: t, intro, snippets, outro, usesTopLevelAwait }, { externalLiveBindings, freeze, name, generatedCode: { symbols }, strict, systemNullSetters }) {
8903
8909
  throwOnPhase('system', id, dependencies);
8904
8910
  const { _, getFunctionIntro, getNonArrowFunctionIntro, n, s } = snippets;
8905
- const { importBindings, setters, starExcludes } = analyzeDependencies(dependencies, exports$1, t, snippets);
8911
+ const { importBindings, setters, starExcludes } = analyzeDependencies(dependencies, exports, t, snippets);
8906
8912
  const registeredName = name ? `'${name}',${_}` : '';
8907
8913
  const wrapperParameters = accessedGlobals.has('module')
8908
8914
  ? ['exports', 'module']
@@ -8939,15 +8945,15 @@ function system(magicString, { accessedGlobals, dependencies, exports: exports$1
8939
8945
  magicString
8940
8946
  .prepend(intro +
8941
8947
  getHelpersBlock(null, accessedGlobals, t, snippets, externalLiveBindings, freeze, symbols) +
8942
- getHoistedExportsBlock(exports$1, t, snippets))
8948
+ getHoistedExportsBlock(exports, t, snippets))
8943
8949
  .append(`${outro}${n}${n}` +
8944
- getSyntheticExportsBlock(exports$1, t, snippets) +
8945
- getMissingExportsBlock(exports$1, t, snippets))
8950
+ getSyntheticExportsBlock(exports, t, snippets) +
8951
+ getMissingExportsBlock(exports, t, snippets))
8946
8952
  .indent(`${t}${t}${t}`)
8947
8953
  .append(wrapperEnd)
8948
8954
  .prepend(wrapperStart);
8949
8955
  }
8950
- function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, getPropertyAccess, n }) {
8956
+ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, getPropertyAccess, n }) {
8951
8957
  const importBindings = [];
8952
8958
  const setters = [];
8953
8959
  let starExcludes = null;
@@ -8981,7 +8987,7 @@ function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, g
8981
8987
  if (reexportedNames.length > 1 || hasStarReexport) {
8982
8988
  if (hasStarReexport) {
8983
8989
  if (!starExcludes) {
8984
- starExcludes = getStarExcludes({ dependencies, exports: exports$1 });
8990
+ starExcludes = getStarExcludes({ dependencies, exports });
8985
8991
  }
8986
8992
  reexportedNames.unshift([null, `__proto__:${_}null`]);
8987
8993
  const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
@@ -9001,8 +9007,8 @@ function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, g
9001
9007
  }
9002
9008
  return { importBindings, setters, starExcludes };
9003
9009
  }
9004
- const getStarExcludes = ({ dependencies, exports: exports$1 }) => {
9005
- const starExcludes = new Set(exports$1.map(expt => expt.exported));
9010
+ const getStarExcludes = ({ dependencies, exports }) => {
9011
+ const starExcludes = new Set(exports.map(expt => expt.exported));
9006
9012
  starExcludes.add('default');
9007
9013
  for (const { reexports } of dependencies) {
9008
9014
  if (reexports) {
@@ -9028,24 +9034,24 @@ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
9028
9034
  return '';
9029
9035
  };
9030
9036
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
9031
- const getHoistedExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
9032
- function getExportsBlock(exports$1, t, { _, n }) {
9033
- if (exports$1.length === 0) {
9037
+ const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
9038
+ function getExportsBlock(exports, t, { _, n }) {
9039
+ if (exports.length === 0) {
9034
9040
  return '';
9035
9041
  }
9036
- if (exports$1.length === 1) {
9037
- return `exports(${JSON.stringify(exports$1[0].name)},${_}${exports$1[0].value});${n}${n}`;
9042
+ if (exports.length === 1) {
9043
+ return `exports(${JSON.stringify(exports[0].name)},${_}${exports[0].value});${n}${n}`;
9038
9044
  }
9039
9045
  return (`exports({${n}` +
9040
- exports$1
9046
+ exports
9041
9047
  .map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`)
9042
9048
  .join(`,${n}`) +
9043
9049
  `${n}});${n}${n}`);
9044
9050
  }
9045
- const getSyntheticExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1
9051
+ const getSyntheticExportsBlock = (exports, t, snippets) => getExportsBlock(exports
9046
9052
  .filter(expt => expt.expression)
9047
9053
  .map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
9048
- const getMissingExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1
9054
+ const getMissingExportsBlock = (exports, t, snippets) => getExportsBlock(exports
9049
9055
  .filter(expt => expt.local === MISSING_EXPORT_SHIM_VARIABLE)
9050
9056
  .map(expt => ({ name: expt.exported, value: MISSING_EXPORT_SHIM_VARIABLE })), t, snippets);
9051
9057
 
@@ -9061,7 +9067,7 @@ function safeAccess(name, globalVariable, { _, getPropertyAccess }) {
9061
9067
  .map(part => (propertyPath += getPropertyAccess(part)))
9062
9068
  .join(`${_}&&${_}`);
9063
9069
  }
9064
- function umd(magicString, { accessedGlobals, dependencies, exports: exports$1, hasDefaultExport, hasExports, id, indent: t, intro, namedExportsMode, log, outro, snippets }, { amd, compact, esModule, extend, externalLiveBindings, freeze, interop, name, generatedCode: { symbols }, globals, noConflict, reexportProtoFromExternal, strict }) {
9070
+ function umd(magicString, { accessedGlobals, dependencies, exports, hasDefaultExport, hasExports, id, indent: t, intro, namedExportsMode, log, outro, snippets }, { amd, compact, esModule, extend, externalLiveBindings, freeze, interop, name, generatedCode: { symbols }, globals, noConflict, reexportProtoFromExternal, strict }) {
9065
9071
  const { _, cnst, getFunctionIntro, getNonArrowFunctionIntro, getPropertyAccess, n, s } = snippets;
9066
9072
  const factoryVariable = compact ? 'f' : 'factory';
9067
9073
  const globalVariable = compact ? 'g' : 'global';
@@ -9076,7 +9082,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
9076
9082
  const globalDeps = trimmedImports.map(module => globalProperty(module.globalName, globalVariable, getPropertyAccess));
9077
9083
  const factoryParameters = trimmedImports.map(m => m.name);
9078
9084
  if ((hasExports || noConflict) &&
9079
- (namedExportsMode || (hasExports && exports$1[0]?.local === 'exports.default'))) {
9085
+ (namedExportsMode || (hasExports && exports[0]?.local === 'exports.default'))) {
9080
9086
  amdDeps.unshift(`'exports'`);
9081
9087
  cjsDeps.unshift(`exports`);
9082
9088
  globalDeps.unshift(assignToDeepVariable(name, globalVariable, globals, `${extend ? `${globalProperty(name, globalVariable, getPropertyAccess)}${_}||${_}` : ''}{}`, snippets, log));
@@ -9144,7 +9150,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
9144
9150
  })}{${useStrict}${n}`;
9145
9151
  const wrapperOutro = n + n + '}));';
9146
9152
  magicString.prepend(`${intro}${getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets)}`);
9147
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
9153
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
9148
9154
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), symbols, snippets);
9149
9155
  if (namespaceMarkers) {
9150
9156
  namespaceMarkers = n + n + namespaceMarkers;
@@ -9393,7 +9399,7 @@ var hasRequiredUtils;
9393
9399
  function requireUtils () {
9394
9400
  if (hasRequiredUtils) return utils;
9395
9401
  hasRequiredUtils = 1;
9396
- (function (exports$1) {
9402
+ (function (exports) {
9397
9403
 
9398
9404
  const {
9399
9405
  REGEX_BACKSLASH,
@@ -9402,13 +9408,13 @@ function requireUtils () {
9402
9408
  REGEX_SPECIAL_CHARS_GLOBAL
9403
9409
  } = /*@__PURE__*/ requireConstants();
9404
9410
 
9405
- exports$1.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
9406
- exports$1.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
9407
- exports$1.isRegexChar = str => str.length === 1 && exports$1.hasRegexChars(str);
9408
- exports$1.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
9409
- exports$1.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
9411
+ exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
9412
+ exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
9413
+ exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
9414
+ exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
9415
+ exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
9410
9416
 
9411
- exports$1.isWindows = () => {
9417
+ exports.isWindows = () => {
9412
9418
  if (typeof navigator !== 'undefined' && navigator.platform) {
9413
9419
  const platform = navigator.platform.toLowerCase();
9414
9420
  return platform === 'win32' || platform === 'windows';
@@ -9421,20 +9427,20 @@ function requireUtils () {
9421
9427
  return false;
9422
9428
  };
9423
9429
 
9424
- exports$1.removeBackslashes = str => {
9430
+ exports.removeBackslashes = str => {
9425
9431
  return str.replace(REGEX_REMOVE_BACKSLASH, match => {
9426
9432
  return match === '\\' ? '' : match;
9427
9433
  });
9428
9434
  };
9429
9435
 
9430
- exports$1.escapeLast = (input, char, lastIdx) => {
9436
+ exports.escapeLast = (input, char, lastIdx) => {
9431
9437
  const idx = input.lastIndexOf(char, lastIdx);
9432
9438
  if (idx === -1) return input;
9433
- if (input[idx - 1] === '\\') return exports$1.escapeLast(input, char, idx - 1);
9439
+ if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
9434
9440
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
9435
9441
  };
9436
9442
 
9437
- exports$1.removePrefix = (input, state = {}) => {
9443
+ exports.removePrefix = (input, state = {}) => {
9438
9444
  let output = input;
9439
9445
  if (output.startsWith('./')) {
9440
9446
  output = output.slice(2);
@@ -9443,7 +9449,7 @@ function requireUtils () {
9443
9449
  return output;
9444
9450
  };
9445
9451
 
9446
- exports$1.wrapOutput = (input, state = {}, options = {}) => {
9452
+ exports.wrapOutput = (input, state = {}, options = {}) => {
9447
9453
  const prepend = options.contains ? '' : '^';
9448
9454
  const append = options.contains ? '' : '$';
9449
9455
 
@@ -9454,7 +9460,7 @@ function requireUtils () {
9454
9460
  return output;
9455
9461
  };
9456
9462
 
9457
- exports$1.basename = (path, { windows } = {}) => {
9463
+ exports.basename = (path, { windows } = {}) => {
9458
9464
  const segs = path.split(windows ? /[\\/]/ : '/');
9459
9465
  const last = segs[segs.length - 1];
9460
9466
 
@@ -18214,7 +18220,7 @@ const DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT = {
18214
18220
  function deconflictChunk(modules, dependenciesToBeDeconflicted, imports, usedNames, format, interop, preserveModules, externalLiveBindings, chunkByModule, externalChunkByModule, syntheticExports, exportNamesByVariable, accessedGlobalsByScope, includedNamespaces) {
18215
18221
  const reversedModules = [...modules].reverse();
18216
18222
  for (const module of reversedModules) {
18217
- module.scope.addUsedOutsideNames(usedNames, accessedGlobalsByScope);
18223
+ module.scope.addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope);
18218
18224
  }
18219
18225
  deconflictTopLevelVariables(usedNames, reversedModules, includedNamespaces);
18220
18226
  DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT[format](usedNames, imports, dependenciesToBeDeconflicted, interop, preserveModules, externalLiveBindings, chunkByModule, externalChunkByModule, syntheticExports);
@@ -18335,9 +18341,9 @@ function deconflictTopLevelVariables(usedNames, modules, includedNamespaces) {
18335
18341
  }
18336
18342
  }
18337
18343
 
18338
- function assignExportsToMangledNames(exports$1, exportsByName, exportNamesByVariable) {
18344
+ function assignExportsToMangledNames(exports, exportsByName, exportNamesByVariable) {
18339
18345
  let nameIndex = 0;
18340
- for (const variable of exports$1) {
18346
+ for (const variable of exports) {
18341
18347
  let [exportName] = variable.name;
18342
18348
  if (exportsByName.has(exportName)) {
18343
18349
  do {
@@ -18353,8 +18359,8 @@ function assignExportsToMangledNames(exports$1, exportsByName, exportNamesByVari
18353
18359
  exportNamesByVariable.set(variable, [exportName]);
18354
18360
  }
18355
18361
  }
18356
- function assignExportsToNames(exports$1, exportsByName, exportNamesByVariable) {
18357
- for (const variable of exports$1) {
18362
+ function assignExportsToNames(exports, exportsByName, exportNamesByVariable) {
18363
+ for (const variable of exports) {
18358
18364
  let nameIndex = 0;
18359
18365
  let exportName = variable.name;
18360
18366
  while (exportsByName.has(exportName)) {
@@ -19136,7 +19142,7 @@ class Chunk {
19136
19142
  return 'chunk';
19137
19143
  }
19138
19144
  getChunkExportDeclarations(format) {
19139
- const exports$1 = [];
19145
+ const exports = [];
19140
19146
  for (const exportName of this.getExportNames()) {
19141
19147
  if (exportName[0] === '*')
19142
19148
  continue;
@@ -19181,14 +19187,14 @@ class Chunk {
19181
19187
  local = variable.renderName;
19182
19188
  }
19183
19189
  }
19184
- exports$1.push({
19190
+ exports.push({
19185
19191
  exported: exportName,
19186
19192
  expression,
19187
19193
  hoisted,
19188
19194
  local
19189
19195
  });
19190
19196
  }
19191
- return exports$1;
19197
+ return exports;
19192
19198
  }
19193
19199
  getDependenciesToBeDeconflicted(addNonNamespacesAndInteropHelpers, addDependenciesWithoutBindings, interop) {
19194
19200
  const dependencies = new Set();
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.60.2
4
- Sat, 18 Apr 2026 13:58:01 GMT - commit a6be82b8abd747458afdc7484319f7b5deb92535
3
+ Rollup.js v4.60.3
4
+ Mon, 04 May 2026 15:33:41 GMT - commit b47bdabeccbb7aa1b1d4117f2f4a781a9f6de297
5
5
 
6
6
  https://github.com/rollup/rollup
7
7