rollup 4.64.7 → 4.64.8

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.64.7
5
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
4
+ Rollup.js v4.64.8
5
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7\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.64.8\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.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7";
30
+ var version = "4.64.8";
31
31
  const pkg = {
32
32
  version: version};
33
33
 
@@ -21387,8 +21387,8 @@ async function renderChunks(chunks, bundle, pluginDriver, outputOptions, log) {
21387
21387
  timeStart('transform chunks', 2);
21388
21388
  const getHash = hasherByType[outputOptions.hashCharacters];
21389
21389
  const chunkGraph = getChunkGraph(chunks);
21390
- const { hashDependenciesByPlaceholder, initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, placeholders, renderedChunksByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
21391
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, getHash);
21390
+ const { hashDependenciesByPlaceholder, initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, placeholders, renderedChunksByPlaceholder, usedFileNames } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log, bundle);
21391
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, usedFileNames, getHash);
21392
21392
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
21393
21393
  timeEnd('transform chunks', 2);
21394
21394
  }
@@ -21468,7 +21468,7 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
21468
21468
  map
21469
21469
  };
21470
21470
  }
21471
- async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
21471
+ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log, bundle) {
21472
21472
  const nonHashedChunksWithPlaceholders = [];
21473
21473
  const renderedChunksByPlaceholder = new Map();
21474
21474
  const hashDependenciesByPlaceholder = new Map();
@@ -21478,51 +21478,93 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
21478
21478
  if (hashPlaceholder)
21479
21479
  placeholders.add(hashPlaceholder);
21480
21480
  }
21481
- await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
21481
+ const transformedChunks = await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
21482
21482
  const transformedChunk = {
21483
21483
  chunk,
21484
21484
  fileName,
21485
21485
  sourcemapFileName: preliminarySourcemapFileName?.fileName ?? null,
21486
21486
  ...(await transformChunk(magicString, fileName, usedModules, chunkGraph, outputOptions, pluginDriver, log))
21487
21487
  };
21488
- const { code, map } = transformedChunk;
21488
+ const hashAugmentation = hashPlaceholder
21489
+ ? pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => augmentation + (pluginHash || ''))
21490
+ : '';
21491
+ return {
21492
+ hashAugmentation,
21493
+ hashPlaceholder,
21494
+ preliminarySourcemapFileName,
21495
+ transformedChunk
21496
+ };
21497
+ }));
21498
+ const usedFileNames = new Set(bundle[lowercaseBundleKeys]);
21499
+ for (const { transformedChunk, hashPlaceholder, preliminarySourcemapFileName, hashAugmentation } of transformedChunks) {
21500
+ const { map } = transformedChunk;
21501
+ const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
21502
+ if (map && sourcemapHashPlaceholder) {
21503
+ const { transformedCode: normalizedSourcemap } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(map.toString(), placeholders);
21504
+ initialHashesByPlaceholder.set(sourcemapHashPlaceholder, outputOptions.sourcemap === 'inline'
21505
+ ? getHash(normalizedSourcemap).slice(0, sourcemapHashPlaceholder.length)
21506
+ : getUniqueHash(normalizedSourcemap, preliminarySourcemapFileName.fileName, sourcemapHashPlaceholder, usedFileNames, getHash));
21507
+ }
21489
21508
  if (hashPlaceholder) {
21490
- // To create a reproducible content-only hash, all placeholders are
21491
- // replaced with the same value before hashing
21492
- const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
21493
- let contentToHash = transformedCode;
21494
- const hashAugmentation = pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => {
21495
- if (pluginHash) {
21496
- augmentation += pluginHash;
21497
- }
21498
- return augmentation;
21499
- });
21500
- if (hashAugmentation) {
21501
- contentToHash += hashAugmentation;
21502
- }
21503
21509
  renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
21504
- hashDependenciesByPlaceholder.set(hashPlaceholder, {
21505
- containedPlaceholders,
21506
- contentHash: getHash(contentToHash)
21507
- });
21510
+ hashDependenciesByPlaceholder.set(hashPlaceholder, getChunkHash(transformedChunk, outputOptions, getHash, placeholders, initialHashesByPlaceholder, hashAugmentation));
21508
21511
  }
21509
21512
  else {
21510
21513
  nonHashedChunksWithPlaceholders.push(transformedChunk);
21511
21514
  }
21512
- const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
21513
- if (map && sourcemapHashPlaceholder) {
21514
- initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
21515
- }
21516
- }));
21515
+ }
21517
21516
  return {
21518
21517
  hashDependenciesByPlaceholder,
21519
21518
  initialHashesByPlaceholder,
21520
21519
  nonHashedChunksWithPlaceholders,
21521
21520
  placeholders,
21522
- renderedChunksByPlaceholder
21521
+ renderedChunksByPlaceholder,
21522
+ usedFileNames
21523
21523
  };
