rollup 4.61.1 → 4.62.0
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 +3 -3
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +83 -58
- package/dist/es/shared/parseAst.js +3 -3
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +3 -3
- package/dist/shared/rollup.js +83 -58
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +50 -50
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.62.0
|
|
5
|
+
Sat, 13 Jun 2026 08:30:18 GMT - commit 5e0066d92defee0097f10fb814e63f60b2a7b612
|
|
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.
|
|
30
|
+
const help = "rollup version 4.62.0\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
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.0
|
|
4
|
+
Sat, 13 Jun 2026 08:30:18 GMT - commit 5e0066d92defee0097f10fb814e63f60b2a7b612
|
|
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.
|
|
30
|
+
var version = "4.62.0";
|
|
31
31
|
|
|
32
32
|
// src/vlq.ts
|
|
33
33
|
var comma = ",".charCodeAt(0);
|
|
@@ -9178,7 +9178,7 @@ function getAugmentedNamespace(n) {
|
|
|
9178
9178
|
var isInstance = false;
|
|
9179
9179
|
try {
|
|
9180
9180
|
isInstance = this instanceof a;
|
|
9181
|
-
} catch {}
|
|
9181
|
+
} catch (e) {}
|
|
9182
9182
|
if (isInstance) {
|
|
9183
9183
|
return Reflect.construct(f, arguments, this.constructor);
|
|
9184
9184
|
}
|
|
@@ -19849,15 +19849,15 @@ function* concatLazy(iterables) {
|
|
|
19849
19849
|
* another round of chunks.
|
|
19850
19850
|
*/
|
|
19851
19851
|
function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log, isManualChunksFunctionForm, onlyExplicitManualChunks) {
|
|
19852
|
-
const { chunkDefinitions,
|
|
19853
|
-
const {
|
|
19852
|
+
const { chunkDefinitions, manualChunkModules, manualChunkModulesByModule } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry, isManualChunksFunctionForm, onlyExplicitManualChunks);
|
|
19853
|
+
const { entriesAndManualChunksCount, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry } = analyzeModuleGraph(entries, manualChunkModules, manualChunkModulesByModule);
|
|
19854
19854
|
// Each chunk is identified by its position in this array
|
|
19855
|
-
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByModule,
|
|
19856
|
-
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(
|
|
19855
|
+
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByModule, manualChunkModulesByModule, chunkDefinitions));
|
|
19856
|
+
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(entriesAndManualChunksCount, chunkAtoms);
|
|
19857
19857
|
// Warning: This will consume dynamicallyDependentEntriesByDynamicEntry.
|
|
19858
19858
|
// If we no longer want this, we should make a copy here.
|
|
19859
|
-
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry,
|
|
19860
|
-
const awaitedAlreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry,
|
|
19859
|
+
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, entriesAndManualChunksCount);
|
|
19860
|
+
const awaitedAlreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry, entriesAndManualChunksCount);
|
|
19861
19861
|
// This mutates the dependentEntries in chunkAtoms
|
|
19862
19862
|
removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry);
|
|
19863
19863
|
const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
|
|
@@ -19872,20 +19872,28 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry, isManualCh
|
|
|
19872
19872
|
const manualChunkModulesByAlias = Object.create(null);
|
|
19873
19873
|
const sortedEntriesWithAlias = [...manualChunkAliasByEntry].sort(([entryA], [entryB]) => entryA.execIndex - entryB.execIndex);
|
|
19874
19874
|
for (const [entry, alias] of sortedEntriesWithAlias) {
|
|
19875
|
+
const chunkModules = (manualChunkModulesByAlias[alias] ||= []);
|
|
19875
19876
|
if (isManualChunksFunctionForm && onlyExplicitManualChunks) {
|
|
19876
|
-
|
|
19877
|
+
chunkModules.push(entry);
|
|
19877
19878
|
}
|
|
19878
19879
|
else {
|
|
19879
|
-
addStaticDependenciesToManualChunk(entry,
|
|
19880
|
+
addStaticDependenciesToManualChunk(entry, chunkModules, modulesInManualChunks);
|
|
19880
19881
|
}
|
|
19881
19882
|
}
|
|
19882
19883
|
const manualChunks = Object.entries(manualChunkModulesByAlias);
|
|
19884
|
+
const manualChunkModules = new Array(manualChunks.length);
|
|
19883
19885
|
const chunkDefinitions = new Array(manualChunks.length);
|
|
19886
|
+
const manualChunkModulesByModule = new Map();
|
|
19884
19887
|
let index = 0;
|
|
19885
19888
|
for (const [alias, modules] of manualChunks) {
|
|
19886
|
-
chunkDefinitions[index
|
|
19889
|
+
chunkDefinitions[index] = { alias, modules };
|
|
19890
|
+
manualChunkModules[index] = modules;
|
|
19891
|
+
for (const module of modules) {
|
|
19892
|
+
manualChunkModulesByModule.set(module, modules);
|
|
19893
|
+
}
|
|
19894
|
+
index++;
|
|
19887
19895
|
}
|
|
19888
|
-
return { chunkDefinitions,
|
|
19896
|
+
return { chunkDefinitions, manualChunkModules, manualChunkModulesByModule };
|
|
19889
19897
|
}
|
|
19890
19898
|
function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesInManualChunks) {
|
|
19891
19899
|
const modulesToHandle = new Set([entry]);
|
|
@@ -19899,22 +19907,34 @@ function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesIn
|
|
|
19899
19907
|
}
|
|
19900
19908
|
}
|
|
19901
19909
|
}
|
|
19902
|
-
function analyzeModuleGraph(entries) {
|
|
19910
|
+
function analyzeModuleGraph(entries, manualChunkModules, manualChunkModulesByModule) {
|
|
19903
19911
|
const dynamicEntryModules = new Set();
|
|
19904
19912
|
const awaitedDynamicEntryModules = new Set();
|
|
19905
19913
|
const dependentEntriesByModule = new Map();
|
|
19906
19914
|
const allEntriesSet = new Set(entries);
|
|
19907
|
-
|
|
19908
|
-
const
|
|
19909
|
-
|
|
19910
|
-
|
|
19915
|
+
// Each entry is defined by its position in this array
|
|
19916
|
+
const allEntriesAndManualChunks = entries.map(module => [module]).concat(manualChunkModules);
|
|
19917
|
+
const dynamicImportModulesByEntry = new Array(allEntriesAndManualChunks.length);
|
|
19918
|
+
const awaitedDynamicImportModulesByEntry = new Array(allEntriesAndManualChunks.length);
|
|
19919
|
+
let entryOrManualChunkIndex = 0;
|
|
19920
|
+
for (const currentEntryModules of allEntriesAndManualChunks) {
|
|
19911
19921
|
const dynamicImportsForCurrentEntry = new Set();
|
|
19912
19922
|
const awaitedDynamicImportsForCurrentEntry = new Set();
|
|
19913
|
-
dynamicImportModulesByEntry[
|
|
19914
|
-
awaitedDynamicImportModulesByEntry[
|
|
19915
|
-
|
|
19923
|
+
dynamicImportModulesByEntry[entryOrManualChunkIndex] = dynamicImportsForCurrentEntry;
|
|
19924
|
+
awaitedDynamicImportModulesByEntry[entryOrManualChunkIndex] =
|
|
19925
|
+
awaitedDynamicImportsForCurrentEntry;
|
|
19926
|
+
const staticDependencies = new Set(currentEntryModules);
|
|
19927
|
+
// If we have a very large manual chunk, tracking if it is already added to the dependencies will improve performance
|
|
19928
|
+
const addedManualChunks = new Set();
|
|
19916
19929
|
for (const module of staticDependencies) {
|
|
19917
|
-
getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(
|
|
19930
|
+
getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryOrManualChunkIndex);
|
|
19931
|
+
const manualChunkMembers = manualChunkModulesByModule.get(module);
|
|
19932
|
+
if (manualChunkMembers && !addedManualChunks.has(manualChunkMembers)) {
|
|
19933
|
+
addedManualChunks.add(manualChunkMembers);
|
|
19934
|
+
for (const manualChunkMember of manualChunkMembers) {
|
|
19935
|
+
staticDependencies.add(manualChunkMember);
|
|
19936
|
+
}
|
|
19937
|
+
}
|
|
19918
19938
|
for (const dependency of module.getDependenciesToBeIncluded()) {
|
|
19919
19939
|
if (!(dependency instanceof ExternalModule)) {
|
|
19920
19940
|
staticDependencies.add(dependency);
|
|
@@ -19926,6 +19946,7 @@ function analyzeModuleGraph(entries) {
|
|
|
19926
19946
|
!allEntriesSet.has(resolution)) {
|
|
19927
19947
|
dynamicEntryModules.add(resolution);
|
|
19928
19948
|
allEntriesSet.add(resolution);
|
|
19949
|
+
allEntriesAndManualChunks.push([resolution]);
|
|
19929
19950
|
dynamicImportsForCurrentEntry.add(resolution);
|
|
19930
19951
|
for (const includedTopLevelAwaitingDynamicImporter of resolution.includedTopLevelAwaitingDynamicImporters) {
|
|
19931
19952
|
if (staticDependencies.has(includedTopLevelAwaitingDynamicImporter)) {
|
|
@@ -19940,33 +19961,35 @@ function analyzeModuleGraph(entries) {
|
|
|
19940
19961
|
if (!allEntriesSet.has(dependency)) {
|
|
19941
19962
|
dynamicEntryModules.add(dependency);
|
|
19942
19963
|
allEntriesSet.add(dependency);
|
|
19964
|
+
allEntriesAndManualChunks.push([dependency]);
|
|
19943
19965
|
}
|
|
19944
19966
|
}
|
|
19945
19967
|
}
|
|
19946
|
-
|
|
19968
|
+
entryOrManualChunkIndex++;
|
|
19947
19969
|
}
|
|
19948
|
-
const
|
|
19949
|
-
const { awaitedDynamicEntries, awaitedDynamicImportsByEntry, dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry);
|
|
19970
|
+
const { awaitedDynamicEntries, awaitedDynamicImportsByEntry, dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntriesAndManualChunks, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry);
|
|
19950
19971
|
return {
|
|
19951
|
-
allEntries,
|
|
19952
19972
|
awaitedDynamicImportsByEntry,
|
|
19953
19973
|
dependentEntriesByModule,
|
|
19954
|
-
dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries,
|
|
19955
|
-
dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries,
|
|
19956
|
-
dynamicImportsByEntry
|
|
19974
|
+
dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntriesAndManualChunks, dynamicEntry => dynamicEntry.includedTopLevelAwaitingDynamicImporters),
|
|
19975
|
+
dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntriesAndManualChunks, dynamicEntry => dynamicEntry.includedDynamicImporters),
|
|
19976
|
+
dynamicImportsByEntry,
|
|
19977
|
+
entriesAndManualChunksCount: allEntriesAndManualChunks.length
|
|
19957
19978
|
};
|
|
19958
19979
|
}
|
|
19959
|
-
function getDynamicEntries(
|
|
19980
|
+
function getDynamicEntries(allEntriesAndManualChunks, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry) {
|
|
19960
19981
|
const entryIndexByModule = new Map();
|
|
19961
19982
|
const dynamicEntries = new Set();
|
|
19962
19983
|
const awaitedDynamicEntries = new Set();
|
|
19963
|
-
for (const [entryIndex,
|
|
19964
|
-
|
|
19965
|
-
|
|
19966
|
-
|
|
19967
|
-
|
|
19968
|
-
|
|
19969
|
-
|
|
19984
|
+
for (const [entryIndex, entryModules] of allEntriesAndManualChunks.entries()) {
|
|
19985
|
+
for (const entryModule of entryModules) {
|
|
19986
|
+
entryIndexByModule.set(entryModule, entryIndex);
|
|
19987
|
+
if (dynamicEntryModules.has(entryModule)) {
|
|
19988
|
+
dynamicEntries.add(entryIndex);
|
|
19989
|
+
}
|
|
19990
|
+
if (awaitedDynamicEntryModules.has(entryModule)) {
|
|
19991
|
+
awaitedDynamicEntries.add(entryIndex);
|
|
19992
|
+
}
|
|
19970
19993
|
}
|
|
19971
19994
|
}
|
|
19972
19995
|
const dynamicImportsByEntry = getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModule);
|
|
@@ -19990,29 +20013,31 @@ function getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModul
|
|
|
19990
20013
|
}
|
|
19991
20014
|
return dynamicImportsByEntry;
|
|
19992
20015
|
}
|
|
19993
|
-
function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries,
|
|
20016
|
+
function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntriesAndManualChunks, getDynamicImporters) {
|
|
19994
20017
|
const dynamicallyDependentEntriesByDynamicEntry = new Map();
|
|
19995
20018
|
for (const dynamicEntryIndex of dynamicEntries) {
|
|
19996
20019
|
const dynamicallyDependentEntries = getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicEntryIndex, (getNewSet));
|
|
19997
|
-
const
|
|
19998
|
-
for (const
|
|
19999
|
-
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
20003
|
-
|
|
20004
|
-
|
|
20005
|
-
|
|
20006
|
-
|
|
20007
|
-
|
|
20020
|
+
const dynamicEntryModules = allEntriesAndManualChunks[dynamicEntryIndex];
|
|
20021
|
+
for (const dynamicEntryModule of dynamicEntryModules) {
|
|
20022
|
+
for (const importer of concatLazy([
|
|
20023
|
+
getDynamicImporters(dynamicEntryModule),
|
|
20024
|
+
dynamicEntryModule.implicitlyLoadedAfter
|
|
20025
|
+
])) {
|
|
20026
|
+
const importerEntries = dependentEntriesByModule.get(importer);
|
|
20027
|
+
if (!importerEntries) {
|
|
20028
|
+
continue;
|
|
20029
|
+
}
|
|
20030
|
+
for (const entry of importerEntries) {
|
|
20031
|
+
dynamicallyDependentEntries.add(entry);
|
|
20032
|
+
}
|
|
20008
20033
|
}
|
|
20009
20034
|
}
|
|
20010
20035
|
}
|
|
20011
20036
|
return dynamicallyDependentEntriesByDynamicEntry;
|
|
20012
20037
|
}
|
|
20013
|
-
function getChunksWithSameDependentEntries(
|
|
20038
|
+
function getChunksWithSameDependentEntries(moduleWithDependentEntries) {
|
|
20014
20039
|
const chunkModules = Object.create(null);
|
|
20015
|
-
for (const { dependentEntries,
|
|
20040
|
+
for (const { dependentEntries, module } of moduleWithDependentEntries) {
|
|
20016
20041
|
let chunkSignature = 0n;
|
|
20017
20042
|
for (const entryIndex of dependentEntries) {
|
|
20018
20043
|
chunkSignature |= 1n << BigInt(entryIndex);
|
|
@@ -20020,7 +20045,7 @@ function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
|
|
|
20020
20045
|
(chunkModules[String(chunkSignature)] ||= {
|
|
20021
20046
|
dependentEntries: new Set(dependentEntries),
|
|
20022
20047
|
modules: []
|
|
20023
|
-
}).modules.push(
|
|
20048
|
+
}).modules.push(module);
|
|
20024
20049
|
}
|
|
20025
20050
|
return Object.values(chunkModules);
|
|
20026
20051
|
}
|
|
@@ -20034,14 +20059,14 @@ function* getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByMod
|
|
|
20034
20059
|
});
|
|
20035
20060
|
continue;
|
|
20036
20061
|
}
|
|
20037
|
-
yield { dependentEntries,
|
|
20062
|
+
yield { dependentEntries, module };
|
|
20038
20063
|
}
|
|
20039
20064
|
}
|
|
20040
20065
|
}
|
|
20041
|
-
function getStaticDependencyAtomsByEntry(
|
|
20066
|
+
function getStaticDependencyAtomsByEntry(entriesAndManualChunksCount, chunkAtoms) {
|
|
20042
20067
|
// The indices correspond to the indices in allEntries. The atoms correspond
|
|
20043
20068
|
// to bits in the bigint values where chunk 0 is the lowest bit.
|
|
20044
|
-
const staticDependencyAtomsByEntry =
|
|
20069
|
+
const staticDependencyAtomsByEntry = new Array(entriesAndManualChunksCount).fill(0n);
|
|
20045
20070
|
// This toggles the bits for each atom that is a dependency of an entry
|
|
20046
20071
|
let atomMask = 1n;
|
|
20047
20072
|
for (const { dependentEntries } of chunkAtoms) {
|
|
@@ -20053,11 +20078,11 @@ function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
|
|
|
20053
20078
|
return staticDependencyAtomsByEntry;
|
|
20054
20079
|
}
|
|
20055
20080
|
// Warning: This will consume dynamicallyDependentEntriesByDynamicEntry.
|
|
20056
|
-
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry,
|
|
20081
|
+
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntriesCount) {
|
|
20057
20082
|
// Dynamic entries have all atoms as already loaded initially because we then
|
|
20058
20083
|
// intersect with the static dependency atoms of all dynamic importers.
|
|
20059
20084
|
// Static entries cannot have already loaded atoms.
|
|
20060
|
-
const alreadyLoadedAtomsByEntry =
|
|
20085
|
+
const alreadyLoadedAtomsByEntry = Array.from({ length: allEntriesCount }, (_entry, entryIndex) => (dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n));
|
|
20061
20086
|
for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
|
|
20062
20087
|
// We delete here so that they can be added again if necessary to be handled
|
|
20063
20088
|
// again by the loop
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.0
|
|
4
|
+
Sat, 13 Jun 2026 08:30:18 GMT - commit 5e0066d92defee0097f10fb814e63f60b2a7b612
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -460,7 +460,7 @@ function logCircularChunk(cyclePath, isManualChunkConflict) {
|
|
|
460
460
|
ids: cyclePath,
|
|
461
461
|
message: `Circular chunk: ${cyclePath.join(' -> ')}. ${isManualChunkConflict
|
|
462
462
|
? `Please adjust the manual chunk logic for these chunks.`
|
|
463
|
-
: `
|
|
463
|
+
: `Please consider disabling the "output.onlyExplicitManualChunks" option, as enabling it causes modules located between the modules included in the manual chunk "${cyclePath.at(-2)}" to be extracted into the separate chunk "${cyclePath.at(-1)}".`}`
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
466
|
function logCircularReexport(exportName, exporter) {
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.0
|
|
4
|
+
Sat, 13 Jun 2026 08:30:18 GMT - commit 5e0066d92defee0097f10fb814e63f60b2a7b612
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -432,7 +432,7 @@ function logCircularChunk(cyclePath, isManualChunkConflict) {
|
|
|
432
432
|
ids: cyclePath,
|
|
433
433
|
message: `Circular chunk: ${cyclePath.join(' -> ')}. ${isManualChunkConflict
|
|
434
434
|
? `Please adjust the manual chunk logic for these chunks.`
|
|
435
|
-
: `
|
|
435
|
+
: `Please consider disabling the "output.onlyExplicitManualChunks" option, as enabling it causes modules located between the modules included in the manual chunk "${cyclePath.at(-2)}" to be extracted into the separate chunk "${cyclePath.at(-1)}".`}`
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
function logCircularReexport(exportName, exporter) {
|
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.0
|
|
4
|
+
Sat, 13 Jun 2026 08:30:18 GMT - commit 5e0066d92defee0097f10fb814e63f60b2a7b612
|
|
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.
|
|
45
|
+
var version = "4.62.0";
|
|
46
46
|
|
|
47
47
|
function ensureArray$1(items) {
|
|
48
48
|
if (Array.isArray(items)) {
|
|
@@ -947,7 +947,7 @@ function getAugmentedNamespace(n) {
|
|
|
947
947
|
var isInstance = false;
|
|
948
948
|
try {
|
|
949
949
|
isInstance = this instanceof a;
|
|
950
|
-
} catch {}
|
|
950
|
+
} catch (e) {}
|
|
951
951
|
if (isInstance) {
|
|
952
952
|
return Reflect.construct(f, arguments, this.constructor);
|
|
953
953
|
}
|
|
@@ -21343,15 +21343,15 @@ function* concatLazy(iterables) {
|
|
|
21343
21343
|
* another round of chunks.
|
|
21344
21344
|
*/
|
|
21345
21345
|
function getChunkAssignments(entries, manualChunkAliasByEntry, minChunkSize, log, isManualChunksFunctionForm, onlyExplicitManualChunks) {
|
|
21346
|
-
const { chunkDefinitions,
|
|
21347
|
-
const {
|
|
21346
|
+
const { chunkDefinitions, manualChunkModules, manualChunkModulesByModule } = getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry, isManualChunksFunctionForm, onlyExplicitManualChunks);
|
|
21347
|
+
const { entriesAndManualChunksCount, dependentEntriesByModule, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry } = analyzeModuleGraph(entries, manualChunkModules, manualChunkModulesByModule);
|
|
21348
21348
|
// Each chunk is identified by its position in this array
|
|
21349
|
-
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByModule,
|
|
21350
|
-
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(
|
|
21349
|
+
const chunkAtoms = getChunksWithSameDependentEntries(getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByModule, manualChunkModulesByModule, chunkDefinitions));
|
|
21350
|
+
const staticDependencyAtomsByEntry = getStaticDependencyAtomsByEntry(entriesAndManualChunksCount, chunkAtoms);
|
|
21351
21351
|
// Warning: This will consume dynamicallyDependentEntriesByDynamicEntry.
|
|
21352
21352
|
// If we no longer want this, we should make a copy here.
|
|
21353
|
-
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry,
|
|
21354
|
-
const awaitedAlreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry,
|
|
21353
|
+
const alreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, entriesAndManualChunksCount);
|
|
21354
|
+
const awaitedAlreadyLoadedAtomsByEntry = getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByAwaitedDynamicEntry, awaitedDynamicImportsByEntry, entriesAndManualChunksCount);
|
|
21355
21355
|
// This mutates the dependentEntries in chunkAtoms
|
|
21356
21356
|
removeUnnecessaryDependentEntries(chunkAtoms, alreadyLoadedAtomsByEntry, awaitedAlreadyLoadedAtomsByEntry);
|
|
21357
21357
|
const { chunks, sideEffectAtoms, sizeByAtom } = getChunksWithSameDependentEntriesAndCorrelatedAtoms(chunkAtoms, staticDependencyAtomsByEntry, alreadyLoadedAtomsByEntry, minChunkSize);
|
|
@@ -21366,20 +21366,28 @@ function getChunkDefinitionsFromManualChunks(manualChunkAliasByEntry, isManualCh
|
|
|
21366
21366
|
const manualChunkModulesByAlias = Object.create(null);
|
|
21367
21367
|
const sortedEntriesWithAlias = [...manualChunkAliasByEntry].sort(([entryA], [entryB]) => entryA.execIndex - entryB.execIndex);
|
|
21368
21368
|
for (const [entry, alias] of sortedEntriesWithAlias) {
|
|
21369
|
+
const chunkModules = (manualChunkModulesByAlias[alias] ||= []);
|
|
21369
21370
|
if (isManualChunksFunctionForm && onlyExplicitManualChunks) {
|
|
21370
|
-
|
|
21371
|
+
chunkModules.push(entry);
|
|
21371
21372
|
}
|
|
21372
21373
|
else {
|
|
21373
|
-
addStaticDependenciesToManualChunk(entry,
|
|
21374
|
+
addStaticDependenciesToManualChunk(entry, chunkModules, modulesInManualChunks);
|
|
21374
21375
|
}
|
|
21375
21376
|
}
|
|
21376
21377
|
const manualChunks = Object.entries(manualChunkModulesByAlias);
|
|
21378
|
+
const manualChunkModules = new Array(manualChunks.length);
|
|
21377
21379
|
const chunkDefinitions = new Array(manualChunks.length);
|
|
21380
|
+
const manualChunkModulesByModule = new Map();
|
|
21378
21381
|
let index = 0;
|
|
21379
21382
|
for (const [alias, modules] of manualChunks) {
|
|
21380
|
-
chunkDefinitions[index
|
|
21383
|
+
chunkDefinitions[index] = { alias, modules };
|
|
21384
|
+
manualChunkModules[index] = modules;
|
|
21385
|
+
for (const module of modules) {
|
|
21386
|
+
manualChunkModulesByModule.set(module, modules);
|
|
21387
|
+
}
|
|
21388
|
+
index++;
|
|
21381
21389
|
}
|
|
21382
|
-
return { chunkDefinitions,
|
|
21390
|
+
return { chunkDefinitions, manualChunkModules, manualChunkModulesByModule };
|
|
21383
21391
|
}
|
|
21384
21392
|
function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesInManualChunks) {
|
|
21385
21393
|
const modulesToHandle = new Set([entry]);
|
|
@@ -21393,22 +21401,34 @@ function addStaticDependenciesToManualChunk(entry, manualChunkModules, modulesIn
|
|
|
21393
21401
|
}
|
|
21394
21402
|
}
|
|
21395
21403
|
}
|
|
21396
|
-
function analyzeModuleGraph(entries) {
|
|
21404
|
+
function analyzeModuleGraph(entries, manualChunkModules, manualChunkModulesByModule) {
|
|
21397
21405
|
const dynamicEntryModules = new Set();
|
|
21398
21406
|
const awaitedDynamicEntryModules = new Set();
|
|
21399
21407
|
const dependentEntriesByModule = new Map();
|
|
21400
21408
|
const allEntriesSet = new Set(entries);
|
|
21401
|
-
|
|
21402
|
-
const
|
|
21403
|
-
|
|
21404
|
-
|
|
21409
|
+
// Each entry is defined by its position in this array
|
|
21410
|
+
const allEntriesAndManualChunks = entries.map(module => [module]).concat(manualChunkModules);
|
|
21411
|
+
const dynamicImportModulesByEntry = new Array(allEntriesAndManualChunks.length);
|
|
21412
|
+
const awaitedDynamicImportModulesByEntry = new Array(allEntriesAndManualChunks.length);
|
|
21413
|
+
let entryOrManualChunkIndex = 0;
|
|
21414
|
+
for (const currentEntryModules of allEntriesAndManualChunks) {
|
|
21405
21415
|
const dynamicImportsForCurrentEntry = new Set();
|
|
21406
21416
|
const awaitedDynamicImportsForCurrentEntry = new Set();
|
|
21407
|
-
dynamicImportModulesByEntry[
|
|
21408
|
-
awaitedDynamicImportModulesByEntry[
|
|
21409
|
-
|
|
21417
|
+
dynamicImportModulesByEntry[entryOrManualChunkIndex] = dynamicImportsForCurrentEntry;
|
|
21418
|
+
awaitedDynamicImportModulesByEntry[entryOrManualChunkIndex] =
|
|
21419
|
+
awaitedDynamicImportsForCurrentEntry;
|
|
21420
|
+
const staticDependencies = new Set(currentEntryModules);
|
|
21421
|
+
// If we have a very large manual chunk, tracking if it is already added to the dependencies will improve performance
|
|
21422
|
+
const addedManualChunks = new Set();
|
|
21410
21423
|
for (const module of staticDependencies) {
|
|
21411
|
-
getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(
|
|
21424
|
+
getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryOrManualChunkIndex);
|
|
21425
|
+
const manualChunkMembers = manualChunkModulesByModule.get(module);
|
|
21426
|
+
if (manualChunkMembers && !addedManualChunks.has(manualChunkMembers)) {
|
|
21427
|
+
addedManualChunks.add(manualChunkMembers);
|
|
21428
|
+
for (const manualChunkMember of manualChunkMembers) {
|
|
21429
|
+
staticDependencies.add(manualChunkMember);
|
|
21430
|
+
}
|
|
21431
|
+
}
|
|
21412
21432
|
for (const dependency of module.getDependenciesToBeIncluded()) {
|
|
21413
21433
|
if (!(dependency instanceof ExternalModule)) {
|
|
21414
21434
|
staticDependencies.add(dependency);
|
|
@@ -21420,6 +21440,7 @@ function analyzeModuleGraph(entries) {
|
|
|
21420
21440
|
!allEntriesSet.has(resolution)) {
|
|
21421
21441
|
dynamicEntryModules.add(resolution);
|
|
21422
21442
|
allEntriesSet.add(resolution);
|
|
21443
|
+
allEntriesAndManualChunks.push([resolution]);
|
|
21423
21444
|
dynamicImportsForCurrentEntry.add(resolution);
|
|
21424
21445
|
for (const includedTopLevelAwaitingDynamicImporter of resolution.includedTopLevelAwaitingDynamicImporters) {
|
|
21425
21446
|
if (staticDependencies.has(includedTopLevelAwaitingDynamicImporter)) {
|
|
@@ -21434,33 +21455,35 @@ function analyzeModuleGraph(entries) {
|
|
|
21434
21455
|
if (!allEntriesSet.has(dependency)) {
|
|
21435
21456
|
dynamicEntryModules.add(dependency);
|
|
21436
21457
|
allEntriesSet.add(dependency);
|
|
21458
|
+
allEntriesAndManualChunks.push([dependency]);
|
|
21437
21459
|
}
|
|
21438
21460
|
}
|
|
21439
21461
|
}
|
|
21440
|
-
|
|
21462
|
+
entryOrManualChunkIndex++;
|
|
21441
21463
|
}
|
|
21442
|
-
const
|
|
21443
|
-
const { awaitedDynamicEntries, awaitedDynamicImportsByEntry, dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntries, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry);
|
|
21464
|
+
const { awaitedDynamicEntries, awaitedDynamicImportsByEntry, dynamicEntries, dynamicImportsByEntry } = getDynamicEntries(allEntriesAndManualChunks, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry);
|
|
21444
21465
|
return {
|
|
21445
|
-
allEntries,
|
|
21446
21466
|
awaitedDynamicImportsByEntry,
|
|
21447
21467
|
dependentEntriesByModule,
|
|
21448
|
-
dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries,
|
|
21449
|
-
dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries,
|
|
21450
|
-
dynamicImportsByEntry
|
|
21468
|
+
dynamicallyDependentEntriesByAwaitedDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, awaitedDynamicEntries, allEntriesAndManualChunks, dynamicEntry => dynamicEntry.includedTopLevelAwaitingDynamicImporters),
|
|
21469
|
+
dynamicallyDependentEntriesByDynamicEntry: getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntriesAndManualChunks, dynamicEntry => dynamicEntry.includedDynamicImporters),
|
|
21470
|
+
dynamicImportsByEntry,
|
|
21471
|
+
entriesAndManualChunksCount: allEntriesAndManualChunks.length
|
|
21451
21472
|
};
|
|
21452
21473
|
}
|
|
21453
|
-
function getDynamicEntries(
|
|
21474
|
+
function getDynamicEntries(allEntriesAndManualChunks, dynamicEntryModules, dynamicImportModulesByEntry, awaitedDynamicEntryModules, awaitedDynamicImportModulesByEntry) {
|
|
21454
21475
|
const entryIndexByModule = new Map();
|
|
21455
21476
|
const dynamicEntries = new Set();
|
|
21456
21477
|
const awaitedDynamicEntries = new Set();
|
|
21457
|
-
for (const [entryIndex,
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21478
|
+
for (const [entryIndex, entryModules] of allEntriesAndManualChunks.entries()) {
|
|
21479
|
+
for (const entryModule of entryModules) {
|
|
21480
|
+
entryIndexByModule.set(entryModule, entryIndex);
|
|
21481
|
+
if (dynamicEntryModules.has(entryModule)) {
|
|
21482
|
+
dynamicEntries.add(entryIndex);
|
|
21483
|
+
}
|
|
21484
|
+
if (awaitedDynamicEntryModules.has(entryModule)) {
|
|
21485
|
+
awaitedDynamicEntries.add(entryIndex);
|
|
21486
|
+
}
|
|
21464
21487
|
}
|
|
21465
21488
|
}
|
|
21466
21489
|
const dynamicImportsByEntry = getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModule);
|
|
@@ -21484,29 +21507,31 @@ function getDynamicImportsByEntry(dynamicImportModulesByEntry, entryIndexByModul
|
|
|
21484
21507
|
}
|
|
21485
21508
|
return dynamicImportsByEntry;
|
|
21486
21509
|
}
|
|
21487
|
-
function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries,
|
|
21510
|
+
function getDynamicallyDependentEntriesByDynamicEntry(dependentEntriesByModule, dynamicEntries, allEntriesAndManualChunks, getDynamicImporters) {
|
|
21488
21511
|
const dynamicallyDependentEntriesByDynamicEntry = new Map();
|
|
21489
21512
|
for (const dynamicEntryIndex of dynamicEntries) {
|
|
21490
21513
|
const dynamicallyDependentEntries = getOrCreate(dynamicallyDependentEntriesByDynamicEntry, dynamicEntryIndex, (getNewSet));
|
|
21491
|
-
const
|
|
21492
|
-
for (const
|
|
21493
|
-
|
|
21494
|
-
|
|
21495
|
-
|
|
21496
|
-
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21514
|
+
const dynamicEntryModules = allEntriesAndManualChunks[dynamicEntryIndex];
|
|
21515
|
+
for (const dynamicEntryModule of dynamicEntryModules) {
|
|
21516
|
+
for (const importer of concatLazy([
|
|
21517
|
+
getDynamicImporters(dynamicEntryModule),
|
|
21518
|
+
dynamicEntryModule.implicitlyLoadedAfter
|
|
21519
|
+
])) {
|
|
21520
|
+
const importerEntries = dependentEntriesByModule.get(importer);
|
|
21521
|
+
if (!importerEntries) {
|
|
21522
|
+
continue;
|
|
21523
|
+
}
|
|
21524
|
+
for (const entry of importerEntries) {
|
|
21525
|
+
dynamicallyDependentEntries.add(entry);
|
|
21526
|
+
}
|
|
21502
21527
|
}
|
|
21503
21528
|
}
|
|
21504
21529
|
}
|
|
21505
21530
|
return dynamicallyDependentEntriesByDynamicEntry;
|
|
21506
21531
|
}
|
|
21507
|
-
function getChunksWithSameDependentEntries(
|
|
21532
|
+
function getChunksWithSameDependentEntries(moduleWithDependentEntries) {
|
|
21508
21533
|
const chunkModules = Object.create(null);
|
|
21509
|
-
for (const { dependentEntries,
|
|
21534
|
+
for (const { dependentEntries, module } of moduleWithDependentEntries) {
|
|
21510
21535
|
let chunkSignature = 0n;
|
|
21511
21536
|
for (const entryIndex of dependentEntries) {
|
|
21512
21537
|
chunkSignature |= 1n << BigInt(entryIndex);
|
|
@@ -21514,7 +21539,7 @@ function getChunksWithSameDependentEntries(modulesWithDependentEntries) {
|
|
|
21514
21539
|
(chunkModules[String(chunkSignature)] ||= {
|
|
21515
21540
|
dependentEntries: new Set(dependentEntries),
|
|
21516
21541
|
modules: []
|
|
21517
|
-
}).modules.push(
|
|
21542
|
+
}).modules.push(module);
|
|
21518
21543
|
}
|
|
21519
21544
|
return Object.values(chunkModules);
|
|
21520
21545
|
}
|
|
@@ -21528,14 +21553,14 @@ function* getModulesWithDependentEntriesAndHandleTLACycles(dependentEntriesByMod
|
|
|
21528
21553
|
});
|
|
21529
21554
|
continue;
|
|
21530
21555
|
}
|
|
21531
|
-
yield { dependentEntries,
|
|
21556
|
+
yield { dependentEntries, module };
|
|
21532
21557
|
}
|
|
21533
21558
|
}
|
|
21534
21559
|
}
|
|
21535
|
-
function getStaticDependencyAtomsByEntry(
|
|
21560
|
+
function getStaticDependencyAtomsByEntry(entriesAndManualChunksCount, chunkAtoms) {
|
|
21536
21561
|
// The indices correspond to the indices in allEntries. The atoms correspond
|
|
21537
21562
|
// to bits in the bigint values where chunk 0 is the lowest bit.
|
|
21538
|
-
const staticDependencyAtomsByEntry =
|
|
21563
|
+
const staticDependencyAtomsByEntry = new Array(entriesAndManualChunksCount).fill(0n);
|
|
21539
21564
|
// This toggles the bits for each atom that is a dependency of an entry
|
|
21540
21565
|
let atomMask = 1n;
|
|
21541
21566
|
for (const { dependentEntries } of chunkAtoms) {
|
|
@@ -21547,11 +21572,11 @@ function getStaticDependencyAtomsByEntry(allEntries, chunkAtoms) {
|
|
|
21547
21572
|
return staticDependencyAtomsByEntry;
|
|
21548
21573
|
}
|
|
21549
21574
|
// Warning: This will consume dynamicallyDependentEntriesByDynamicEntry.
|
|
21550
|
-
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry,
|
|
21575
|
+
function getAlreadyLoadedAtomsByEntry(staticDependencyAtomsByEntry, dynamicallyDependentEntriesByDynamicEntry, dynamicImportsByEntry, allEntriesCount) {
|
|
21551
21576
|
// Dynamic entries have all atoms as already loaded initially because we then
|
|
21552
21577
|
// intersect with the static dependency atoms of all dynamic importers.
|
|
21553
21578
|
// Static entries cannot have already loaded atoms.
|
|
21554
|
-
const alreadyLoadedAtomsByEntry =
|
|
21579
|
+
const alreadyLoadedAtomsByEntry = Array.from({ length: allEntriesCount }, (_entry, entryIndex) => (dynamicallyDependentEntriesByDynamicEntry.has(entryIndex) ? -1n : 0n));
|
|
21555
21580
|
for (const [dynamicEntryIndex, dynamicallyDependentEntries] of dynamicallyDependentEntriesByDynamicEntry) {
|
|
21556
21581
|
// We delete here so that they can be added again if necessary to be handled
|
|
21557
21582
|
// again by the loop
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.62.0",
|
|
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.
|
|
118
|
-
"@rollup/rollup-android-arm64": "4.
|
|
119
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
120
|
-
"@rollup/rollup-freebsd-arm64": "4.
|
|
121
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
122
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
123
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
124
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
125
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.
|
|
126
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
127
|
-
"@rollup/rollup-linux-loong64-gnu": "4.
|
|
128
|
-
"@rollup/rollup-linux-loong64-musl": "4.
|
|
129
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.
|
|
130
|
-
"@rollup/rollup-linux-riscv64-musl": "4.
|
|
131
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.
|
|
132
|
-
"@rollup/rollup-linux-ppc64-musl": "4.
|
|
133
|
-
"@rollup/rollup-linux-s390x-gnu": "4.
|
|
134
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
135
|
-
"@rollup/rollup-win32-x64-gnu": "4.
|
|
136
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
137
|
-
"@rollup/rollup-freebsd-x64": "4.
|
|
138
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
139
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
140
|
-
"@rollup/rollup-openbsd-x64": "4.
|
|
141
|
-
"@rollup/rollup-openharmony-arm64": "4.
|
|
117
|
+
"@rollup/rollup-darwin-arm64": "4.62.0",
|
|
118
|
+
"@rollup/rollup-android-arm64": "4.62.0",
|
|
119
|
+
"@rollup/rollup-win32-arm64-msvc": "4.62.0",
|
|
120
|
+
"@rollup/rollup-freebsd-arm64": "4.62.0",
|
|
121
|
+
"@rollup/rollup-linux-arm64-gnu": "4.62.0",
|
|
122
|
+
"@rollup/rollup-linux-arm64-musl": "4.62.0",
|
|
123
|
+
"@rollup/rollup-android-arm-eabi": "4.62.0",
|
|
124
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.62.0",
|
|
125
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.62.0",
|
|
126
|
+
"@rollup/rollup-win32-ia32-msvc": "4.62.0",
|
|
127
|
+
"@rollup/rollup-linux-loong64-gnu": "4.62.0",
|
|
128
|
+
"@rollup/rollup-linux-loong64-musl": "4.62.0",
|
|
129
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.62.0",
|
|
130
|
+
"@rollup/rollup-linux-riscv64-musl": "4.62.0",
|
|
131
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.62.0",
|
|
132
|
+
"@rollup/rollup-linux-ppc64-musl": "4.62.0",
|
|
133
|
+
"@rollup/rollup-linux-s390x-gnu": "4.62.0",
|
|
134
|
+
"@rollup/rollup-darwin-x64": "4.62.0",
|
|
135
|
+
"@rollup/rollup-win32-x64-gnu": "4.62.0",
|
|
136
|
+
"@rollup/rollup-win32-x64-msvc": "4.62.0",
|
|
137
|
+
"@rollup/rollup-freebsd-x64": "4.62.0",
|
|
138
|
+
"@rollup/rollup-linux-x64-gnu": "4.62.0",
|
|
139
|
+
"@rollup/rollup-linux-x64-musl": "4.62.0",
|
|
140
|
+
"@rollup/rollup-openbsd-x64": "4.62.0",
|
|
141
|
+
"@rollup/rollup-openharmony-arm64": "4.62.0"
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
144
|
"@types/estree": "1.0.9"
|
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
"@codemirror/language": "^6.12.3",
|
|
153
153
|
"@codemirror/search": "^6.7.0",
|
|
154
154
|
"@codemirror/state": "^6.6.0",
|
|
155
|
-
"@codemirror/view": "^6.43.
|
|
156
|
-
"@emnapi/core": "^1.
|
|
157
|
-
"@emnapi/runtime": "^1.
|
|
155
|
+
"@codemirror/view": "^6.43.1",
|
|
156
|
+
"@emnapi/core": "^1.11.0",
|
|
157
|
+
"@emnapi/runtime": "^1.11.0",
|
|
158
158
|
"@eslint/js": "^10.0.1",
|
|
159
159
|
"@inquirer/prompts": "^7.10.1",
|
|
160
160
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
@@ -162,20 +162,20 @@
|
|
|
162
162
|
"@napi-rs/cli": "3.4.1",
|
|
163
163
|
"@rollup/plugin-alias": "^6.0.0",
|
|
164
164
|
"@rollup/plugin-buble": "^1.0.3",
|
|
165
|
-
"@rollup/plugin-commonjs": "^29.0.
|
|
165
|
+
"@rollup/plugin-commonjs": "^29.0.3",
|
|
166
166
|
"@rollup/plugin-json": "^6.1.0",
|
|
167
167
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
168
168
|
"@rollup/plugin-replace": "^6.0.3",
|
|
169
169
|
"@rollup/plugin-terser": "^0.4.4",
|
|
170
170
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
171
|
-
"@rollup/pluginutils": "^5.
|
|
172
|
-
"@shikijs/vitepress-twoslash": "^4.
|
|
171
|
+
"@rollup/pluginutils": "^5.4.0",
|
|
172
|
+
"@shikijs/vitepress-twoslash": "^4.2.0",
|
|
173
173
|
"@types/mocha": "^10.0.10",
|
|
174
|
-
"@types/node": "^20.19.
|
|
174
|
+
"@types/node": "^20.19.42",
|
|
175
175
|
"@types/picomatch": "^4.0.3",
|
|
176
176
|
"@types/semver": "^7.7.1",
|
|
177
177
|
"@types/yargs-parser": "^21.0.3",
|
|
178
|
-
"@vue/language-server": "^3.3.
|
|
178
|
+
"@vue/language-server": "^3.3.4",
|
|
179
179
|
"acorn": "^8.16.0",
|
|
180
180
|
"acorn-import-assertions": "^1.9.0",
|
|
181
181
|
"acorn-import-phases": "^1.0.4",
|
|
@@ -188,11 +188,11 @@
|
|
|
188
188
|
"date-time": "^4.0.0",
|
|
189
189
|
"es5-shim": "^4.6.7",
|
|
190
190
|
"es6-shim": "^0.35.8",
|
|
191
|
-
"eslint": "^10.4.
|
|
191
|
+
"eslint": "^10.4.1",
|
|
192
192
|
"eslint-config-prettier": "^10.1.8",
|
|
193
|
-
"eslint-plugin-prettier": "^5.5.
|
|
194
|
-
"eslint-plugin-unicorn": "^
|
|
195
|
-
"eslint-plugin-vue": "^10.9.
|
|
193
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
194
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
195
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
196
196
|
"fixturify": "^3.0.0",
|
|
197
197
|
"flru": "^1.0.2",
|
|
198
198
|
"fs-extra": "^11.3.5",
|
|
@@ -200,10 +200,10 @@
|
|
|
200
200
|
"globals": "^17.6.0",
|
|
201
201
|
"husky": "^9.1.7",
|
|
202
202
|
"is-reference": "^3.0.3",
|
|
203
|
-
"lint-staged": "^17.0.
|
|
203
|
+
"lint-staged": "^17.0.7",
|
|
204
204
|
"locate-character": "^3.0.0",
|
|
205
205
|
"magic-string": "^0.30.21",
|
|
206
|
-
"memfs": "^4.57.
|
|
206
|
+
"memfs": "^4.57.6",
|
|
207
207
|
"mocha": "11.7.6",
|
|
208
208
|
"nodemon": "^3.1.14",
|
|
209
209
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
@@ -212,14 +212,14 @@
|
|
|
212
212
|
"picocolors": "^1.1.1",
|
|
213
213
|
"picomatch": "^4.0.4",
|
|
214
214
|
"pinia": "^3.0.4",
|
|
215
|
-
"prettier": "^3.8.
|
|
215
|
+
"prettier": "^3.8.4",
|
|
216
216
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
217
217
|
"pretty-bytes": "^7.1.0",
|
|
218
218
|
"pretty-ms": "^9.3.0",
|
|
219
219
|
"requirejs": "^2.3.8",
|
|
220
|
-
"rollup": "^4.
|
|
220
|
+
"rollup": "^4.61.1",
|
|
221
221
|
"rollup-plugin-license": "^3.7.1",
|
|
222
|
-
"semver": "^7.8.
|
|
222
|
+
"semver": "^7.8.4",
|
|
223
223
|
"shx": "^0.4.0",
|
|
224
224
|
"signal-exit": "^4.1.0",
|
|
225
225
|
"source-map": "^0.7.6",
|
|
@@ -228,17 +228,17 @@
|
|
|
228
228
|
"terser": "^5.48.0",
|
|
229
229
|
"tslib": "^2.8.1",
|
|
230
230
|
"typescript": "^5.9.3",
|
|
231
|
-
"typescript-eslint": "^8.
|
|
232
|
-
"vite": "^7.3.
|
|
231
|
+
"typescript-eslint": "^8.61.0",
|
|
232
|
+
"vite": "^7.3.5",
|
|
233
233
|
"vitepress": "^1.6.4",
|
|
234
|
-
"vue": "^3.5.
|
|
235
|
-
"vue-eslint-parser": "^10.4.
|
|
236
|
-
"vue-tsc": "^3.3.
|
|
234
|
+
"vue": "^3.5.35",
|
|
235
|
+
"vue-eslint-parser": "^10.4.1",
|
|
236
|
+
"vue-tsc": "^3.3.4",
|
|
237
237
|
"wasm-pack": "^0.15.0",
|
|
238
238
|
"yargs-parser": "^21.1.1"
|
|
239
239
|
},
|
|
240
240
|
"overrides": {
|
|
241
|
-
"axios": "^1.
|
|
241
|
+
"axios": "^1.17.0",
|
|
242
242
|
"esbuild": ">0.24.2",
|
|
243
243
|
"lodash-es": ">4.17.22",
|
|
244
244
|
"path-scurry": {
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"readable-stream": "npm:@built-in/readable-stream@1",
|
|
248
248
|
"react": "^18.3.1",
|
|
249
249
|
"react-dom": "^18.3.1",
|
|
250
|
-
"semver": "^7.8.
|
|
250
|
+
"semver": "^7.8.4",
|
|
251
251
|
"tar": ">7.5.6",
|
|
252
252
|
"vite": "$vite"
|
|
253
253
|
},
|