rollup 4.62.0 → 4.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/rollup +5 -5
- package/dist/es/getLogFilter.js +3 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +3 -3
- package/dist/es/shared/node-entry.js +40 -12
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +3 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +5 -3
- 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 +2 -2
- package/dist/shared/rollup.js +38 -12
- package/dist/shared/watch-cli.js +4 -4
- package/dist/shared/watch.js +2 -2
- package/package.json +39 -39
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.62.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.62.2
|
|
5
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
14
14
|
|
|
15
15
|
const process$1 = require('node:process');
|
|
16
|
-
const rollup = require('../shared/rollup.js');
|
|
17
16
|
const require$$2 = require('util');
|
|
18
17
|
const require$$0 = require('path');
|
|
19
18
|
const require$$0$1 = require('fs');
|
|
19
|
+
const rollup = require('../shared/rollup.js');
|
|
20
20
|
const parseAst_js = require('../shared/parseAst.js');
|
|
21
21
|
const fseventsImporter = require('../shared/fsevents-importer.js');
|
|
22
22
|
const promises = require('node:fs/promises');
|
|
@@ -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.62.
|
|
30
|
+
const help = "rollup version 4.62.2\n=====================================\n\nUsage: rollup [options] <entry file>\n\nOptions:\n\n-c, --config <filename> Use this config file (if argument is used but value\n is unspecified, Rollup will try to load configuration files in\n the following order:\n rollup.config.mjs -> rollup.config.cjs -> rollup.config.js)\n-d, --dir <dirname> Directory for chunks (if absent, prints to stdout)\n-e, --external <ids> Comma-separate list of module IDs to exclude\n-f, --format <format> Type of output (amd, cjs, es, iife, umd, system)\n-g, --globals <pairs> Comma-separate list of `moduleID:Global` pairs\n-h, --help Show this help message\n-i, --input <filename> Input (alternative to <entry file>)\n-m, --sourcemap Generate sourcemap (`-m inline` for inline map)\n-n, --name <name> Name for UMD export\n-o, --file <output> Single output file (if absent, prints to stdout)\n-p, --plugin <plugin> Use the plugin specified (may be repeated)\n-v, --version Show version number\n-w, --watch Watch files in bundle and rebuild on changes\n--amd.autoId Generate the AMD ID based off the chunk name\n--amd.basePath <prefix> Path to prepend to auto generated AMD ID\n--amd.define <name> Function to use in place of `define`\n--amd.forceJsExtensionForImports Use `.js` extension in AMD imports\n--amd.id <id> ID for AMD module (default is anonymous)\n--assetFileNames <pattern> Name pattern for emitted assets\n--banner <text> Code to insert at top of bundle (outside wrapper)\n--chunkFileNames <pattern> Name pattern for emitted secondary chunks\n--compact Minify wrapper code\n--context <variable> Specify top-level `this` value\n--no-dynamicImportInCjs Write external dynamic CommonJS imports as require\n--entryFileNames <pattern> Name pattern for emitted entry chunks\n--environment <values> Settings passed to config file (see example)\n--no-esModule Do not add __esModule property\n--exports <mode> Specify export mode (auto, default, named, none)\n--extend Extend global variable defined by --name\n--no-externalImportAttributes Omit import attributes in \"es\" output\n--no-externalLiveBindings Do not generate code to support live bindings\n--failAfterWarnings Exit with an error if the build produced warnings\n--filterLogs <filter> Filter log messages\n--footer <text> Code to insert at end of bundle (outside wrapper)\n--forceExit Force exit the process when done\n--no-freeze Do not freeze namespace objects\n--generatedCode <preset> Which code features to use (es5/es2015)\n--generatedCode.arrowFunctions Use arrow functions in generated code\n--generatedCode.constBindings Use \"const\" in generated code\n--generatedCode.objectShorthand Use shorthand properties in generated code\n--no-generatedCode.reservedNamesAsProps Always quote reserved names as props\n--generatedCode.symbols Use symbols in generated code\n--hashCharacters <name> Use the specified character set for file hashes\n--no-hoistTransitiveImports Do not hoist transitive imports into entry chunks\n--importAttributesKey <name> Use the specified keyword for import attributes\n--no-indent Don't indent result\n--inlineDynamicImports Create single bundle when using dynamic imports\n--no-interop Do not include interop block\n--intro <text> Code to insert at top of bundle (inside wrapper)\n--logLevel <level> Which kind of logs to display\n--no-makeAbsoluteExternalsRelative Prevent normalization of external imports\n--maxParallelFileOps <value> How many files to read in parallel\n--minifyInternalExports Force or disable minification of internal exports\n--noConflict Generate a noConflict method for UMD globals\n--outro <text> Code to insert at end of bundle (inside wrapper)\n--perf Display performance timings\n--no-preserveEntrySignatures Avoid facade chunks for entry points\n--preserveModules Preserve module structure\n--preserveModulesRoot Put preserved modules under this path at root level\n--preserveSymlinks Do not follow symlinks when resolving files\n--no-reexportProtoFromExternal Ignore `__proto__` in star re-exports\n--no-sanitizeFileName Do not replace invalid characters in file names\n--shimMissingExports Create shim variables for missing exports\n--silent Don't print warnings\n--sourcemapBaseUrl <url> Emit absolute sourcemap URLs with given base\n--sourcemapDebugIds Emit unique debug ids in source and sourcemaps\n--sourcemapExcludeSources Do not include source code in source maps\n--sourcemapFile <file> Specify bundle position for source maps\n--sourcemapFileNames <pattern> Name pattern for emitted sourcemaps\n--stdin=ext Specify file extension used for stdin input\n--no-stdin Do not read \"-\" from stdin\n--no-strict Don't emit `\"use strict\";` in the generated modules\n--strictDeprecations Throw errors for deprecated features\n--no-systemNullSetters Do not replace empty SystemJS setters with `null`\n--no-treeshake Disable tree-shaking optimisations\n--no-treeshake.annotations Ignore pure call annotations\n--treeshake.correctVarValueBeforeDeclaration Deoptimize variables until declared\n--treeshake.manualPureFunctions <names> Manually declare functions as pure\n--no-treeshake.moduleSideEffects Assume modules have no side effects\n--no-treeshake.propertyReadSideEffects Ignore property access side effects\n--no-treeshake.tryCatchDeoptimization Do not turn off try-catch-tree-shaking\n--no-treeshake.unknownGlobalSideEffects Assume unknown globals do not throw\n--validate Validate output\n--waitForBundleInput Wait for bundle input files\n--watch.allowInputInsideOutputPath Whether the input path is allowed to be a\n subpath of the output path\n--watch.buildDelay <number> Throttle watch rebuilds\n--no-watch.clearScreen Do not clear the screen when rebuilding\n--watch.exclude <files> Exclude files from being watched\n--watch.include <files> Limit watching to specified files\n--watch.onBundleEnd <cmd> Shell command to run on `\"BUNDLE_END\"` event\n--watch.onBundleStart <cmd> Shell command to run on `\"BUNDLE_START\"` event\n--watch.onEnd <cmd> Shell command to run on `\"END\"` event\n--watch.onError <cmd> Shell command to run on `\"ERROR\"` event\n--watch.onStart <cmd> Shell command to run on `\"START\"` event\n--watch.skipWrite Do not write files to disk when watching\n\nExamples:\n\n# use settings in config file\nrollup -c\n\n# in config file, process.env.INCLUDE_DEPS === 'true'\n# and process.env.BUILD === 'production'\nrollup -c --environment INCLUDE_DEPS,BUILD:production\n\n# create CommonJS bundle.js from src/main.js\nrollup --format=cjs --file=bundle.js -- src/main.js\n\n# create self-executing IIFE using `window.jQuery`\n# and `window._` as external globals\nrollup -f iife --globals jquery:jQuery,lodash:_ \\\n -i src/app.js -o build/app.js -m build/app.js.map\n\nNotes:\n\n* When piping to stdout, only inline sourcemaps are permitted\n\nFor more information visit https://rollupjs.org\n";
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* @license
|
|
@@ -1889,7 +1889,7 @@ if (command.help || (process$1.argv.length <= 2 && process$1.stdin.isTTY)) {
|
|
|
1889
1889
|
console.log(`\n${help}\n`);
|
|
1890
1890
|
}
|
|
1891
1891
|
else if (command.version) {
|
|
1892
|
-
console.log(`rollup v${rollup.version}`);
|
|
1892
|
+
console.log(`rollup v${rollup.package_.version}`);
|
|
1893
1893
|
}
|
|
1894
1894
|
else {
|
|
1895
1895
|
try {
|
package/dist/es/getLogFilter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -49,6 +49,7 @@ const testFilter = (log, key, parts) => {
|
|
|
49
49
|
if (!value.startsWith(parts[0])) {
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
|
+
value = value.slice(parts[0].length);
|
|
52
53
|
const lastPartIndex = parts.length - 1;
|
|
53
54
|
for (let index = 1; index < lastPartIndex; index++) {
|
|
54
55
|
const part = parts[index];
|
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
export {
|
|
10
|
+
export { VERSION, defineConfig, rollup, watch } from './shared/node-entry.js';
|
|
11
11
|
import './shared/parseAst.js';
|
|
12
12
|
import '../native.js';
|
|
13
13
|
import 'node:path';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -27,7 +27,9 @@ function _mergeNamespaces(n, m) {
|
|
|
27
27
|
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
var version = "4.62.
|
|
30
|
+
var version = "4.62.2";
|
|
31
|
+
const package_ = {
|
|
32
|
+
version: version};
|
|
31
33
|
|
|
32
34
|
// src/vlq.ts
|
|
33
35
|
var comma = ",".charCodeAt(0);
|
|
@@ -8185,6 +8187,9 @@ class ExternalChunk {
|
|
|
8185
8187
|
this.renormalizeRenderPath = module.renormalizeRenderPath;
|
|
8186
8188
|
this.suggestedVariableName = module.suggestedVariableName;
|
|
8187
8189
|
}
|
|
8190
|
+
get moduleSideEffects() {
|
|
8191
|
+
return this.moduleInfo.moduleSideEffects;
|
|
8192
|
+
}
|
|
8188
8193
|
getFileName() {
|
|
8189
8194
|
if (this.fileName) {
|
|
8190
8195
|
return this.fileName;
|
|
@@ -18569,10 +18574,15 @@ function renderNamePattern(pattern, patternName, replacements) {
|
|
|
18569
18574
|
function makeUnique(name, { [lowercaseBundleKeys]: reservedLowercaseBundleKeys }) {
|
|
18570
18575
|
if (!reservedLowercaseBundleKeys.has(name.toLowerCase()))
|
|
18571
18576
|
return name;
|
|
18572
|
-
const
|
|
18573
|
-
|
|
18577
|
+
const slashIndex = Math.max(name.lastIndexOf('/'), name.lastIndexOf('\\'));
|
|
18578
|
+
// This will also handle -1 correctly
|
|
18579
|
+
const directory = name.slice(0, slashIndex + 1);
|
|
18580
|
+
const fileName = name.slice(slashIndex + 1);
|
|
18581
|
+
const dotIndex = fileName.indexOf('.', 1);
|
|
18582
|
+
const base = directory + (dotIndex === -1 ? fileName : fileName.slice(0, dotIndex));
|
|
18583
|
+
const extension = dotIndex === -1 ? '' : fileName.slice(dotIndex);
|
|
18574
18584
|
let uniqueName, uniqueIndex = 1;
|
|
18575
|
-
while (reservedLowercaseBundleKeys.has((uniqueName =
|
|
18585
|
+
while (reservedLowercaseBundleKeys.has((uniqueName = base + ++uniqueIndex + extension).toLowerCase()))
|
|
18576
18586
|
;
|
|
18577
18587
|
return uniqueName;
|
|
18578
18588
|
}
|
|
@@ -18952,13 +18962,14 @@ class Chunk {
|
|
|
18952
18962
|
if (this.renderedChunkInfo) {
|
|
18953
18963
|
return this.renderedChunkInfo;
|
|
18954
18964
|
}
|
|
18965
|
+
const renderedDependencies = this.getRenderedDependencies();
|
|
18955
18966
|
return (this.renderedChunkInfo = {
|
|
18956
18967
|
...this.getPreRenderedChunkInfo(),
|
|
18957
18968
|
dynamicImports: this.getDynamicDependencies().map(resolveFileName),
|
|
18958
18969
|
fileName: this.getFileName(),
|
|
18959
18970
|
implicitlyLoadedBefore: Array.from(this.implicitlyLoadedBefore, resolveFileName),
|
|
18960
|
-
importedBindings: getImportedBindingsPerDependency(
|
|
18961
|
-
imports: Array.from(
|
|
18971
|
+
importedBindings: getImportedBindingsPerDependency(renderedDependencies, resolveFileName),
|
|
18972
|
+
imports: Array.from(renderedDependencies.keys(), resolveFileName),
|
|
18962
18973
|
modules: this.renderedModules,
|
|
18963
18974
|
referencedFiles: this.getReferencedFiles()
|
|
18964
18975
|
});
|
|
@@ -19460,6 +19471,18 @@ class Chunk {
|
|
|
19460
19471
|
for (const dependency of this.dependencies) {
|
|
19461
19472
|
const imports = importSpecifiers.get(dependency) || null;
|
|
19462
19473
|
const reexports = reexportSpecifiers.get(dependency) || null;
|
|
19474
|
+
if (imports === null &&
|
|
19475
|
+
reexports === null &&
|
|
19476
|
+
dependency instanceof ExternalChunk &&
|
|
19477
|
+
!dependency.moduleSideEffects &&
|
|
19478
|
+
!this.outputOptions.hoistTransitiveImports) {
|
|
19479
|
+
// A side-effect-free external dependency without imported or
|
|
19480
|
+
// re-exported bindings can only be present because chunk assignment
|
|
19481
|
+
// placed otherwise unrelated modules into this chunk. When transitive
|
|
19482
|
+
// import hoisting is disabled, rendering it would emit a spurious
|
|
19483
|
+
// side effect import, see https://github.com/rollup/rollup/issues/6111
|
|
19484
|
+
continue;
|
|
19485
|
+
}
|
|
19463
19486
|
const namedExportsMode = dependency instanceof ExternalChunk || dependency.exportMode !== 'default';
|
|
19464
19487
|
const importPath = dependency.getImportPath(fileName);
|
|
19465
19488
|
// Separate source-phase imports from regular imports
|
|
@@ -22645,6 +22668,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
|
|
|
22645
22668
|
};
|
|
22646
22669
|
}
|
|
22647
22670
|
|
|
22671
|
+
const rollupVersion$2 = package_.version;
|
|
22648
22672
|
function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, existingPluginNames) {
|
|
22649
22673
|
const { logLevel, onLog } = options;
|
|
22650
22674
|
let cacheable = true;
|
|
@@ -22689,7 +22713,7 @@ function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, exis
|
|
|
22689
22713
|
return graph.moduleLoader.preloadModule(resolvedId);
|
|
22690
22714
|
},
|
|
22691
22715
|
meta: {
|
|
22692
|
-
rollupVersion:
|
|
22716
|
+
rollupVersion: rollupVersion$2,
|
|
22693
22717
|
watchMode: graph.watchMode
|
|
22694
22718
|
},
|
|
22695
22719
|
parse: parseAst,
|
|
@@ -23366,6 +23390,7 @@ async function catchUnfinishedHookActions(pluginDriver, callback) {
|
|
|
23366
23390
|
|
|
23367
23391
|
async function initWasm() { }
|
|
23368
23392
|
|
|
23393
|
+
const rollupVersion$1 = package_.version;
|
|
23369
23394
|
function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
23370
23395
|
plugins = getSortedValidatedPlugins('onLog', plugins);
|
|
23371
23396
|
const minimalPriority = logLevelPriority[logLevel];
|
|
@@ -23390,7 +23415,7 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
|
23390
23415
|
debug: getLogHandler(LOGLEVEL_DEBUG),
|
|
23391
23416
|
error: (log) => error(normalizeLog(log)),
|
|
23392
23417
|
info: getLogHandler(LOGLEVEL_INFO),
|
|
23393
|
-
meta: { rollupVersion:
|
|
23418
|
+
meta: { rollupVersion: rollupVersion$1, watchMode },
|
|
23394
23419
|
warn: getLogHandler(LOGLEVEL_WARN)
|
|
23395
23420
|
}, level, log) === false) {
|
|
23396
23421
|
return;
|
|
@@ -23861,6 +23886,7 @@ const getSourcemapBaseUrl = (config) => {
|
|
|
23861
23886
|
}
|
|
23862
23887
|
};
|
|
23863
23888
|
|
|
23889
|
+
const rollupVersion = package_.version;
|
|
23864
23890
|
// @ts-expect-error TS2540: the polyfill of `asyncDispose`.
|
|
23865
23891
|
Symbol.asyncDispose ??= Symbol('Symbol.asyncDispose');
|
|
23866
23892
|
function rollup(rawInputOptions) {
|
|
@@ -23966,7 +23992,7 @@ async function getProcessedInputOptions(inputOptions, watchMode) {
|
|
|
23966
23992
|
debug: getLogHandler(LOGLEVEL_DEBUG, 'PLUGIN_LOG', logger, name, logLevel),
|
|
23967
23993
|
error: (error_) => error(logPluginError(normalizeLog(error_), name, { hook: 'onLog' })),
|
|
23968
23994
|
info: getLogHandler(LOGLEVEL_INFO, 'PLUGIN_LOG', logger, name, logLevel),
|
|
23969
|
-
meta: { rollupVersion
|
|
23995
|
+
meta: { rollupVersion, watchMode },
|
|
23970
23996
|
warn: getLogHandler(LOGLEVEL_WARN, 'PLUGIN_WARNING', logger, name, logLevel)
|
|
23971
23997
|
}, inputOptions);
|
|
23972
23998
|
if (processedOptions) {
|
|
@@ -24495,4 +24521,6 @@ async function watchInternal(configs, emitter) {
|
|
|
24495
24521
|
new Watcher(watchOptionsList, emitter);
|
|
24496
24522
|
}
|
|
24497
24523
|
|
|
24498
|
-
|
|
24524
|
+
const VERSION = package_.version;
|
|
24525
|
+
|
|
24526
|
+
export { VERSION, createFilter$1 as createFilter, defineConfig, fseventsImporter, getAugmentedNamespace, getDefaultExportFromCjs, rollup, rollupInternal, watch };
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -53,6 +53,7 @@ const testFilter = (log, key, parts) => {
|
|
|
53
53
|
if (!value.startsWith(parts[0])) {
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
|
+
value = value.slice(parts[0].length);
|
|
56
57
|
const lastPartIndex = parts.length - 1;
|
|
57
58
|
for (let index = 1; index < lastPartIndex; index++) {
|
|
58
59
|
const part = parts[index];
|
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -120,8 +120,10 @@ async function watchInternal(configs, emitter) {
|
|
|
120
120
|
new Watcher(watchOptionsList, emitter);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
const VERSION = rollup.package_.version;
|
|
124
|
+
|
|
124
125
|
exports.defineConfig = rollup.defineConfig;
|
|
125
126
|
exports.rollup = rollup.rollup;
|
|
127
|
+
exports.VERSION = VERSION;
|
|
126
128
|
exports.watch = watch;
|
|
127
129
|
//# sourceMappingURL=rollup.js.map
|
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -42,7 +42,9 @@ function _mergeNamespaces(n, m) {
|
|
|
42
42
|
|
|
43
43
|
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
44
|
|
|
45
|
-
var version = "4.62.
|
|
45
|
+
var version = "4.62.2";
|
|
46
|
+
const package_ = {
|
|
47
|
+
version: version};
|
|
46
48
|
|
|
47
49
|
function ensureArray$1(items) {
|
|
48
50
|
if (Array.isArray(items)) {
|
|
@@ -210,10 +212,15 @@ function renderNamePattern(pattern, patternName, replacements) {
|
|
|
210
212
|
function makeUnique(name, { [lowercaseBundleKeys]: reservedLowercaseBundleKeys }) {
|
|
211
213
|
if (!reservedLowercaseBundleKeys.has(name.toLowerCase()))
|
|
212
214
|
return name;
|
|
213
|
-
const
|
|
214
|
-
|
|
215
|
+
const slashIndex = Math.max(name.lastIndexOf('/'), name.lastIndexOf('\\'));
|
|
216
|
+
// This will also handle -1 correctly
|
|
217
|
+
const directory = name.slice(0, slashIndex + 1);
|
|
218
|
+
const fileName = name.slice(slashIndex + 1);
|
|
219
|
+
const dotIndex = fileName.indexOf('.', 1);
|
|
220
|
+
const base = directory + (dotIndex === -1 ? fileName : fileName.slice(0, dotIndex));
|
|
221
|
+
const extension = dotIndex === -1 ? '' : fileName.slice(dotIndex);
|
|
215
222
|
let uniqueName, uniqueIndex = 1;
|
|
216
|
-
while (reservedLowercaseBundleKeys.has((uniqueName =
|
|
223
|
+
while (reservedLowercaseBundleKeys.has((uniqueName = base + ++uniqueIndex + extension).toLowerCase()))
|
|
217
224
|
;
|
|
218
225
|
return uniqueName;
|
|
219
226
|
}
|
|
@@ -878,6 +885,7 @@ function getCacheForUncacheablePlugin(pluginName) {
|
|
|
878
885
|
};
|
|
879
886
|
}
|
|
880
887
|
|
|
888
|
+
const rollupVersion$2 = package_.version;
|
|
881
889
|
function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, existingPluginNames) {
|
|
882
890
|
const { logLevel, onLog } = options;
|
|
883
891
|
let cacheable = true;
|
|
@@ -922,7 +930,7 @@ function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, exis
|
|
|
922
930
|
return graph.moduleLoader.preloadModule(resolvedId);
|
|
923
931
|
},
|
|
924
932
|
meta: {
|
|
925
|
-
rollupVersion:
|
|
933
|
+
rollupVersion: rollupVersion$2,
|
|
926
934
|
watchMode: graph.watchMode
|
|
927
935
|
},
|
|
928
936
|
parse: parseAst_js.parseAst,
|
|
@@ -3792,6 +3800,7 @@ function validateAddonPluginHandler(handler, hookName, plugin) {
|
|
|
3792
3800
|
}
|
|
3793
3801
|
function noReturn() { }
|
|
3794
3802
|
|
|
3803
|
+
const rollupVersion$1 = package_.version;
|
|
3795
3804
|
function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
3796
3805
|
plugins = getSortedValidatedPlugins('onLog', plugins);
|
|
3797
3806
|
const minimalPriority = parseAst_js.logLevelPriority[logLevel];
|
|
@@ -3816,7 +3825,7 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
|
3816
3825
|
debug: getLogHandler(parseAst_js.LOGLEVEL_DEBUG),
|
|
3817
3826
|
error: (log) => parseAst_js.error(normalizeLog(log)),
|
|
3818
3827
|
info: getLogHandler(parseAst_js.LOGLEVEL_INFO),
|
|
3819
|
-
meta: { rollupVersion:
|
|
3828
|
+
meta: { rollupVersion: rollupVersion$1, watchMode },
|
|
3820
3829
|
warn: getLogHandler(parseAst_js.LOGLEVEL_WARN)
|
|
3821
3830
|
}, level, log) === false) {
|
|
3822
3831
|
return;
|
|
@@ -12275,6 +12284,9 @@ class ExternalChunk {
|
|
|
12275
12284
|
this.renormalizeRenderPath = module.renormalizeRenderPath;
|
|
12276
12285
|
this.suggestedVariableName = module.suggestedVariableName;
|
|
12277
12286
|
}
|
|
12287
|
+
get moduleSideEffects() {
|
|
12288
|
+
return this.moduleInfo.moduleSideEffects;
|
|
12289
|
+
}
|
|
12278
12290
|
getFileName() {
|
|
12279
12291
|
if (this.fileName) {
|
|
12280
12292
|
return this.fileName;
|
|
@@ -20446,13 +20458,14 @@ class Chunk {
|
|
|
20446
20458
|
if (this.renderedChunkInfo) {
|
|
20447
20459
|
return this.renderedChunkInfo;
|
|
20448
20460
|
}
|
|
20461
|
+
const renderedDependencies = this.getRenderedDependencies();
|
|
20449
20462
|
return (this.renderedChunkInfo = {
|
|
20450
20463
|
...this.getPreRenderedChunkInfo(),
|
|
20451
20464
|
dynamicImports: this.getDynamicDependencies().map(resolveFileName),
|
|
20452
20465
|
fileName: this.getFileName(),
|
|
20453
20466
|
implicitlyLoadedBefore: Array.from(this.implicitlyLoadedBefore, resolveFileName),
|
|
20454
|
-
importedBindings: getImportedBindingsPerDependency(
|
|
20455
|
-
imports: Array.from(
|
|
20467
|
+
importedBindings: getImportedBindingsPerDependency(renderedDependencies, resolveFileName),
|
|
20468
|
+
imports: Array.from(renderedDependencies.keys(), resolveFileName),
|
|
20456
20469
|
modules: this.renderedModules,
|
|
20457
20470
|
referencedFiles: this.getReferencedFiles()
|
|
20458
20471
|
});
|
|
@@ -20954,6 +20967,18 @@ class Chunk {
|
|
|
20954
20967
|
for (const dependency of this.dependencies) {
|
|
20955
20968
|
const imports = importSpecifiers.get(dependency) || null;
|
|
20956
20969
|
const reexports = reexportSpecifiers.get(dependency) || null;
|
|
20970
|
+
if (imports === null &&
|
|
20971
|
+
reexports === null &&
|
|
20972
|
+
dependency instanceof ExternalChunk &&
|
|
20973
|
+
!dependency.moduleSideEffects &&
|
|
20974
|
+
!this.outputOptions.hoistTransitiveImports) {
|
|
20975
|
+
// A side-effect-free external dependency without imported or
|
|
20976
|
+
// re-exported bindings can only be present because chunk assignment
|
|
20977
|
+
// placed otherwise unrelated modules into this chunk. When transitive
|
|
20978
|
+
// import hoisting is disabled, rendering it would emit a spurious
|
|
20979
|
+
// side effect import, see https://github.com/rollup/rollup/issues/6111
|
|
20980
|
+
continue;
|
|
20981
|
+
}
|
|
20957
20982
|
const namedExportsMode = dependency instanceof ExternalChunk || dependency.exportMode !== 'default';
|
|
20958
20983
|
const importPath = dependency.getImportPath(fileName);
|
|
20959
20984
|
// Separate source-phase imports from regular imports
|
|
@@ -24198,6 +24223,7 @@ const getSourcemapBaseUrl = (config) => {
|
|
|
24198
24223
|
}
|
|
24199
24224
|
};
|
|
24200
24225
|
|
|
24226
|
+
const rollupVersion = package_.version;
|
|
24201
24227
|
// @ts-expect-error TS2540: the polyfill of `asyncDispose`.
|
|
24202
24228
|
Symbol.asyncDispose ??= Symbol('Symbol.asyncDispose');
|
|
24203
24229
|
function rollup(rawInputOptions) {
|
|
@@ -24303,7 +24329,7 @@ async function getProcessedInputOptions(inputOptions, watchMode) {
|
|
|
24303
24329
|
debug: getLogHandler(parseAst_js.LOGLEVEL_DEBUG, 'PLUGIN_LOG', logger, name, logLevel),
|
|
24304
24330
|
error: (error_) => parseAst_js.error(parseAst_js.logPluginError(normalizeLog(error_), name, { hook: 'onLog' })),
|
|
24305
24331
|
info: getLogHandler(parseAst_js.LOGLEVEL_INFO, 'PLUGIN_LOG', logger, name, logLevel),
|
|
24306
|
-
meta: { rollupVersion
|
|
24332
|
+
meta: { rollupVersion, watchMode },
|
|
24307
24333
|
warn: getLogHandler(parseAst_js.LOGLEVEL_WARN, 'PLUGIN_WARNING', logger, name, logLevel)
|
|
24308
24334
|
}, inputOptions);
|
|
24309
24335
|
if (processedOptions) {
|
|
@@ -24410,11 +24436,11 @@ exports.handleError = handleError;
|
|
|
24410
24436
|
exports.isWatchEnabled = isWatchEnabled;
|
|
24411
24437
|
exports.mergeOptions = mergeOptions;
|
|
24412
24438
|
exports.normalizePluginOption = normalizePluginOption;
|
|
24439
|
+
exports.package_ = package_;
|
|
24413
24440
|
exports.pc = pc;
|
|
24414
24441
|
exports.rollup = rollup;
|
|
24415
24442
|
exports.rollupInternal = rollupInternal;
|
|
24416
24443
|
exports.stderr = stderr;
|
|
24417
24444
|
exports.underline = underline;
|
|
24418
|
-
exports.version = version;
|
|
24419
24445
|
exports.yellow = yellow;
|
|
24420
24446
|
//# sourceMappingURL=rollup.js.map
|
package/dist/shared/watch-cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.62.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.62.2
|
|
4
|
+
Fri, 19 Jun 2026 14:55:11 GMT - commit 8faa18777374582bb813d54ce3623f4acf1f9e0b
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -15,11 +15,11 @@ const index = require('./index.js');
|
|
|
15
15
|
const promises = require('node:fs/promises');
|
|
16
16
|
const process$2 = require('node:process');
|
|
17
17
|
const cli = require('../bin/rollup');
|
|
18
|
+
const rollup_js = require('../rollup.js');
|
|
18
19
|
const rollup = require('./rollup.js');
|
|
19
20
|
const parseAst_js = require('./parseAst.js');
|
|
20
21
|
const loadConfigFile_js = require('./loadConfigFile.js');
|
|
21
22
|
const node_child_process = require('node:child_process');
|
|
22
|
-
const rollup_js = require('../rollup.js');
|
|
23
23
|
require('path');
|
|
24
24
|
require('fs');
|
|
25
25
|
require('util');
|
|
@@ -478,7 +478,7 @@ async function watch(command) {
|
|
|
478
478
|
if (!resetScreen) {
|
|
479
479
|
resetScreen = getResetScreen(configs, isTTY);
|
|
480
480
|
}
|
|
481
|
-
resetScreen(rollup.underline(`rollup v${
|
|
481
|
+
resetScreen(rollup.underline(`rollup v${rollup_js.VERSION}`));
|
|
482
482
|
}
|
|
483
483
|
runWatchHook('onStart');
|
|
484
484
|
break;
|
package/dist/shared/watch.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup",
|
|
3
|
-
"version": "4.62.
|
|
3
|
+
"version": "4.62.2",
|
|
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.62.
|
|
118
|
-
"@rollup/rollup-android-arm64": "4.62.
|
|
119
|
-
"@rollup/rollup-win32-arm64-msvc": "4.62.
|
|
120
|
-
"@rollup/rollup-freebsd-arm64": "4.62.
|
|
121
|
-
"@rollup/rollup-linux-arm64-gnu": "4.62.
|
|
122
|
-
"@rollup/rollup-linux-arm64-musl": "4.62.
|
|
123
|
-
"@rollup/rollup-android-arm-eabi": "4.62.
|
|
124
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.62.
|
|
125
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.62.
|
|
126
|
-
"@rollup/rollup-win32-ia32-msvc": "4.62.
|
|
127
|
-
"@rollup/rollup-linux-loong64-gnu": "4.62.
|
|
128
|
-
"@rollup/rollup-linux-loong64-musl": "4.62.
|
|
129
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.62.
|
|
130
|
-
"@rollup/rollup-linux-riscv64-musl": "4.62.
|
|
131
|
-
"@rollup/rollup-linux-ppc64-gnu": "4.62.
|
|
132
|
-
"@rollup/rollup-linux-ppc64-musl": "4.62.
|
|
133
|
-
"@rollup/rollup-linux-s390x-gnu": "4.62.
|
|
134
|
-
"@rollup/rollup-darwin-x64": "4.62.
|
|
135
|
-
"@rollup/rollup-win32-x64-gnu": "4.62.
|
|
136
|
-
"@rollup/rollup-win32-x64-msvc": "4.62.
|
|
137
|
-
"@rollup/rollup-freebsd-x64": "4.62.
|
|
138
|
-
"@rollup/rollup-linux-x64-gnu": "4.62.
|
|
139
|
-
"@rollup/rollup-linux-x64-musl": "4.62.
|
|
140
|
-
"@rollup/rollup-openbsd-x64": "4.62.
|
|
141
|
-
"@rollup/rollup-openharmony-arm64": "4.62.
|
|
117
|
+
"@rollup/rollup-darwin-arm64": "4.62.2",
|
|
118
|
+
"@rollup/rollup-android-arm64": "4.62.2",
|
|
119
|
+
"@rollup/rollup-win32-arm64-msvc": "4.62.2",
|
|
120
|
+
"@rollup/rollup-freebsd-arm64": "4.62.2",
|
|
121
|
+
"@rollup/rollup-linux-arm64-gnu": "4.62.2",
|
|
122
|
+
"@rollup/rollup-linux-arm64-musl": "4.62.2",
|
|
123
|
+
"@rollup/rollup-android-arm-eabi": "4.62.2",
|
|
124
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.62.2",
|
|
125
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.62.2",
|
|
126
|
+
"@rollup/rollup-win32-ia32-msvc": "4.62.2",
|
|
127
|
+
"@rollup/rollup-linux-loong64-gnu": "4.62.2",
|
|
128
|
+
"@rollup/rollup-linux-loong64-musl": "4.62.2",
|
|
129
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.62.2",
|
|
130
|
+
"@rollup/rollup-linux-riscv64-musl": "4.62.2",
|
|
131
|
+
"@rollup/rollup-linux-ppc64-gnu": "4.62.2",
|
|
132
|
+
"@rollup/rollup-linux-ppc64-musl": "4.62.2",
|
|
133
|
+
"@rollup/rollup-linux-s390x-gnu": "4.62.2",
|
|
134
|
+
"@rollup/rollup-darwin-x64": "4.62.2",
|
|
135
|
+
"@rollup/rollup-win32-x64-gnu": "4.62.2",
|
|
136
|
+
"@rollup/rollup-win32-x64-msvc": "4.62.2",
|
|
137
|
+
"@rollup/rollup-freebsd-x64": "4.62.2",
|
|
138
|
+
"@rollup/rollup-linux-x64-gnu": "4.62.2",
|
|
139
|
+
"@rollup/rollup-linux-x64-musl": "4.62.2",
|
|
140
|
+
"@rollup/rollup-openbsd-x64": "4.62.2",
|
|
141
|
+
"@rollup/rollup-openharmony-arm64": "4.62.2"
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
144
|
"@types/estree": "1.0.9"
|
|
@@ -153,8 +153,8 @@
|
|
|
153
153
|
"@codemirror/search": "^6.7.0",
|
|
154
154
|
"@codemirror/state": "^6.6.0",
|
|
155
155
|
"@codemirror/view": "^6.43.1",
|
|
156
|
-
"@emnapi/core": "^1.11.
|
|
157
|
-
"@emnapi/runtime": "^1.11.
|
|
156
|
+
"@emnapi/core": "^1.11.1",
|
|
157
|
+
"@emnapi/runtime": "^1.11.1",
|
|
158
158
|
"@eslint/js": "^10.0.1",
|
|
159
159
|
"@inquirer/prompts": "^7.10.1",
|
|
160
160
|
"@jridgewell/sourcemap-codec": "^1.5.5",
|
|
@@ -171,12 +171,12 @@
|
|
|
171
171
|
"@rollup/pluginutils": "^5.4.0",
|
|
172
172
|
"@shikijs/vitepress-twoslash": "^4.2.0",
|
|
173
173
|
"@types/mocha": "^10.0.10",
|
|
174
|
-
"@types/node": "^20.19.
|
|
174
|
+
"@types/node": "^20.19.43",
|
|
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.
|
|
179
|
-
"acorn": "^8.
|
|
178
|
+
"@vue/language-server": "^3.3.5",
|
|
179
|
+
"acorn": "^8.17.0",
|
|
180
180
|
"acorn-import-assertions": "^1.9.0",
|
|
181
181
|
"acorn-import-phases": "^1.0.4",
|
|
182
182
|
"acorn-jsx": "^5.3.2",
|
|
@@ -188,10 +188,10 @@
|
|
|
188
188
|
"date-time": "^4.0.0",
|
|
189
189
|
"es5-shim": "^4.6.7",
|
|
190
190
|
"es6-shim": "^0.35.8",
|
|
191
|
-
"eslint": "^10.
|
|
191
|
+
"eslint": "^10.5.0",
|
|
192
192
|
"eslint-config-prettier": "^10.1.8",
|
|
193
193
|
"eslint-plugin-prettier": "^5.5.6",
|
|
194
|
-
"eslint-plugin-unicorn": "^
|
|
194
|
+
"eslint-plugin-unicorn": "^66.0.0",
|
|
195
195
|
"eslint-plugin-vue": "^10.9.2",
|
|
196
196
|
"fixturify": "^3.0.0",
|
|
197
197
|
"flru": "^1.0.2",
|
|
@@ -203,7 +203,7 @@
|
|
|
203
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.7",
|
|
207
207
|
"mocha": "11.7.6",
|
|
208
208
|
"nodemon": "^3.1.14",
|
|
209
209
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
@@ -217,7 +217,7 @@
|
|
|
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.62.0",
|
|
221
221
|
"rollup-plugin-license": "^3.7.1",
|
|
222
222
|
"semver": "^7.8.4",
|
|
223
223
|
"shx": "^0.4.0",
|
|
@@ -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.61.
|
|
231
|
+
"typescript-eslint": "^8.61.1",
|
|
232
232
|
"vite": "^7.3.5",
|
|
233
233
|
"vitepress": "^1.6.4",
|
|
234
|
-
"vue": "^3.5.
|
|
234
|
+
"vue": "^3.5.38",
|
|
235
235
|
"vue-eslint-parser": "^10.4.1",
|
|
236
|
-
"vue-tsc": "^3.3.
|
|
236
|
+
"vue-tsc": "^3.3.5",
|
|
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.18.0",
|
|
242
242
|
"esbuild": ">0.24.2",
|
|
243
243
|
"lodash-es": ">4.17.22",
|
|
244
244
|
"path-scurry": {
|