21524
21524
  }
21525
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, getHash) {
21525
+ function getChunkHash({ code, map, fileName, sourcemapFileName }, outputOptions, getHash, placeholders, initialHashesByPlaceholder, hashAugmentation) {
21526
+ // To create a reproducible content-only hash, all placeholders are
21527
+ // replaced with the same value before hashing
21528
+ const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
21529
+ let contentToHash = transformedCode;
21530
+ if (map && outputOptions.sourcemap !== 'hidden') {
21531
+ // Normalize raw map data and file names before base64 or URL encoding
21532
+ // can hide placeholders and make hashes depend on chunk order.
21533
+ let sourcemapPlaceholders;
21534
+ if (outputOptions.sourcemap === 'inline') {
21535
+ const { containedPlaceholders: inlinePlaceholders, transformedCode: sourcemapJson } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(map.toString(), placeholders);
21536
+ sourcemapPlaceholders = inlinePlaceholders;
21537
+ contentToHash += `//# ${SOURCEMAPPING_URL}=data:application/json,${sourcemapJson}\n`;
21538
+ }
21539
+ else {
21540
+ const { containedPlaceholders: externalPlaceholders, transformedCode: normalizedFileName } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(replacePlaceholders(sourcemapFileName ?? `${fileName}.map`, initialHashesByPlaceholder), placeholders);
21541
+ sourcemapPlaceholders = externalPlaceholders;
21542
+ contentToHash += getSourceMapComment(normalizedFileName, map, outputOptions.sourcemap, outputOptions.sourcemapBaseUrl);
21543
+ }
21544
+ for (const placeholder of sourcemapPlaceholders) {
21545
+ containedPlaceholders.add(placeholder);
21546
+ }
21547
+ }
21548
+ if (hashAugmentation) {
21549
+ contentToHash += hashAugmentation;
21550
+ }
21551
+ return { containedPlaceholders, contentHash: getHash(contentToHash) };
21552
+ }
21553
+ function getUniqueHash(contentToHash, fileName, placeholder, usedFileNames, getHash) {
21554
+ let finalFileName;
21555
+ let finalHash;
21556
+ do {
21557
+ // In case of a hash collision, create a hash of the hash
21558
+ if (finalHash) {
21559
+ contentToHash = finalHash;
21560
+ }
21561
+ finalHash = getHash(contentToHash).slice(0, placeholder.length);
21562
+ finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash).toLowerCase();
21563
+ } while (usedFileNames.has(finalFileName));
21564
+ usedFileNames.add(finalFileName);
21565
+ return finalHash;
21566
+ }
21567
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, usedFileNames, getHash) {
21526
21568
  const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
21527
21569
  for (const placeholder of placeholders) {
21528
21570
  const { fileName } = renderedChunksByPlaceholder.get(placeholder);
@@ -21536,17 +21578,8 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
21536
21578
  hashDependencyPlaceholders.add(containedPlaceholder);
21537
21579
  }
21538
21580
  }
21539
- let finalFileName;
21540
- let finalHash;
21541
- do {
21542
- // In case of a hash collision, create a hash of the hash
21543
- if (finalHash) {
21544
- contentToHash = finalHash;
21545
- }
21546
- finalHash = getHash(contentToHash).slice(0, placeholder.length);
21547
- finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
21548
- } while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
21549
- bundle[finalFileName] = FILE_PLACEHOLDER;
21581
+ const finalHash = getUniqueHash(contentToHash, fileName, placeholder, usedFileNames, getHash);
21582
+ bundle[replaceSinglePlaceholder(fileName, placeholder, finalHash)] = FILE_PLACEHOLDER;
21550
21583
  hashesByPlaceholder.set(placeholder, finalHash);
21551
21584
  }
21552
21585
  return hashesByPlaceholder;
@@ -21584,15 +21617,7 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
21584
21617
  }
21585
21618
  }
