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.
@@ -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
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.60.2";
45
+ var version = "4.60.3";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -1169,7 +1169,7 @@ var hasRequiredUtils;
1169
1169
  function requireUtils () {
1170
1170
  if (hasRequiredUtils) return utils;
1171
1171
  hasRequiredUtils = 1;
1172
- (function (exports$1) {
1172
+ (function (exports) {
1173
1173
 
1174
1174
  const {
1175
1175
  REGEX_BACKSLASH,
@@ -1178,13 +1178,13 @@ function requireUtils () {
1178
1178
  REGEX_SPECIAL_CHARS_GLOBAL
1179
1179
  } = /*@__PURE__*/ requireConstants();
1180
1180
 
1181
- exports$1.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
1182
- exports$1.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
1183
- exports$1.isRegexChar = str => str.length === 1 && exports$1.hasRegexChars(str);
1184
- exports$1.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
1185
- exports$1.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
1181
+ exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
1182
+ exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
1183
+ exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
1184
+ exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
1185
+ exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
1186
1186
 
1187
- exports$1.isWindows = () => {
1187
+ exports.isWindows = () => {
1188
1188
  if (typeof navigator !== 'undefined' && navigator.platform) {
1189
1189
  const platform = navigator.platform.toLowerCase();
1190
1190
  return platform === 'win32' || platform === 'windows';
@@ -1197,20 +1197,20 @@ function requireUtils () {
1197
1197
  return false;
1198
1198
  };
1199
1199
 
1200
- exports$1.removeBackslashes = str => {
1200
+ exports.removeBackslashes = str => {
1201
1201
  return str.replace(REGEX_REMOVE_BACKSLASH, match => {
1202
1202
  return match === '\\' ? '' : match;
1203
1203
  });
1204
1204
  };
1205
1205
 
1206
- exports$1.escapeLast = (input, char, lastIdx) => {
1206
+ exports.escapeLast = (input, char, lastIdx) => {
1207
1207
  const idx = input.lastIndexOf(char, lastIdx);
1208
1208
  if (idx === -1) return input;
1209
- if (input[idx - 1] === '\\') return exports$1.escapeLast(input, char, idx - 1);
1209
+ if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
1210
1210
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
1211
1211
  };
1212
1212
 
1213
- exports$1.removePrefix = (input, state = {}) => {
1213
+ exports.removePrefix = (input, state = {}) => {
1214
1214
  let output = input;
1215
1215
  if (output.startsWith('./')) {
1216
1216
  output = output.slice(2);
@@ -1219,7 +1219,7 @@ function requireUtils () {
1219
1219
  return output;
1220
1220
  };
1221
1221
 
1222
- exports$1.wrapOutput = (input, state = {}, options = {}) => {
1222
+ exports.wrapOutput = (input, state = {}, options = {}) => {
1223
1223
  const prepend = options.contains ? '' : '^';
1224
1224
  const append = options.contains ? '' : '$';
1225
1225
 
@@ -1230,7 +1230,7 @@ function requireUtils () {
1230
1230
  return output;
1231
1231
  };
1232
1232
 
1233
- exports$1.basename = (path, { windows } = {}) => {
1233
+ exports.basename = (path, { windows } = {}) => {
1234
1234
  const segs = path.split(windows ? /[\\/]/ : '/');
1235
1235
  const last = segs[segs.length - 1];
1236
1236
 
@@ -6623,7 +6623,6 @@ const RESERVED_NAMES = new Set([
6623
6623
  'enum',
6624
6624
  'eval',
6625
6625
  'export',
6626
- 'exports',
6627
6626
  'extends',
6628
6627
  'false',
6629
6628
  'finally',
@@ -9715,10 +9714,17 @@ class ChildScope extends Scope {
9715
9714
  this.parent.addReturnExpression(expression);
9716
9715
  }
9717
9716
  }
9718
- addUsedOutsideNames(usedNames, accessedGlobalsByScope) {
9717
+ addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope) {
9719
9718
  for (const variable of this.accessedOutsideVariables.values()) {
9720
9719
  if (variable.included) {
9721
9720
  usedNames.add(variable.getBaseVariableName());
9721
+ // In system format, exported variables are assigned via `exports(name, value)`.
9722
+ // Any scope that references such a variable must treat `exports` as used so
9723
+ // that a nested binding of the same name does not shadow the system wrapper's
9724
+ // `exports` argument.
9725
+ if (format === 'system' && exportNamesByVariable.has(variable)) {
9726
+ usedNames.add('exports');
9727
+ }
9722
9728
  }
9723
9729
  }
9724
9730
  const accessedGlobals = accessedGlobalsByScope.get(this);
@@ -9733,7 +9739,7 @@ class ChildScope extends Scope {
9733
9739
  }
9734
9740
  deconflict(format, exportNamesByVariable, accessedGlobalsByScope) {
9735
9741
  const usedNames = new Set();
9736
- this.addUsedOutsideNames(usedNames, accessedGlobalsByScope);
9742
+ this.addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope);
9737
9743
  if (this.accessedDynamicImports) {
9738
9744
  for (const importExpression of this.accessedDynamicImports) {
9739
9745
  if (importExpression.inlineNamespace) {
@@ -12311,10 +12317,10 @@ function getCompleteAmdId(options, chunkId) {
12311
12317
  return options.id ?? '';
12312
12318
  }
12313
12319
 
12314
- function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, mechanism = 'return ') {
12320
+ function getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, mechanism = 'return ') {
12315
12321
  const { _, getDirectReturnFunction, getFunctionIntro, getPropertyAccess, n, s } = snippets;
12316
12322
  if (!namedExportsMode) {
12317
- return `${n}${n}${mechanism}${getSingleDefaultExport(exports$1, dependencies, interop, externalLiveBindings, getPropertyAccess)};`;
12323
+ return `${n}${n}${mechanism}${getSingleDefaultExport(exports, dependencies, interop, externalLiveBindings, getPropertyAccess)};`;
12318
12324
  }
12319
12325
  let exportBlock = '';
12320
12326
  if (namedExportsMode) {
@@ -12351,7 +12357,7 @@ function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, sn
12351
12357
  }
12352
12358
  }
12353
12359
  }
12354
- for (const { exported, local } of exports$1) {
12360
+ for (const { exported, local } of exports) {
12355
12361
  const lhs = `exports${getPropertyAccess(exported)}`;
12356
12362
  const rhs = local;
12357
12363
  if (lhs !== rhs) {
@@ -12398,9 +12404,9 @@ function getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, sn
12398
12404
  }
12399
12405
  return '';
12400
12406
  }
12401
- function getSingleDefaultExport(exports$1, dependencies, interop, externalLiveBindings, getPropertyAccess) {
12402
- if (exports$1.length > 0) {
12403
- return exports$1[0].local;
12407
+ function getSingleDefaultExport(exports, dependencies, interop, externalLiveBindings, getPropertyAccess) {
12408
+ if (exports.length > 0) {
12409
+ return exports[0].local;
12404
12410
  }
12405
12411
  else {
12406
12412
  for (const { defaultVariableName, importPath, isChunk, name, namedExportsMode: depNamedExportsMode, namespaceVariableName, reexports } of dependencies) {
@@ -12672,13 +12678,13 @@ function warnOnBuiltins(log, dependencies) {
12672
12678
  log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logMissingNodeBuiltins(externalBuiltins));
12673
12679
  }
12674
12680
 
12675
- 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 }) {
12681
+ 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 }) {
12676
12682
  warnOnBuiltins(log, dependencies);
12677
12683
  throwOnPhase('amd', id, dependencies);
12678
12684
  const deps = dependencies.map(m => `'${updateExtensionForRelativeAmdId(m.importPath, amd.forceJsExtensionForImports)}'`);
12679
12685
  const parameters = dependencies.map(m => m.name);
12680
12686
  const { n, getNonArrowFunctionIntro, _ } = snippets;
12681
- if (hasExports && (namedExportsMode || exports$1[0]?.local === 'exports.default')) {
12687
+ if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
12682
12688
  parameters.unshift(`exports`);
12683
12689
  deps.unshift(`'exports'`);
12684
12690
  }
@@ -12695,7 +12701,7 @@ function amd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
12695
12701
  (deps.length > 0 ? `[${deps.join(`,${_}`)}],${_}` : ``);
12696
12702
  const useStrict = strict ? `${_}'use strict';` : '';
12697
12703
  magicString.prepend(`${intro}${getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets)}`);
12698
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
12704
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
12699
12705
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, isEntryFacade && (esModule === true || (esModule === 'if-default-prop' && hasDefaultExport)), isModuleFacade && symbols, snippets);
12700
12706
  if (namespaceMarkers) {
12701
12707
  namespaceMarkers = n + n + namespaceMarkers;
@@ -12712,7 +12718,7 @@ function amd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
12712
12718
  .append(`${n}${n}}));`);
12713
12719
  }
12714
12720
 
12715
- 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 }) {
12721
+ 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 }) {
12716
12722
  throwOnPhase('cjs', id, dependencies);
12717
12723
  const { _, n } = snippets;
12718
12724
  const useStrict = strict ? `'use strict';${n}${n}` : '';
@@ -12723,7 +12729,7 @@ function cjs(magicString, { accessedGlobals, dependencies, exports: exports$1, h
12723
12729
  const importBlock = getImportBlock$1(dependencies, snippets, compact);
12724
12730
  const interopBlock = getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets);
12725
12731
  magicString.prepend(`${useStrict}${intro}${namespaceMarkers}${importBlock}${interopBlock}`);
12726
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, `module.exports${_}=${_}`);
12732
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal, `module.exports${_}=${_}`);
12727
12733
  magicString.append(`${exportBlock}${outro}`);
12728
12734
  }
12729
12735
  function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
@@ -12749,7 +12755,7 @@ function getImportBlock$1(dependencies, { _, cnst, n }, compact) {
12749
12755
  return '';
12750
12756
  }
12751
12757
 
12752
- function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports: exports$1, snippets }, { externalLiveBindings, freeze, generatedCode: { symbols }, importAttributesKey }) {
12758
+ function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencies, exports, snippets }, { externalLiveBindings, freeze, generatedCode: { symbols }, importAttributesKey }) {
12753
12759
  const { n } = snippets;
12754
12760
  const importBlock = getImportBlock(dependencies, importAttributesKey, snippets);
12755
12761
  if (importBlock.length > 0)
@@ -12757,7 +12763,7 @@ function es(magicString, { accessedGlobals, indent: t, intro, outro, dependencie
12757
12763
  intro += getHelpersBlock(null, accessedGlobals, t, snippets, externalLiveBindings, freeze, symbols);
12758
12764
  if (intro)
12759
12765
  magicString.prepend(intro);
12760
- const exportBlock = getExportBlock(exports$1, snippets);
12766
+ const exportBlock = getExportBlock(exports, snippets);
12761
12767
  if (exportBlock.length > 0)
12762
12768
  magicString.append(n + n + exportBlock.join(n).trim());
12763
12769
  if (outro)
@@ -12847,11 +12853,11 @@ function getImportBlock(dependencies, importAttributesKey, { _ }) {
12847
12853
  }
12848
12854
  return importBlock;
12849
12855
  }
12850
- function getExportBlock(exports$1, { _, cnst }) {
12856
+ function getExportBlock(exports, { _, cnst }) {
12851
12857
  const exportBlock = [];
12852
- const exportDeclaration = new Array(exports$1.length);
12858
+ const exportDeclaration = new Array(exports.length);
12853
12859
  let index = 0;
12854
- for (const specifier of exports$1) {
12860
+ for (const specifier of exports) {
12855
12861
  if (specifier.expression) {
12856
12862
  exportBlock.push(`${cnst} ${specifier.local}${_}=${_}${specifier.expression};`);
12857
12863
  }
@@ -12929,7 +12935,7 @@ function trimEmptyImports(dependencies) {
12929
12935
  return [];
12930
12936
  }
12931
12937
 
12932
- 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 }) {
12938
+ 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 }) {
12933
12939
  throwOnPhase('iife', id, dependencies);
12934
12940
  const { _, getNonArrowFunctionIntro, getPropertyAccess, n } = snippets;
12935
12941
  const isNamespaced = name && name.includes('.');
@@ -12944,7 +12950,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
12944
12950
  if (hasExports && !name) {
12945
12951
  log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logMissingNameOptionForIifeExport());
12946
12952
  }
12947
- if (hasExports && (namedExportsMode || exports$1[0]?.local === 'exports.default')) {
12953
+ if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
12948
12954
  if (extend) {
12949
12955
  deps.unshift(`this${keypath(name, getPropertyAccess)}${_}=${_}this${keypath(name, getPropertyAccess)}${_}||${_}{}`);
12950
12956
  parameters.unshift('exports');
@@ -12975,7 +12981,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
12975
12981
  if (hasExports && !extend && namedExportsMode) {
12976
12982
  wrapperOutro = `${n}${n}${t}return exports;${wrapperOutro}`;
12977
12983
  }
12978
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
12984
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
12979
12985
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), symbols, snippets);
12980
12986
  if (namespaceMarkers) {
12981
12987
  namespaceMarkers = n + n + namespaceMarkers;
@@ -12989,10 +12995,10 @@ function iife(magicString, { accessedGlobals, dependencies, exports: exports$1,
12989
12995
 
12990
12996
  const MISSING_EXPORT_SHIM_VARIABLE = '_missingExportShim';
12991
12997
 
12992
- function system(magicString, { accessedGlobals, dependencies, exports: exports$1, hasExports, id, indent: t, intro, snippets, outro, usesTopLevelAwait }, { externalLiveBindings, freeze, name, generatedCode: { symbols }, strict, systemNullSetters }) {
12998
+ function system(magicString, { accessedGlobals, dependencies, exports, hasExports, id, indent: t, intro, snippets, outro, usesTopLevelAwait }, { externalLiveBindings, freeze, name, generatedCode: { symbols }, strict, systemNullSetters }) {
12993
12999
  throwOnPhase('system', id, dependencies);
12994
13000
  const { _, getFunctionIntro, getNonArrowFunctionIntro, n, s } = snippets;
12995
- const { importBindings, setters, starExcludes } = analyzeDependencies(dependencies, exports$1, t, snippets);
13001
+ const { importBindings, setters, starExcludes } = analyzeDependencies(dependencies, exports, t, snippets);
12996
13002
  const registeredName = name ? `'${name}',${_}` : '';
12997
13003
  const wrapperParameters = accessedGlobals.has('module')
12998
13004
  ? ['exports', 'module']
@@ -13029,15 +13035,15 @@ function system(magicString, { accessedGlobals, dependencies, exports: exports$1
13029
13035
  magicString
13030
13036
  .prepend(intro +
13031
13037
  getHelpersBlock(null, accessedGlobals, t, snippets, externalLiveBindings, freeze, symbols) +
13032
- getHoistedExportsBlock(exports$1, t, snippets))
13038
+ getHoistedExportsBlock(exports, t, snippets))
13033
13039
  .append(`${outro}${n}${n}` +
13034
- getSyntheticExportsBlock(exports$1, t, snippets) +
13035
- getMissingExportsBlock(exports$1, t, snippets))
13040
+ getSyntheticExportsBlock(exports, t, snippets) +
13041
+ getMissingExportsBlock(exports, t, snippets))
13036
13042
  .indent(`${t}${t}${t}`)
13037
13043
  .append(wrapperEnd)
13038
13044
  .prepend(wrapperStart);
13039
13045
  }
13040
- function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, getPropertyAccess, n }) {
13046
+ function analyzeDependencies(dependencies, exports, t, { _, cnst, getObject, getPropertyAccess, n }) {
13041
13047
  const importBindings = [];
13042
13048
  const setters = [];
13043
13049
  let starExcludes = null;
@@ -13071,7 +13077,7 @@ function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, g
13071
13077
  if (reexportedNames.length > 1 || hasStarReexport) {
13072
13078
  if (hasStarReexport) {
13073
13079
  if (!starExcludes) {
13074
- starExcludes = getStarExcludes({ dependencies, exports: exports$1 });
13080
+ starExcludes = getStarExcludes({ dependencies, exports });
13075
13081
  }
13076
13082
  reexportedNames.unshift([null, `__proto__:${_}null`]);
13077
13083
  const exportMapping = getObject(reexportedNames, { lineBreakIndent: null });
@@ -13091,8 +13097,8 @@ function analyzeDependencies(dependencies, exports$1, t, { _, cnst, getObject, g
13091
13097
  }
13092
13098
  return { importBindings, setters, starExcludes };
13093
13099
  }
13094
- const getStarExcludes = ({ dependencies, exports: exports$1 }) => {
13095
- const starExcludes = new Set(exports$1.map(expt => expt.exported));
13100
+ const getStarExcludes = ({ dependencies, exports }) => {
13101
+ const starExcludes = new Set(exports.map(expt => expt.exported));
13096
13102
  starExcludes.add('default');
13097
13103
  for (const { reexports } of dependencies) {
13098
13104
  if (reexports) {
@@ -13118,24 +13124,24 @@ const getStarExcludesBlock = (starExcludes, t, { _, cnst, getObject, n }) => {
13118
13124
  return '';
13119
13125
  };
13120
13126
  const getImportBindingsBlock = (importBindings, t, { _, n }) => (importBindings.length > 0 ? `${n}${t}var ${importBindings.join(`,${_}`)};` : '');
13121
- const getHoistedExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
13122
- function getExportsBlock(exports$1, t, { _, n }) {
13123
- if (exports$1.length === 0) {
13127
+ const getHoistedExportsBlock = (exports, t, snippets) => getExportsBlock(exports.filter(expt => expt.hoisted).map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
13128
+ function getExportsBlock(exports, t, { _, n }) {
13129
+ if (exports.length === 0) {
13124
13130
  return '';
13125
13131
  }
13126
- if (exports$1.length === 1) {
13127
- return `exports(${JSON.stringify(exports$1[0].name)},${_}${exports$1[0].value});${n}${n}`;
13132
+ if (exports.length === 1) {
13133
+ return `exports(${JSON.stringify(exports[0].name)},${_}${exports[0].value});${n}${n}`;
13128
13134
  }
13129
13135
  return (`exports({${n}` +
13130
- exports$1
13136
+ exports
13131
13137
  .map(({ name, value }) => `${t}${stringifyObjectKeyIfNeeded(name)}:${_}${value}`)
13132
13138
  .join(`,${n}`) +
13133
13139
  `${n}});${n}${n}`);
13134
13140
  }
13135
- const getSyntheticExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1
13141
+ const getSyntheticExportsBlock = (exports, t, snippets) => getExportsBlock(exports
13136
13142
  .filter(expt => expt.expression)
13137
13143
  .map(expt => ({ name: expt.exported, value: expt.local })), t, snippets);
13138
- const getMissingExportsBlock = (exports$1, t, snippets) => getExportsBlock(exports$1
13144
+ const getMissingExportsBlock = (exports, t, snippets) => getExportsBlock(exports
13139
13145
  .filter(expt => expt.local === MISSING_EXPORT_SHIM_VARIABLE)
13140
13146
  .map(expt => ({ name: expt.exported, value: MISSING_EXPORT_SHIM_VARIABLE })), t, snippets);
13141
13147
 
@@ -13151,7 +13157,7 @@ function safeAccess(name, globalVariable, { _, getPropertyAccess }) {
13151
13157
  .map(part => (propertyPath += getPropertyAccess(part)))
13152
13158
  .join(`${_}&&${_}`);
13153
13159
  }
13154
- 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 }) {
13160
+ 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 }) {
13155
13161
  const { _, cnst, getFunctionIntro, getNonArrowFunctionIntro, getPropertyAccess, n, s } = snippets;
13156
13162
  const factoryVariable = compact ? 'f' : 'factory';
13157
13163
  const globalVariable = compact ? 'g' : 'global';
@@ -13166,7 +13172,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
13166
13172
  const globalDeps = trimmedImports.map(module => globalProperty(module.globalName, globalVariable, getPropertyAccess));
13167
13173
  const factoryParameters = trimmedImports.map(m => m.name);
13168
13174
  if ((hasExports || noConflict) &&
13169
- (namedExportsMode || (hasExports && exports$1[0]?.local === 'exports.default'))) {
13175
+ (namedExportsMode || (hasExports && exports[0]?.local === 'exports.default'))) {
13170
13176
  amdDeps.unshift(`'exports'`);
13171
13177
  cjsDeps.unshift(`exports`);
13172
13178
  globalDeps.unshift(assignToDeepVariable(name, globalVariable, globals, `${extend ? `${globalProperty(name, globalVariable, getPropertyAccess)}${_}||${_}` : ''}{}`, snippets, log));
@@ -13234,7 +13240,7 @@ function umd(magicString, { accessedGlobals, dependencies, exports: exports$1, h
13234
13240
  })}{${useStrict}${n}`;
13235
13241
  const wrapperOutro = n + n + '}));';
13236
13242
  magicString.prepend(`${intro}${getInteropBlock(dependencies, interop, externalLiveBindings, freeze, symbols, accessedGlobals, t, snippets)}`);
13237
- const exportBlock = getExportBlock$1(exports$1, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
13243
+ const exportBlock = getExportBlock$1(exports, dependencies, namedExportsMode, interop, snippets, t, externalLiveBindings, reexportProtoFromExternal);
13238
13244
  let namespaceMarkers = getNamespaceMarkers(namedExportsMode && hasExports, esModule === true || (esModule === 'if-default-prop' && hasDefaultExport), symbols, snippets);
13239
13245
  if (namespaceMarkers) {
13240
13246
  namespaceMarkers = n + n + namespaceMarkers;
@@ -19817,7 +19823,7 @@ const DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT = {
19817
19823
  function deconflictChunk(modules, dependenciesToBeDeconflicted, imports, usedNames, format, interop, preserveModules, externalLiveBindings, chunkByModule, externalChunkByModule, syntheticExports, exportNamesByVariable, accessedGlobalsByScope, includedNamespaces) {
19818
19824
  const reversedModules = [...modules].reverse();
19819
19825
  for (const module of reversedModules) {
19820
- module.scope.addUsedOutsideNames(usedNames, accessedGlobalsByScope);
19826
+ module.scope.addUsedOutsideNames(usedNames, format, exportNamesByVariable, accessedGlobalsByScope);
19821
19827
  }
19822
19828
  deconflictTopLevelVariables(usedNames, reversedModules, includedNamespaces);
19823
19829
  DECONFLICT_IMPORTED_VARIABLES_BY_FORMAT[format](usedNames, imports, dependenciesToBeDeconflicted, interop, preserveModules, externalLiveBindings, chunkByModule, externalChunkByModule, syntheticExports);
@@ -19938,9 +19944,9 @@ function deconflictTopLevelVariables(usedNames, modules, includedNamespaces) {
19938
19944
  }
19939
19945
  }
19940
19946
 
19941
- function assignExportsToMangledNames(exports$1, exportsByName, exportNamesByVariable) {
19947
+ function assignExportsToMangledNames(exports, exportsByName, exportNamesByVariable) {
19942
19948
  let nameIndex = 0;
19943
- for (const variable of exports$1) {
19949
+ for (const variable of exports) {
19944
19950
  let [exportName] = variable.name;
19945
19951
  if (exportsByName.has(exportName)) {
19946
19952
  do {
@@ -19956,8 +19962,8 @@ function assignExportsToMangledNames(exports$1, exportsByName, exportNamesByVari
19956
19962
  exportNamesByVariable.set(variable, [exportName]);
19957
19963
  }
19958
19964
  }
19959
- function assignExportsToNames(exports$1, exportsByName, exportNamesByVariable) {
19960
- for (const variable of exports$1) {
19965
+ function assignExportsToNames(exports, exportsByName, exportNamesByVariable) {
19966
+ for (const variable of exports) {
19961
19967
  let nameIndex = 0;
19962
19968
  let exportName = variable.name;
19963
19969
  while (exportsByName.has(exportName)) {
@@ -20630,7 +20636,7 @@ class Chunk {
20630
20636
  return 'chunk';
20631
20637
  }
20632
20638
  getChunkExportDeclarations(format) {
20633
- const exports$1 = [];
20639
+ const exports = [];
20634
20640
  for (const exportName of this.getExportNames()) {
20635
20641
  if (exportName[0] === '*')
20636
20642
  continue;
@@ -20675,14 +20681,14 @@ class Chunk {
20675
20681
  local = variable.renderName;
20676
20682
  }
20677
20683
  }
20678
- exports$1.push({
20684
+ exports.push({
20679
20685
  exported: exportName,
20680
20686
  expression,
20681
20687
  hoisted,
20682
20688
  local
20683
20689
  });
20684
20690
  }
20685
- return exports$1;
20691
+ return exports;
20686
20692
  }
20687
20693
  getDependenciesToBeDeconflicted(addNonNamespacesAndInteropHelpers, addDependenciesWithoutBindings, interop) {
20688
20694
  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
 
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.60.2",
3
+ "version": "4.60.3",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -114,31 +114,31 @@
114
114
  "homepage": "https://rollupjs.org/",
115
115
  "optionalDependencies": {
116
116
  "fsevents": "~2.3.2",
117
- "@rollup/rollup-darwin-arm64": "4.60.2",
118
- "@rollup/rollup-android-arm64": "4.60.2",
119
- "@rollup/rollup-win32-arm64-msvc": "4.60.2",
120
- "@rollup/rollup-freebsd-arm64": "4.60.2",
121
- "@rollup/rollup-linux-arm64-gnu": "4.60.2",
122
- "@rollup/rollup-linux-arm64-musl": "4.60.2",
123
- "@rollup/rollup-android-arm-eabi": "4.60.2",
124
- "@rollup/rollup-linux-arm-gnueabihf": "4.60.2",
125
- "@rollup/rollup-linux-arm-musleabihf": "4.60.2",
126
- "@rollup/rollup-win32-ia32-msvc": "4.60.2",
127
- "@rollup/rollup-linux-loong64-gnu": "4.60.2",
128
- "@rollup/rollup-linux-loong64-musl": "4.60.2",
129
- "@rollup/rollup-linux-riscv64-gnu": "4.60.2",
130
- "@rollup/rollup-linux-riscv64-musl": "4.60.2",
131
- "@rollup/rollup-linux-ppc64-gnu": "4.60.2",
132
- "@rollup/rollup-linux-ppc64-musl": "4.60.2",
133
- "@rollup/rollup-linux-s390x-gnu": "4.60.2",
134
- "@rollup/rollup-darwin-x64": "4.60.2",
135
- "@rollup/rollup-win32-x64-gnu": "4.60.2",
136
- "@rollup/rollup-win32-x64-msvc": "4.60.2",
137
- "@rollup/rollup-freebsd-x64": "4.60.2",
138
- "@rollup/rollup-linux-x64-gnu": "4.60.2",
139
- "@rollup/rollup-linux-x64-musl": "4.60.2",
140
- "@rollup/rollup-openbsd-x64": "4.60.2",
141
- "@rollup/rollup-openharmony-arm64": "4.60.2"
117
+ "@rollup/rollup-darwin-arm64": "4.60.3",
118
+ "@rollup/rollup-android-arm64": "4.60.3",
119
+ "@rollup/rollup-win32-arm64-msvc": "4.60.3",
120
+ "@rollup/rollup-freebsd-arm64": "4.60.3",
121
+ "@rollup/rollup-linux-arm64-gnu": "4.60.3",
122
+ "@rollup/rollup-linux-arm64-musl": "4.60.3",
123
+ "@rollup/rollup-android-arm-eabi": "4.60.3",
124
+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.3",
125
+ "@rollup/rollup-linux-arm-musleabihf": "4.60.3",
126
+ "@rollup/rollup-win32-ia32-msvc": "4.60.3",
127
+ "@rollup/rollup-linux-loong64-gnu": "4.60.3",
128
+ "@rollup/rollup-linux-loong64-musl": "4.60.3",
129
+ "@rollup/rollup-linux-riscv64-gnu": "4.60.3",
130
+ "@rollup/rollup-linux-riscv64-musl": "4.60.3",
131
+ "@rollup/rollup-linux-ppc64-gnu": "4.60.3",
132
+ "@rollup/rollup-linux-ppc64-musl": "4.60.3",
133
+ "@rollup/rollup-linux-s390x-gnu": "4.60.3",
134
+ "@rollup/rollup-darwin-x64": "4.60.3",
135
+ "@rollup/rollup-win32-x64-gnu": "4.60.3",
136
+ "@rollup/rollup-win32-x64-msvc": "4.60.3",
137
+ "@rollup/rollup-freebsd-x64": "4.60.3",
138
+ "@rollup/rollup-linux-x64-gnu": "4.60.3",
139
+ "@rollup/rollup-linux-x64-musl": "4.60.3",
140
+ "@rollup/rollup-openbsd-x64": "4.60.3",
141
+ "@rollup/rollup-openharmony-arm64": "4.60.3"
142
142
  },
143
143
  "dependencies": {
144
144
  "@types/estree": "1.0.8"
@@ -150,9 +150,11 @@
150
150
  "@codemirror/commands": "^6.10.3",
151
151
  "@codemirror/lang-javascript": "^6.2.5",
152
152
  "@codemirror/language": "^6.12.3",
153
- "@codemirror/search": "^6.6.0",
153
+ "@codemirror/search": "^6.7.0",
154
154
  "@codemirror/state": "^6.6.0",
155
- "@codemirror/view": "^6.41.0",
155
+ "@codemirror/view": "^6.41.1",
156
+ "@emnapi/core": "^1.10.0",
157
+ "@emnapi/runtime": "^1.10.0",
156
158
  "@eslint/js": "^10.0.1",
157
159
  "@inquirer/prompts": "^7.10.1",
158
160
  "@jridgewell/sourcemap-codec": "^1.5.5",
@@ -173,7 +175,7 @@
173
175
  "@types/picomatch": "^4.0.3",
174
176
  "@types/semver": "^7.7.1",
175
177
  "@types/yargs-parser": "^21.0.3",
176
- "@vue/language-server": "^3.2.6",
178
+ "@vue/language-server": "^3.2.7",
177
179
  "acorn": "^8.16.0",
178
180
  "acorn-import-assertions": "^1.9.0",
179
181
  "acorn-import-phases": "^1.0.4",
@@ -186,11 +188,11 @@
186
188
  "date-time": "^4.0.0",
187
189
  "es5-shim": "^4.6.7",
188
190
  "es6-shim": "^0.35.8",
189
- "eslint": "^10.2.0",
191
+ "eslint": "^10.2.1",
190
192
  "eslint-config-prettier": "^10.1.8",
191
193
  "eslint-plugin-prettier": "^5.5.5",
192
194
  "eslint-plugin-unicorn": "^64.0.0",
193
- "eslint-plugin-vue": "^10.8.0",
195
+ "eslint-plugin-vue": "^10.9.0",
194
196
  "fixturify": "^3.0.0",
195
197
  "flru": "^1.0.2",
196
198
  "fs-extra": "^11.3.4",
@@ -201,7 +203,7 @@
201
203
  "lint-staged": "^16.4.0",
202
204
  "locate-character": "^3.0.0",
203
205
  "magic-string": "^0.30.21",
204
- "memfs": "^4.57.1",
206
+ "memfs": "^4.57.2",
205
207
  "mocha": "11.7.5",
206
208
  "nodemon": "^3.1.14",
207
209
  "npm-audit-resolver": "^3.0.0-RC.0",
@@ -210,12 +212,14 @@
210
212
  "picocolors": "^1.1.1",
211
213
  "picomatch": "^4.0.4",
212
214
  "pinia": "^3.0.4",
213
- "prettier": "^3.8.2",
215
+ "prettier": "^3.8.3",
214
216
  "prettier-plugin-organize-imports": "^4.3.0",
215
217
  "pretty-bytes": "^7.1.0",
216
218
  "pretty-ms": "^9.3.0",
219
+ "react": "^18.3.1",
220
+ "react-dom": "^18.3.1",
217
221
  "requirejs": "^2.3.8",
218
- "rollup": "^4.60.1",
222
+ "rollup": "^4.60.2",
219
223
  "rollup-plugin-license": "^3.7.1",
220
224
  "semver": "^7.7.4",
221
225
  "shx": "^0.4.0",
@@ -223,20 +227,20 @@
223
227
  "source-map": "^0.7.6",
224
228
  "source-map-support": "^0.5.21",
225
229
  "systemjs": "^6.15.1",
226
- "terser": "^5.46.1",
230
+ "terser": "^5.46.2",
227
231
  "tslib": "^2.8.1",
228
232
  "typescript": "^5.9.3",
229
- "typescript-eslint": "^8.58.2",
233
+ "typescript-eslint": "^8.59.1",
230
234
  "vite": "^7.3.2",
231
235
  "vitepress": "^1.6.4",
232
- "vue": "^3.5.32",
236
+ "vue": "^3.5.33",
233
237
  "vue-eslint-parser": "^10.4.0",
234
- "vue-tsc": "^3.2.6",
238
+ "vue-tsc": "^3.2.7",
235
239
  "wasm-pack": "^0.14.0",
236
240
  "yargs-parser": "^21.1.1"
237
241
  },
238
242
  "overrides": {
239
- "axios": "^1.15.0",
243
+ "axios": "^1.15.2",
240
244
  "esbuild": ">0.24.2",
241
245
  "lodash-es": ">4.17.22",
242
246
  "path-scurry": {
@@ -248,7 +252,11 @@
248
252
  "vite": "$vite"
249
253
  },
250
254
  "comments": {
251
- "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges"
255
+ "vue-tsc": "This is necessary so that prettier-plugin-organize-imports works correctly in Vue templatges",
256
+ "@emnapi/core": "If missing this fails npm install for Linux ARM",
257
+ "@emnapi/runtime": "If missing this fails npm install for Linux ARM",
258
+ "react": "If missing this fails npm install for Linux ARM",
259
+ "react-dom": "If missing this fails npm install for Linux ARM"
252
260
  },
253
261
  "files": [
254
262
  "dist/*.node",