21586
21619
  function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, sourcemapBaseUrl }) {
21587
- let url;
21588
- if (sourcemap === 'inline') {
21589
- url = map.toUrl();
21590
- }
21591
- else {
21592
- const sourcemapFileName = basename(fileName);
21593
- url = sourcemapBaseUrl
21594
- ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
21595
- : sourcemapFileName;
21620
+ if (sourcemap !== 'inline') {
21596
21621
  pluginDriver.emitFile({
21597
21622
  fileName,
21598
21623
  originalFileName: null,
@@ -21600,6 +21625,14 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
21600
21625
  type: 'asset'
21601
21626
  });
21602
21627
  }
21628
+ return getSourceMapComment(fileName, map, sourcemap, sourcemapBaseUrl);
21629
+ }
21630
+ function getSourceMapComment(fileName, map, sourcemap, sourcemapBaseUrl) {
21631
+ const url = sourcemap === 'inline'
21632
+ ? map.toUrl()
21633
+ : sourcemapBaseUrl
21634
+ ? new URL(basename(fileName), sourcemapBaseUrl).toString()
21635
+ : basename(fileName);
21603
21636
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
21604
21637
  }
21605
21638
  function calculateDebugIdAndGetComment(code, map) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -12,22 +12,40 @@ import { resolve, dirname, basename, extname } from 'node:path';
12
12
 
13
13
  // Replaces node:path in the browser build. Keep the behavior consistent with
14
14
  // the Node build so that both builds handle paths the same way.
15
+ const ABSOLUTE_PATH_REGEX$1 = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
15
16
  const ANY_SLASH_REGEX = /[/\\]/;
17
+ const DRIVE_REGEX = /^[A-Za-z]:$/;
18
+ function isAbsolute$1(path) {
19
+ return ABSOLUTE_PATH_REGEX$1.test(path);
20
+ }
21
+ function normalizePathSegments(parts, absolute) {
22
+ const normalized = [];
23
+ // A drive like "C:" is the root of the path, so ".." cannot climb above it
24
+ const root = DRIVE_REGEX.test(parts[0]) ? 1 : 0;
25
+ for (const part of parts) {
26
+ if (part === '..') {
27
+ if (normalized.length > root && normalized[normalized.length - 1] !== '..') {
28
+ normalized.pop();
29
+ }
30
+ else if (!absolute && root === 0) {
31
+ normalized.push('..');
32
+ }
33
+ }
34
+ else if (part !== '.' && part !== '') {
35
+ normalized.push(part);
36
+ }
37
+ }
38
+ return normalized;
39
+ }
16
40
  function relative(from, to) {
17
- const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
18
- const toParts = to.split(ANY_SLASH_REGEX).filter(Boolean);
19
- if (fromParts[0] === '.')
20
- fromParts.shift();
21
- if (toParts[0] === '.')
22
- toParts.shift();
41
+ // "." and ".." segments are collapsed on both sides first, as node:path
42
+ // does, so that "/a/./b" and "/a/b" describe the same location.
43
+ const fromParts = normalizePathSegments(from.split(ANY_SLASH_REGEX), isAbsolute$1(from));
44
+ const toParts = normalizePathSegments(to.split(ANY_SLASH_REGEX), isAbsolute$1(to));
23
45
  while (fromParts[0] && toParts[0] && fromParts[0] === toParts[0]) {
24
46
  fromParts.shift();
25
47
  toParts.shift();
26
48
  }
27
- while (toParts[0] === '..' && fromParts.length > 0) {
28
- toParts.shift();
29
- fromParts.pop();
30
- }
31
49
  while (fromParts.pop()) {
32
50
  toParts.unshift('..');
33
51
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -153,10 +153,10 @@ function getCodeFrame(source, line, column) {
153
153
  .join('\n');
154
154
  }
155
155
 
156
- const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
156
+ const ABSOLUTE_PATH_REGEX$1 = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
157
157
  const RELATIVE_PATH_REGEX = /^\.?\.(\/|$)/;
158
- function isAbsolute(path) {
159
- return ABSOLUTE_PATH_REGEX.test(path);
158
+ function isAbsolute$1(path) {
159
+ return ABSOLUTE_PATH_REGEX$1.test(path);
160
160
  }
161
161
  function isRelative(path) {
162
162
  return RELATIVE_PATH_REGEX.test(path);
@@ -180,22 +180,40 @@ function printQuotedStringList(list, verbs) {
180
180
 
181
181
  // Replaces node:path in the browser build. Keep the behavior consistent with
182
182
  // the Node build so that both builds handle paths the same way.
183
+ const ABSOLUTE_PATH_REGEX = /^(?:\/|(?:[A-Za-z]:)?[/\\|])/;
183
184
  const ANY_SLASH_REGEX = /[/\\]/;
185
+ const DRIVE_REGEX = /^[A-Za-z]:$/;
186
+ function isAbsolute(path) {
187
+ return ABSOLUTE_PATH_REGEX.test(path);
188
+ }
189
+ function normalizePathSegments(parts, absolute) {
190
+ const normalized = [];
191
+ // A drive like "C:" is the root of the path, so ".." cannot climb above it
192
+ const root = DRIVE_REGEX.test(parts[0]) ? 1 : 0;
193
+ for (const part of parts) {
194
+ if (part === '..') {
195
+ if (normalized.length > root && normalized[normalized.length - 1] !== '..') {
196
+ normalized.pop();
197
+ }
198
+ else if (!absolute && root === 0) {
199
+ normalized.push('..');
200
+ }
201
+ }
202
+ else if (part !== '.' && part !== '') {
203
+ normalized.push(part);
204
+ }
205
+ }
206
+ return normalized;
207
+ }
184
208
  function relative(from, to) {
185
- const fromParts = from.split(ANY_SLASH_REGEX).filter(Boolean);
186
- const toParts = to.split(ANY_SLASH_REGEX).filter(Boolean);
187
- if (fromParts[0] === '.')
188
- fromParts.shift();
189
- if (toParts[0] === '.')
190
- toParts.shift();
209
+ // "." and ".." segments are collapsed on both sides first, as node:path
210
+ // does, so that "/a/./b" and "/a/b" describe the same location.
211
+ const fromParts = normalizePathSegments(from.split(ANY_SLASH_REGEX), isAbsolute(from));
212
+ const toParts = normalizePathSegments(to.split(ANY_SLASH_REGEX), isAbsolute(to));
191
213
  while (fromParts[0] && toParts[0] && fromParts[0] === toParts[0]) {
192
214
  fromParts.shift();
193
215
  toParts.shift();
194
216
  }
195
- while (toParts[0] === '..' && fromParts.length > 0) {
196
- toParts.shift();
197
- fromParts.pop();
198
- }
199
217
  while (fromParts.pop()) {
200
218
  toParts.unshift('..');
201
219
  }
@@ -207,13 +225,13 @@ function getAliasName(id) {
207
225
  return base.slice(0, Math.max(0, base.length - path.extname(id).length));
208
226
  }
209
227
  function relativeId(id) {
210
- if (!isAbsolute(id))
228
+ if (!isAbsolute$1(id))
211
229
  return id;
212
230
  return relative(path.resolve(), id);
213
231
  }
214
232
  function isPathFragment(name) {
215
233
  // starting with "/", "./", "../", "C:/"
216
- return (name[0] === '/' || (name[0] === '.' && (name[1] === '/' || name[1] === '.')) || isAbsolute(name));
234
+ return (name[0] === '/' || (name[0] === '.' && (name[1] === '/' || name[1] === '.')) || isAbsolute$1(name));
217
235
  }
218
236
  const UPPER_DIR_REGEX = /^(\.\.\/)*\.\.$/;
219
237
  function getImportPath(importerId, targetPath, stripJsExtension, ensureFileName) {
@@ -2253,7 +2271,7 @@ exports.getAstBuffer = getAstBuffer;
2253
2271
  exports.getImportPath = getImportPath;
2254
2272
  exports.getRollupError = getRollupError;
2255
2273
  exports.getRollupUrl = getRollupUrl;
2256
- exports.isAbsolute = isAbsolute;
2274
+ exports.isAbsolute = isAbsolute$1;
2257
2275
  exports.isPathFragment = isPathFragment;
2258
2276
  exports.isRelative = isRelative;
2259
2277
  exports.isValidUrl = isValidUrl;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7";
45
+ var version = "4.64.8";
46
46
  const package_ = {
47
47
  version: version};
48
48
 
@@ -22863,8 +22863,8 @@ async function renderChunks(chunks, bundle, pluginDriver, outputOptions, log) {
22863
22863
  timeStart('transform chunks', 2);
22864
22864
  const getHash = hasherByType[outputOptions.hashCharacters];
22865
22865
  const chunkGraph = getChunkGraph(chunks);
22866
- const { hashDependenciesByPlaceholder, initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, placeholders, renderedChunksByPlaceholder } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log);
22867
- const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, getHash);
22866
+ const { hashDependenciesByPlaceholder, initialHashesByPlaceholder, nonHashedChunksWithPlaceholders, placeholders, renderedChunksByPlaceholder, usedFileNames } = await transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log, bundle);
22867
+ const hashesByPlaceholder = generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, usedFileNames, getHash);
22868
22868
  addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bundle, nonHashedChunksWithPlaceholders, pluginDriver, outputOptions);
22869
22869
  timeEnd('transform chunks', 2);
22870
22870
  }
@@ -22944,7 +22944,7 @@ async function transformChunk(magicString, fileName, usedModules, chunkGraph, op
22944
22944
  map
22945
22945
  };
22946
22946
  }
22947
- async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log) {
22947
+ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGraph, outputOptions, pluginDriver, getHash, log, bundle) {
22948
22948
  const nonHashedChunksWithPlaceholders = [];
22949
22949
  const renderedChunksByPlaceholder = new Map();
22950
22950
  const hashDependenciesByPlaceholder = new Map();
@@ -22954,51 +22954,93 @@ async function transformChunksAndGenerateContentHashes(renderedChunks, chunkGrap
22954
22954
  if (hashPlaceholder)
22955
22955
  placeholders.add(hashPlaceholder);
22956
22956
  }
22957
- await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
22957
+ const transformedChunks = await Promise.all(renderedChunks.map(async ({ chunk, preliminaryFileName: { fileName, hashPlaceholder }, preliminarySourcemapFileName, magicString, usedModules }) => {
22958
22958
  const transformedChunk = {
22959
22959
  chunk,
22960
22960
  fileName,
22961
22961
  sourcemapFileName: preliminarySourcemapFileName?.fileName ?? null,
22962
22962
  ...(await transformChunk(magicString, fileName, usedModules, chunkGraph, outputOptions, pluginDriver, log))
22963
22963
  };
22964
- const { code, map } = transformedChunk;
22964
+ const hashAugmentation = hashPlaceholder
22965
+ ? pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => augmentation + (pluginHash || ''))
22966
+ : '';
22967
+ return {
22968
+ hashAugmentation,
22969
+ hashPlaceholder,
22970
+ preliminarySourcemapFileName,
22971
+ transformedChunk
22972
+ };
22973
+ }));
22974
+ const usedFileNames = new Set(bundle[lowercaseBundleKeys]);
22975
+ for (const { transformedChunk, hashPlaceholder, preliminarySourcemapFileName, hashAugmentation } of transformedChunks) {
22976
+ const { map } = transformedChunk;
22977
+ const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
22978
+ if (map && sourcemapHashPlaceholder) {
22979
+ const { transformedCode: normalizedSourcemap } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(map.toString(), placeholders);
22980
+ initialHashesByPlaceholder.set(sourcemapHashPlaceholder, outputOptions.sourcemap === 'inline'
22981
+ ? getHash(normalizedSourcemap).slice(0, sourcemapHashPlaceholder.length)
22982
+ : getUniqueHash(normalizedSourcemap, preliminarySourcemapFileName.fileName, sourcemapHashPlaceholder, usedFileNames, getHash));
22983
+ }
22965
22984
  if (hashPlaceholder) {
22966
- // To create a reproducible content-only hash, all placeholders are
22967
- // replaced with the same value before hashing
22968
- const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
22969
- let contentToHash = transformedCode;
22970
- const hashAugmentation = pluginDriver.hookReduceValueSync('augmentChunkHash', '', [chunk.getRenderedChunkInfo()], (augmentation, pluginHash) => {
22971
- if (pluginHash) {
22972
- augmentation += pluginHash;
22973
- }
22974
- return augmentation;
22975
- });
22976
- if (hashAugmentation) {
22977
- contentToHash += hashAugmentation;
22978
- }
22979
22985
  renderedChunksByPlaceholder.set(hashPlaceholder, transformedChunk);
22980
- hashDependenciesByPlaceholder.set(hashPlaceholder, {
22981
- containedPlaceholders,
22982
- contentHash: getHash(contentToHash)
22983
- });
22986
+ hashDependenciesByPlaceholder.set(hashPlaceholder, getChunkHash(transformedChunk, outputOptions, getHash, placeholders, initialHashesByPlaceholder, hashAugmentation));
22984
22987
  }
22985
22988
  else {
22986
22989
  nonHashedChunksWithPlaceholders.push(transformedChunk);
22987
22990
  }
22988
- const sourcemapHashPlaceholder = preliminarySourcemapFileName?.hashPlaceholder;
22989
- if (map && sourcemapHashPlaceholder) {
22990
- initialHashesByPlaceholder.set(preliminarySourcemapFileName.hashPlaceholder, getHash(map.toString()).slice(0, preliminarySourcemapFileName.hashPlaceholder.length));
22991
- }
22992
- }));
22991
+ }
22993
22992
  return {
22994
22993
  hashDependenciesByPlaceholder,
22995
22994
  initialHashesByPlaceholder,
22996
22995
  nonHashedChunksWithPlaceholders,
22997
22996
  placeholders,
22998
- renderedChunksByPlaceholder
22997
+ renderedChunksByPlaceholder,
22998
+ usedFileNames
22999
22999
  };
23000
23000
  }
23001
- function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, getHash) {
23001
+ function getChunkHash({ code, map, fileName, sourcemapFileName }, outputOptions, getHash, placeholders, initialHashesByPlaceholder, hashAugmentation) {
23002
+ // To create a reproducible content-only hash, all placeholders are
23003
+ // replaced with the same value before hashing
23004
+ const { containedPlaceholders, transformedCode } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(code, placeholders);
23005
+ let contentToHash = transformedCode;
23006
+ if (map && outputOptions.sourcemap !== 'hidden') {
23007
+ // Normalize raw map data and file names before base64 or URL encoding
23008
+ // can hide placeholders and make hashes depend on chunk order.
23009
+ let sourcemapPlaceholders;
23010
+ if (outputOptions.sourcemap === 'inline') {
23011
+ const { containedPlaceholders: inlinePlaceholders, transformedCode: sourcemapJson } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(map.toString(), placeholders);
23012
+ sourcemapPlaceholders = inlinePlaceholders;
23013
+ contentToHash += `//# ${SOURCEMAPPING_URL}=data:application/json,${sourcemapJson}\n`;
23014
+ }
23015
+ else {
23016
+ const { containedPlaceholders: externalPlaceholders, transformedCode: normalizedFileName } = replacePlaceholdersWithDefaultAndGetContainedPlaceholders(replacePlaceholders(sourcemapFileName ?? `${fileName}.map`, initialHashesByPlaceholder), placeholders);
23017
+ sourcemapPlaceholders = externalPlaceholders;
23018
+ contentToHash += getSourceMapComment(normalizedFileName, map, outputOptions.sourcemap, outputOptions.sourcemapBaseUrl);
23019
+ }
23020
+ for (const placeholder of sourcemapPlaceholders) {
23021
+ containedPlaceholders.add(placeholder);
23022
+ }
23023
+ }
23024
+ if (hashAugmentation) {
23025
+ contentToHash += hashAugmentation;
23026
+ }
23027
+ return { containedPlaceholders, contentHash: getHash(contentToHash) };
23028
+ }
23029
+ function getUniqueHash(contentToHash, fileName, placeholder, usedFileNames, getHash) {
23030
+ let finalFileName;
23031
+ let finalHash;
23032
+ do {
23033
+ // In case of a hash collision, create a hash of the hash
23034
+ if (finalHash) {
23035
+ contentToHash = finalHash;
23036
+ }
23037
+ finalHash = getHash(contentToHash).slice(0, placeholder.length);
23038
+ finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash).toLowerCase();
23039
+ } while (usedFileNames.has(finalFileName));
23040
+ usedFileNames.add(finalFileName);
23041
+ return finalHash;
23042
+ }
23043
+ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlaceholder, initialHashesByPlaceholder, placeholders, bundle, usedFileNames, getHash) {
23002
23044
  const hashesByPlaceholder = new Map(initialHashesByPlaceholder);
23003
23045
  for (const placeholder of placeholders) {
23004
23046
  const { fileName } = renderedChunksByPlaceholder.get(placeholder);
@@ -23012,17 +23054,8 @@ function generateFinalHashes(renderedChunksByPlaceholder, hashDependenciesByPlac
23012
23054
  hashDependencyPlaceholders.add(containedPlaceholder);
23013
23055
  }
23014
23056
  }
23015
- let finalFileName;
23016
- let finalHash;
23017
- do {
23018
- // In case of a hash collision, create a hash of the hash
23019
- if (finalHash) {
23020
- contentToHash = finalHash;
23021
- }
23022
- finalHash = getHash(contentToHash).slice(0, placeholder.length);
23023
- finalFileName = replaceSinglePlaceholder(fileName, placeholder, finalHash);
23024
- } while (bundle[lowercaseBundleKeys].has(finalFileName.toLowerCase()));
23025
- bundle[finalFileName] = FILE_PLACEHOLDER;
23057
+ const finalHash = getUniqueHash(contentToHash, fileName, placeholder, usedFileNames, getHash);
23058
+ bundle[replaceSinglePlaceholder(fileName, placeholder, finalHash)] = FILE_PLACEHOLDER;
23026
23059
  hashesByPlaceholder.set(placeholder, finalHash);
23027
23060
  }
23028
23061
  return hashesByPlaceholder;
@@ -23060,15 +23093,7 @@ function addChunksToBundle(renderedChunksByPlaceholder, hashesByPlaceholder, bun
23060
23093
  }
23061
23094
  }
23062
23095
  function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, sourcemapBaseUrl }) {
23063
- let url;
23064
- if (sourcemap === 'inline') {
23065
- url = map.toUrl();
23066
- }
23067
- else {
23068
- const sourcemapFileName = path.basename(fileName);
23069
- url = sourcemapBaseUrl
23070
- ? new URL(sourcemapFileName, sourcemapBaseUrl).toString()
23071
- : sourcemapFileName;
23096
+ if (sourcemap !== 'inline') {
23072
23097
  pluginDriver.emitFile({
23073
23098
  fileName,
23074
23099
  originalFileName: null,
@@ -23076,6 +23101,14 @@ function emitSourceMapAndGetComment(fileName, map, pluginDriver, { sourcemap, so
23076
23101
  type: 'asset'
23077
23102
  });
23078
23103
  }
23104
+ return getSourceMapComment(fileName, map, sourcemap, sourcemapBaseUrl);
23105
+ }
23106
+ function getSourceMapComment(fileName, map, sourcemap, sourcemapBaseUrl) {
23107
+ const url = sourcemap === 'inline'
23108
+ ? map.toUrl()
23109
+ : sourcemapBaseUrl
23110
+ ? new URL(path.basename(fileName), sourcemapBaseUrl).toString()
23111
+ : path.basename(fileName);
23079
23112
  return sourcemap === 'hidden' ? '' : `//# ${SOURCEMAPPING_URL}=${url}\n`;
23080
23113
  }
23081
23114
  function calculateDebugIdAndGetComment(code, map) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.64.7
4
- Thu, 15 Oct 2026 05:41:37 GMT - commit 5f658604845ca7fb4d8e8a27a9e68e166c6f9973
3
+ Rollup.js v4.64.8
4
+ Sat, 17 Oct 2026 11:41:55 GMT - commit b7dd776462bfc5c36df44c837d6bfbc404a68c23
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.64.7",
3
+ "version": "4.64.8",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -116,31 +116,31 @@
116
116
  "optionalDependencies": {
117
117
  "@napi-rs/lzma-linux-x64-gnu": "1.5.1",
118
118
  "fsevents": "~2.3.2",
119
- "@rollup/rollup-darwin-arm64": "4.64.7",
120
- "@rollup/rollup-android-arm64": "4.64.7",
121
- "@rollup/rollup-win32-arm64-msvc": "4.64.7",
122
- "@rollup/rollup-freebsd-arm64": "4.64.7",
123
- "@rollup/rollup-linux-arm64-gnu": "4.64.7",
124
- "@rollup/rollup-linux-arm64-musl": "4.64.7",
125
- "@rollup/rollup-android-arm-eabi": "4.64.7",
126
- "@rollup/rollup-linux-arm-gnueabihf": "4.64.7",
127
- "@rollup/rollup-linux-arm-musleabihf": "4.64.7",
128
- "@rollup/rollup-win32-ia32-msvc": "4.64.7",
129
- "@rollup/rollup-linux-loong64-gnu": "4.64.7",
130
- "@rollup/rollup-linux-loong64-musl": "4.64.7",
131
- "@rollup/rollup-linux-riscv64-gnu": "4.64.7",
132
- "@rollup/rollup-linux-riscv64-musl": "4.64.7",
133
- "@rollup/rollup-linux-ppc64-gnu": "4.64.7",
134
- "@rollup/rollup-linux-ppc64-musl": "4.64.7",
135
- "@rollup/rollup-linux-s390x-gnu": "4.64.7",
136
- "@rollup/rollup-darwin-x64": "4.64.7",
137
- "@rollup/rollup-win32-x64-gnu": "4.64.7",
138
- "@rollup/rollup-win32-x64-msvc": "4.64.7",
139
- "@rollup/rollup-freebsd-x64": "4.64.7",
140
- "@rollup/rollup-linux-x64-gnu": "4.64.7",
141
- "@rollup/rollup-linux-x64-musl": "4.64.7",
142
- "@rollup/rollup-openbsd-x64": "4.64.7",
143
- "@rollup/rollup-openharmony-arm64": "4.64.7"
119
+ "@rollup/rollup-darwin-arm64": "4.64.8",
120
+ "@rollup/rollup-android-arm64": "4.64.8",
121
+ "@rollup/rollup-win32-arm64-msvc": "4.64.8",
122
+ "@rollup/rollup-freebsd-arm64": "4.64.8",
123
+ "@rollup/rollup-linux-arm64-gnu": "4.64.8",
124
+ "@rollup/rollup-linux-arm64-musl": "4.64.8",
125
+ "@rollup/rollup-android-arm-eabi": "4.64.8",
126
+ "@rollup/rollup-linux-arm-gnueabihf": "4.64.8",
127
+ "@rollup/rollup-linux-arm-musleabihf": "4.64.8",
128
+ "@rollup/rollup-win32-ia32-msvc": "4.64.8",
129
+ "@rollup/rollup-linux-loong64-gnu": "4.64.8",
130
+ "@rollup/rollup-linux-loong64-musl": "4.64.8",
131
+ "@rollup/rollup-linux-riscv64-gnu": "4.64.8",
132
+ "@rollup/rollup-linux-riscv64-musl": "4.64.8",
133
+ "@rollup/rollup-linux-ppc64-gnu": "4.64.8",
134
+ "@rollup/rollup-linux-ppc64-musl": "4.64.8",
135
+ "@rollup/rollup-linux-s390x-gnu": "4.64.8",
136
+ "@rollup/rollup-darwin-x64": "4.64.8",
137
+ "@rollup/rollup-win32-x64-gnu": "4.64.8",
138
+ "@rollup/rollup-win32-x64-msvc": "4.64.8",
139
+ "@rollup/rollup-freebsd-x64": "4.64.8",
140
+ "@rollup/rollup-linux-x64-gnu": "4.64.8",
141
+ "@rollup/rollup-linux-x64-musl": "4.64.8",
142
+ "@rollup/rollup-openbsd-x64": "4.64.8",
143
+ "@rollup/rollup-openharmony-arm64": "4.64.8"
144
144
  },
145
145
  "dependencies": {
146
146
  "@types/estree": "1.0.9"
@@ -151,10 +151,10 @@
151
151
  "devDependencies": {
152
152
  "@codemirror/commands": "^6.11.1",
153
153
  "@codemirror/lang-javascript": "^6.2.5",
154
- "@codemirror/language": "^6.12.4",
154
+ "@codemirror/language": "^6.13.1",
155
155
  "@codemirror/search": "^6.7.2",
156
156
  "@codemirror/state": "^6.7.6",
157
- "@codemirror/view": "^6.43.13",
157
+ "@codemirror/view": "^6.43.14",
158
158
  "@emnapi/core": "^1.11.3",
159
159
  "@emnapi/runtime": "^1.11.3",
160
160
  "@eslint/js": "^10.0.1",
@@ -177,7 +177,7 @@
177
177
  "@types/picomatch": "^4.0.3",
178
178
  "@types/semver": "^7.8.0",
179
179
  "@types/yargs-parser": "^21.0.3",
180
- "@vue/language-server": "^3.3.12",
180
+ "@vue/language-server": "^3.3.13",
181
181
  "acorn": "^8.19.0",
182
182
  "acorn-import-assertions": "^1.9.0",
183
183
  "acorn-import-phases": "^1.0.4",
@@ -185,7 +185,7 @@
185
185
  "buble": "^0.20.0",
186
186
  "builtin-modules": "^5.4.0",
187
187
  "chokidar": "^3.6.0",
188
- "concurrently": "^9.2.4",
188
+ "concurrently": "^9.2.5",
189
189
  "core-js": "3.38.1",
190
190
  "date-time": "^4.0.0",
191
191
  "es5-shim": "^4.6.7",
@@ -193,7 +193,7 @@
193
193
  "eslint": "^10.12.0",
194
194
  "eslint-config-prettier": "^10.1.8",
195
195
  "eslint-plugin-prettier": "^5.5.6",
196
- "eslint-plugin-unicorn": "^77.0.0",
196
+ "eslint-plugin-unicorn": "^78.0.0",
197
197
  "eslint-plugin-vue": "^10.11.1",
198
198
  "fixturify": "^3.0.0",
199
199
  "flru": "^1.0.2",
@@ -214,12 +214,12 @@
214
214
  "picocolors": "^1.1.1",
215
215
  "picomatch": "^4.0.7",
216
216
  "pinia": "^4.0.3",
217
- "prettier": "^3.9.9",
217
+ "prettier": "^3.9.10",
218
218
  "prettier-plugin-organize-imports": "^4.3.0",
219
219
  "pretty-bytes": "^7.2.0",
220
220
  "pretty-ms": "^9.3.1",
221
221
  "requirejs": "^2.3.8",
222
- "rollup": "^4.64.0",
222
+ "rollup": "^4.64.5",
223
223
  "rollup-plugin-license": "^3.7.1",
224
224
  "semver": "^7.8.5",
225
225
  "shx": "^0.4.0",
@@ -230,12 +230,12 @@
230
230
  "terser": "^5.51.2",
231
231
  "tslib": "^2.8.1",
232
232
  "typescript": "^5.9.3",
233
- "typescript-eslint": "^8.71.1",
234
- "vite": "^7.3.6",
233
+ "typescript-eslint": "^8.71.2",
234
+ "vite": "^7.3.7",
235
235
  "vitepress": "^1.6.4",
236
236
  "vue": "^3.5.43",
237
237
  "vue-eslint-parser": "^10.4.1",
238
- "vue-tsc": "^3.3.12",
238
+ "vue-tsc": "^3.3.13",
239
239
  "wasm-pack": "^0.15.0",
240
240
  "yargs-parser": "^21.1.1"
241
241
  },