rollup 4.42.0 → 4.44.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 +2 -2
- 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 +61 -30
- 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.d.ts +76 -0
- 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 +75 -31
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +33 -32
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.44.0
|
|
5
|
+
Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
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.44.0
|
|
4
|
+
Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -13,9 +13,21 @@ import { posix, isAbsolute, resolve, win32 } from 'path';
|
|
|
13
13
|
import { parseAsync, xxhashBase16, xxhashBase64Url, xxhashBase36 } from '../../native.js';
|
|
14
14
|
import process$1, { env } from 'node:process';
|
|
15
15
|
import { performance } from 'node:perf_hooks';
|
|
16
|
-
import
|
|
16
|
+
import * as promises from 'node:fs/promises';
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
function _mergeNamespaces(n, m) {
|
|
19
|
+
for (var i = 0; i < m.length; i++) {
|
|
20
|
+
const e = m[i];
|
|
21
|
+
if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
|
|
22
|
+
if (k !== 'default' && !(k in n)) {
|
|
23
|
+
n[k] = e[k];
|
|
24
|
+
}
|
|
25
|
+
} }
|
|
26
|
+
}
|
|
27
|
+
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var version = "4.44.0";
|
|
19
31
|
|
|
20
32
|
const comma = ','.charCodeAt(0);
|
|
21
33
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -16413,14 +16425,18 @@ function getOriginalLocation(sourcemapChain, location) {
|
|
|
16413
16425
|
if (line) {
|
|
16414
16426
|
const filteredLine = line.filter((segment) => segment.length > 1);
|
|
16415
16427
|
const lastSegment = filteredLine[filteredLine.length - 1];
|
|
16416
|
-
|
|
16428
|
+
let previousSegment = filteredLine[0];
|
|
16429
|
+
for (let segment of filteredLine) {
|
|
16417
16430
|
if (segment[0] >= location.column || segment === lastSegment) {
|
|
16431
|
+
const notMatched = segment[0] !== location.column;
|
|
16432
|
+
segment = notMatched ? previousSegment : segment;
|
|
16418
16433
|
location = {
|
|
16419
16434
|
column: segment[3],
|
|
16420
16435
|
line: segment[2] + 1
|
|
16421
16436
|
};
|
|
16422
16437
|
continue traceSourcemap;
|
|
16423
16438
|
}
|
|
16439
|
+
previousSegment = segment;
|
|
16424
16440
|
}
|
|
16425
16441
|
}
|
|
16426
16442
|
throw new Error("Can't resolve original location of error.");
|
|
@@ -20011,10 +20027,21 @@ class Link {
|
|
|
20011
20027
|
let searchEnd = segments.length - 1;
|
|
20012
20028
|
while (searchStart <= searchEnd) {
|
|
20013
20029
|
const m = (searchStart + searchEnd) >> 1;
|
|
20014
|
-
|
|
20030
|
+
let segment = segments[m];
|
|
20015
20031
|
// If a sourcemap does not have sufficient resolution to contain a
|
|
20016
|
-
// necessary mapping, e.g. because it only contains line information
|
|
20017
|
-
//
|
|
20032
|
+
// necessary mapping, e.g. because it only contains line information or
|
|
20033
|
+
// the column is not precise (e.g. the sourcemap is generated by esbuild, segment[0] may be shorter than the location of the first letter),
|
|
20034
|
+
// we approximate by finding the closest segment whose segment[0] is less than the given column
|
|
20035
|
+
if (segment[0] !== column && searchStart === searchEnd) {
|
|
20036
|
+
let approximatedSegmentIndex = 0;
|
|
20037
|
+
for (let index = 0; index < segments.length; index++) {
|
|
20038
|
+
if (segments[index][0] > column) {
|
|
20039
|
+
break;
|
|
20040
|
+
}
|
|
20041
|
+
approximatedSegmentIndex = index;
|
|
20042
|
+
}
|
|
20043
|
+
segment = segments[approximatedSegmentIndex];
|
|
20044
|
+
}
|
|
20018
20045
|
if (segment[0] === column || searchStart === searchEnd) {
|
|
20019
20046
|
if (segment.length == 1)
|
|
20020
20047
|
return null;
|
|
@@ -20616,7 +20643,7 @@ function resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolve
|
|
|
20616
20643
|
return pluginDriver.hookFirstAndGetPlugin('resolveId', [source, importer, { attributes, custom: customOptions, isEntry }], replaceContext, skipped);
|
|
20617
20644
|
}
|
|
20618
20645
|
|
|
20619
|
-
async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes) {
|
|
20646
|
+
async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes, fs) {
|
|
20620
20647
|
const pluginResult = await resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes);
|
|
20621
20648
|
if (pluginResult != null) {
|
|
20622
20649
|
const [resolveIdResult, plugin] = pluginResult;
|
|
@@ -20642,22 +20669,22 @@ async function resolveId(source, importer, preserveSymlinks, pluginDriver, modul
|
|
|
20642
20669
|
// absolute path is created. Absolute importees therefore shortcircuit the
|
|
20643
20670
|
// resolve call and require no special handing on our part.
|
|
20644
20671
|
// See https://nodejs.org/api/path.html#path_path_resolve_paths
|
|
20645
|
-
return addJsExtensionIfNecessary(importer ? resolve$1(dirname(importer), source) : resolve$1(source), preserveSymlinks);
|
|
20672
|
+
return addJsExtensionIfNecessary(importer ? resolve$1(dirname(importer), source) : resolve$1(source), preserveSymlinks, fs);
|
|
20646
20673
|
}
|
|
20647
|
-
async function addJsExtensionIfNecessary(file, preserveSymlinks) {
|
|
20648
|
-
return ((await findFile(file, preserveSymlinks)) ??
|
|
20649
|
-
(await findFile(file + '.mjs', preserveSymlinks)) ??
|
|
20650
|
-
(await findFile(file + '.js', preserveSymlinks)));
|
|
20674
|
+
async function addJsExtensionIfNecessary(file, preserveSymlinks, fs) {
|
|
20675
|
+
return ((await findFile(file, preserveSymlinks, fs)) ??
|
|
20676
|
+
(await findFile(file + '.mjs', preserveSymlinks, fs)) ??
|
|
20677
|
+
(await findFile(file + '.js', preserveSymlinks, fs)));
|
|
20651
20678
|
}
|
|
20652
|
-
async function findFile(file, preserveSymlinks) {
|
|
20679
|
+
async function findFile(file, preserveSymlinks, fs) {
|
|
20653
20680
|
try {
|
|
20654
|
-
const stats = await lstat(file);
|
|
20681
|
+
const stats = await fs.lstat(file);
|
|
20655
20682
|
if (!preserveSymlinks && stats.isSymbolicLink())
|
|
20656
|
-
return await findFile(await realpath(file), preserveSymlinks);
|
|
20683
|
+
return await findFile(await fs.realpath(file), preserveSymlinks, fs);
|
|
20657
20684
|
if ((preserveSymlinks && stats.isSymbolicLink()) || stats.isFile()) {
|
|
20658
20685
|
// check case
|
|
20659
20686
|
const name = basename(file);
|
|
20660
|
-
const files = await readdir(dirname(file));
|
|
20687
|
+
const files = await fs.readdir(dirname(file));
|
|
20661
20688
|
if (files.includes(name))
|
|
20662
20689
|
return file;
|
|
20663
20690
|
}
|
|
@@ -21053,7 +21080,7 @@ class ModuleLoader {
|
|
|
21053
21080
|
this.nextEntryModuleIndex = 0;
|
|
21054
21081
|
this.resolveId = async (source, importer, customOptions, isEntry, attributes, skip = null) => this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(source, importer, false)
|
|
21055
21082
|
? false
|
|
21056
|
-
: await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === 'boolean' ? isEntry : !importer, attributes), importer, source), attributes);
|
|
21083
|
+
: await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === 'boolean' ? isEntry : !importer, attributes, this.options.fs), importer, source), attributes);
|
|
21057
21084
|
this.hasModuleSideEffects = options.treeshake
|
|
21058
21085
|
? options.treeshake.moduleSideEffects
|
|
21059
21086
|
: () => true;
|
|
@@ -21144,7 +21171,7 @@ class ModuleLoader {
|
|
|
21144
21171
|
if (content !== null)
|
|
21145
21172
|
return content;
|
|
21146
21173
|
this.graph.watchFiles[id] = true;
|
|
21147
|
-
return await readFile(id, 'utf8');
|
|
21174
|
+
return (await this.options.fs.readFile(id, { encoding: 'utf8' }));
|
|
21148
21175
|
});
|
|
21149
21176
|
}
|
|
21150
21177
|
catch (error_) {
|
|
@@ -21412,7 +21439,7 @@ class ModuleLoader {
|
|
|
21412
21439
|
return resolvedId;
|
|
21413
21440
|
}
|
|
21414
21441
|
async loadEntryModule(unresolvedId, isEntry, importer, implicitlyLoadedBefore, isLoadForManualChunks = false) {
|
|
21415
|
-
const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, EMPTY_OBJECT, true, EMPTY_OBJECT);
|
|
21442
|
+
const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, EMPTY_OBJECT, true, EMPTY_OBJECT, this.options.fs);
|
|
21416
21443
|
if (resolveIdResult == null) {
|
|
21417
21444
|
return error(implicitlyLoadedBefore === null
|
|
21418
21445
|
? logUnresolvedEntry(unresolvedId)
|
|
@@ -21934,6 +21961,7 @@ function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, exis
|
|
|
21934
21961
|
error(error_) {
|
|
21935
21962
|
return error(logPluginError(normalizeLog(error_), plugin.name));
|
|
21936
21963
|
},
|
|
21964
|
+
fs: options.fs,
|
|
21937
21965
|
getFileName: fileEmitter.getFileName,
|
|
21938
21966
|
getModuleIds: () => graph.modulesById.keys(),
|
|
21939
21967
|
getModuleInfo: graph.getModuleInfo,
|
|
@@ -22653,6 +22681,10 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
|
22653
22681
|
return logger;
|
|
22654
22682
|
}
|
|
22655
22683
|
|
|
22684
|
+
const fs = /*#__PURE__*/_mergeNamespaces({
|
|
22685
|
+
__proto__: null
|
|
22686
|
+
}, [promises]);
|
|
22687
|
+
|
|
22656
22688
|
async function normalizeInputOptions(config, watchMode) {
|
|
22657
22689
|
// These are options that may trigger special warnings or behaviour later
|
|
22658
22690
|
// if the user did not select an explicit value
|
|
@@ -22669,6 +22701,7 @@ async function normalizeInputOptions(config, watchMode) {
|
|
|
22669
22701
|
experimentalCacheExpiry: config.experimentalCacheExpiry ?? 10,
|
|
22670
22702
|
experimentalLogSideEffects: config.experimentalLogSideEffects || false,
|
|
22671
22703
|
external: getIdMatcher(config.external),
|
|
22704
|
+
fs: config.fs ?? fs,
|
|
22672
22705
|
input: getInput(config),
|
|
22673
22706
|
jsx: getJsx(config),
|
|
22674
22707
|
logLevel,
|
|
@@ -22758,12 +22791,9 @@ const getJsx = (config) => {
|
|
|
22758
22791
|
};
|
|
22759
22792
|
const getMaxParallelFileOps = (config) => {
|
|
22760
22793
|
const maxParallelFileOps = config.maxParallelFileOps;
|
|
22761
|
-
if (typeof maxParallelFileOps
|
|
22762
|
-
|
|
22763
|
-
|
|
22764
|
-
return maxParallelFileOps;
|
|
22765
|
-
}
|
|
22766
|
-
return 20;
|
|
22794
|
+
if (typeof maxParallelFileOps !== 'number' || maxParallelFileOps <= 0)
|
|
22795
|
+
return Infinity;
|
|
22796
|
+
return maxParallelFileOps;
|
|
22767
22797
|
};
|
|
22768
22798
|
const getModuleContext = (config, context) => {
|
|
22769
22799
|
const configModuleContext = config.moduleContext;
|
|
@@ -23236,7 +23266,7 @@ async function handleGenerateWrite(isWrite, inputOptions, unsetInputOptions, raw
|
|
|
23236
23266
|
if (!outputOptions.dir && !outputOptions.file) {
|
|
23237
23267
|
return error(logMissingFileOrDirOption());
|
|
23238
23268
|
}
|
|
23239
|
-
await Promise.all(Object.values(generated).map(chunk => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions))));
|
|
23269
|
+
await Promise.all(Object.values(generated).map(chunk => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions, inputOptions))));
|
|
23240
23270
|
await outputPluginDriver.hookParallel('writeBundle', [outputOptions, generated]);
|
|
23241
23271
|
timeEnd('WRITE', 1);
|
|
23242
23272
|
}
|
|
@@ -23285,7 +23315,7 @@ function getSortingFileType(file) {
|
|
|
23285
23315
|
}
|
|
23286
23316
|
return SortingFileType.SECONDARY_CHUNK;
|
|
23287
23317
|
}
|
|
23288
|
-
async function writeOutputFile(outputFile, outputOptions) {
|
|
23318
|
+
async function writeOutputFile(outputFile, outputOptions, { fs: { mkdir, writeFile } }) {
|
|
23289
23319
|
const fileName = resolve$1(outputOptions.dir || dirname(outputOptions.file), outputFile.fileName);
|
|
23290
23320
|
// 'recursive: true' does not throw if the folder structure, or parts of it, already exist
|
|
23291
23321
|
await mkdir(dirname(fileName), { recursive: true });
|
|
@@ -23466,7 +23496,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
23466
23496
|
outputOptionsArray.push({});
|
|
23467
23497
|
const outputOptions = await Promise.all(outputOptionsArray.map(singleOutputOptions => mergeOutputOptions(singleOutputOptions, command, log)));
|
|
23468
23498
|
warnUnknownOptions(command, [
|
|
23469
|
-
...Object.keys(inputOptions),
|
|
23499
|
+
...Object.keys(inputOptions).filter(option => option !== 'fs'),
|
|
23470
23500
|
...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapIgnoreList' && option !== 'sourcemapPathTransform'),
|
|
23471
23501
|
...Object.keys(commandAliases),
|
|
23472
23502
|
'bundleConfigAsCjs',
|
|
@@ -23512,6 +23542,7 @@ function mergeInputOptions(config, overrides, plugins, log, onLog) {
|
|
|
23512
23542
|
experimentalCacheExpiry: getOption('experimentalCacheExpiry'),
|
|
23513
23543
|
experimentalLogSideEffects: getOption('experimentalLogSideEffects'),
|
|
23514
23544
|
external: getExternal(config, overrides),
|
|
23545
|
+
fs: getOption('fs'),
|
|
23515
23546
|
input: getOption('input') || [],
|
|
23516
23547
|
jsx: getObjectOption(config, overrides, 'jsx', objectifyOptionWithPresets(jsxPresets, 'jsx', URL_JSX, 'false, ')),
|
|
23517
23548
|
logLevel: getOption('logLevel'),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.44.0
|
|
4
|
+
Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -894,7 +894,7 @@ function logRedeclarationError(name) {
|
|
|
894
894
|
function logReservedNamespace(namespace) {
|
|
895
895
|
return {
|
|
896
896
|
code: RESERVED_NAMESPACE,
|
|
897
|
-
message: `You have
|
|
897
|
+
message: `You have overridden reserved namespace "${namespace}"`
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
function logModuleParseError(error, moduleId) {
|
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.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ export interface PluginContext extends MinimalPluginContext {
|
|
|
244
244
|
debug: LoggingFunction;
|
|
245
245
|
emitFile: EmitFile;
|
|
246
246
|
error: (error: RollupError | string) => never;
|
|
247
|
+
fs: RollupFsModule;
|
|
247
248
|
getFileName: (fileReferenceId: string) => string;
|
|
248
249
|
getModuleIds: () => IterableIterator<string>;
|
|
249
250
|
getModuleInfo: GetModuleInfo;
|
|
@@ -671,6 +672,7 @@ export interface InputOptions {
|
|
|
671
672
|
experimentalCacheExpiry?: number;
|
|
672
673
|
experimentalLogSideEffects?: boolean;
|
|
673
674
|
external?: ExternalOption;
|
|
675
|
+
fs?: RollupFsModule;
|
|
674
676
|
input?: InputOption;
|
|
675
677
|
jsx?: false | JsxPreset | JsxOptions;
|
|
676
678
|
logLevel?: LogLevelOption;
|
|
@@ -699,6 +701,7 @@ export interface NormalizedInputOptions {
|
|
|
699
701
|
experimentalCacheExpiry: number;
|
|
700
702
|
experimentalLogSideEffects: boolean;
|
|
701
703
|
external: IsExternal;
|
|
704
|
+
fs: RollupFsModule;
|
|
702
705
|
input: string[] | Record<string, string>;
|
|
703
706
|
jsx: false | NormalizedJsxOptions;
|
|
704
707
|
logLevel: LogLevelOption;
|
|
@@ -1103,3 +1106,76 @@ export function defineConfig(optionsFunction: RollupOptionsFunction): RollupOpti
|
|
|
1103
1106
|
export type RollupOptionsFunction = (
|
|
1104
1107
|
commandLineArguments: Record<string, any>
|
|
1105
1108
|
) => MaybePromise<RollupOptions | RollupOptions[]>;
|
|
1109
|
+
|
|
1110
|
+
export interface RollupFsModule {
|
|
1111
|
+
appendFile(
|
|
1112
|
+
path: string,
|
|
1113
|
+
data: string | Uint8Array,
|
|
1114
|
+
options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number }
|
|
1115
|
+
): Promise<void>;
|
|
1116
|
+
|
|
1117
|
+
copyFile(source: string, destination: string, mode?: string | number): Promise<void>;
|
|
1118
|
+
|
|
1119
|
+
mkdir(path: string, options?: { recursive?: boolean; mode?: string | number }): Promise<void>;
|
|
1120
|
+
|
|
1121
|
+
mkdtemp(prefix: string): Promise<string>;
|
|
1122
|
+
|
|
1123
|
+
readdir(path: string, options?: { withFileTypes?: false }): Promise<string[]>;
|
|
1124
|
+
readdir(path: string, options?: { withFileTypes: true }): Promise<RollupDirectoryEntry[]>;
|
|
1125
|
+
|
|
1126
|
+
readFile(
|
|
1127
|
+
path: string,
|
|
1128
|
+
options?: { encoding?: null; flag?: string | number; signal?: AbortSignal }
|
|
1129
|
+
): Promise<Uint8Array>;
|
|
1130
|
+
readFile(
|
|
1131
|
+
path: string,
|
|
1132
|
+
options?: { encoding: BufferEncoding; flag?: string | number; signal?: AbortSignal }
|
|
1133
|
+
): Promise<string>;
|
|
1134
|
+
|
|
1135
|
+
realpath(path: string): Promise<string>;
|
|
1136
|
+
|
|
1137
|
+
rename(oldPath: string, newPath: string): Promise<void>;
|
|
1138
|
+
|
|
1139
|
+
rmdir(path: string, options?: { recursive?: boolean }): Promise<void>;
|
|
1140
|
+
|
|
1141
|
+
stat(path: string): Promise<RollupFileStats>;
|
|
1142
|
+
|
|
1143
|
+
lstat(path: string): Promise<RollupFileStats>;
|
|
1144
|
+
|
|
1145
|
+
unlink(path: string): Promise<void>;
|
|
1146
|
+
|
|
1147
|
+
writeFile(
|
|
1148
|
+
path: string,
|
|
1149
|
+
data: string | Uint8Array,
|
|
1150
|
+
options?: { encoding?: BufferEncoding | null; mode?: string | number; flag?: string | number }
|
|
1151
|
+
): Promise<void>;
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
export type BufferEncoding =
|
|
1155
|
+
| 'ascii'
|
|
1156
|
+
| 'utf8'
|
|
1157
|
+
| 'utf16le'
|
|
1158
|
+
| 'ucs2'
|
|
1159
|
+
| 'base64'
|
|
1160
|
+
| 'base64url'
|
|
1161
|
+
| 'latin1'
|
|
1162
|
+
| 'binary'
|
|
1163
|
+
| 'hex';
|
|
1164
|
+
|
|
1165
|
+
export interface RollupDirectoryEntry {
|
|
1166
|
+
isFile(): boolean;
|
|
1167
|
+
isDirectory(): boolean;
|
|
1168
|
+
isSymbolicLink(): boolean;
|
|
1169
|
+
name: string;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
export interface RollupFileStats {
|
|
1173
|
+
isFile(): boolean;
|
|
1174
|
+
isDirectory(): boolean;
|
|
1175
|
+
isSymbolicLink(): boolean;
|
|
1176
|
+
size: number;
|
|
1177
|
+
mtime: Date;
|
|
1178
|
+
ctime: Date;
|
|
1179
|
+
atime: Date;
|
|
1180
|
+
birthtime: Date;
|
|
1181
|
+
}
|
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.44.0
|
|
4
|
+
Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -836,7 +836,7 @@ function logRedeclarationError(name) {
|
|
|
836
836
|
function logReservedNamespace(namespace) {
|
|
837
837
|
return {
|
|
838
838
|
code: RESERVED_NAMESPACE,
|
|
839
|
-
message: `You have
|
|
839
|
+
message: `You have overridden reserved namespace "${namespace}"`
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
function logModuleParseError(error, moduleId) {
|
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.44.0
|
|
4
|
+
Thu, 19 Jun 2025 06:21:58 GMT - commit fa4b2842c823f6a61f6b994a28b7fcb54419b6c6
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -17,7 +17,32 @@ const native_js = require('../native.js');
|
|
|
17
17
|
const node_perf_hooks = require('node:perf_hooks');
|
|
18
18
|
const promises = require('node:fs/promises');
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
function _interopNamespaceDefault(e) {
|
|
21
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
|
|
22
|
+
if (e) {
|
|
23
|
+
for (const k in e) {
|
|
24
|
+
n[k] = e[k];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
n.default = e;
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _mergeNamespaces(n, m) {
|
|
32
|
+
for (var i = 0; i < m.length; i++) {
|
|
33
|
+
const e = m[i];
|
|
34
|
+
if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
|
|
35
|
+
if (k !== 'default' && !(k in n)) {
|
|
36
|
+
n[k] = e[k];
|
|
37
|
+
}
|
|
38
|
+
} }
|
|
39
|
+
}
|
|
40
|
+
return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
|
|
44
|
+
|
|
45
|
+
var version = "4.44.0";
|
|
21
46
|
|
|
22
47
|
function ensureArray$1(items) {
|
|
23
48
|
if (Array.isArray(items)) {
|
|
@@ -887,6 +912,7 @@ function getPluginContext(plugin, pluginCache, graph, options, fileEmitter, exis
|
|
|
887
912
|
error(error_) {
|
|
888
913
|
return parseAst_js.error(parseAst_js.logPluginError(normalizeLog(error_), plugin.name));
|
|
889
914
|
},
|
|
915
|
+
fs: options.fs,
|
|
890
916
|
getFileName: fileEmitter.getFileName,
|
|
891
917
|
getModuleIds: () => graph.modulesById.keys(),
|
|
892
918
|
getModuleInfo: graph.getModuleInfo,
|
|
@@ -3514,7 +3540,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
3514
3540
|
outputOptionsArray.push({});
|
|
3515
3541
|
const outputOptions = await Promise.all(outputOptionsArray.map(singleOutputOptions => mergeOutputOptions(singleOutputOptions, command, log)));
|
|
3516
3542
|
warnUnknownOptions(command, [
|
|
3517
|
-
...Object.keys(inputOptions),
|
|
3543
|
+
...Object.keys(inputOptions).filter(option => option !== 'fs'),
|
|
3518
3544
|
...Object.keys(outputOptions[0]).filter(option => option !== 'sourcemapIgnoreList' && option !== 'sourcemapPathTransform'),
|
|
3519
3545
|
...Object.keys(commandAliases),
|
|
3520
3546
|
'bundleConfigAsCjs',
|
|
@@ -3560,6 +3586,7 @@ function mergeInputOptions(config, overrides, plugins, log, onLog) {
|
|
|
3560
3586
|
experimentalCacheExpiry: getOption('experimentalCacheExpiry'),
|
|
3561
3587
|
experimentalLogSideEffects: getOption('experimentalLogSideEffects'),
|
|
3562
3588
|
external: getExternal(config, overrides),
|
|
3589
|
+
fs: getOption('fs'),
|
|
3563
3590
|
input: getOption('input') || [],
|
|
3564
3591
|
jsx: getObjectOption(config, overrides, 'jsx', objectifyOptionWithPresets(jsxPresets, 'jsx', parseAst_js.URL_JSX, 'false, ')),
|
|
3565
3592
|
logLevel: getOption('logLevel'),
|
|
@@ -18000,14 +18027,18 @@ function getOriginalLocation(sourcemapChain, location) {
|
|
|
18000
18027
|
if (line) {
|
|
18001
18028
|
const filteredLine = line.filter((segment) => segment.length > 1);
|
|
18002
18029
|
const lastSegment = filteredLine[filteredLine.length - 1];
|
|
18003
|
-
|
|
18030
|
+
let previousSegment = filteredLine[0];
|
|
18031
|
+
for (let segment of filteredLine) {
|
|
18004
18032
|
if (segment[0] >= location.column || segment === lastSegment) {
|
|
18033
|
+
const notMatched = segment[0] !== location.column;
|
|
18034
|
+
segment = notMatched ? previousSegment : segment;
|
|
18005
18035
|
location = {
|
|
18006
18036
|
column: segment[3],
|
|
18007
18037
|
line: segment[2] + 1
|
|
18008
18038
|
};
|
|
18009
18039
|
continue traceSourcemap;
|
|
18010
18040
|
}
|
|
18041
|
+
previousSegment = segment;
|
|
18011
18042
|
}
|
|
18012
18043
|
}
|
|
18013
18044
|
throw new Error("Can't resolve original location of error.");
|
|
@@ -21489,10 +21520,21 @@ class Link {
|
|
|
21489
21520
|
let searchEnd = segments.length - 1;
|
|
21490
21521
|
while (searchStart <= searchEnd) {
|
|
21491
21522
|
const m = (searchStart + searchEnd) >> 1;
|
|
21492
|
-
|
|
21523
|
+
let segment = segments[m];
|
|
21493
21524
|
// If a sourcemap does not have sufficient resolution to contain a
|
|
21494
|
-
// necessary mapping, e.g. because it only contains line information
|
|
21495
|
-
//
|
|
21525
|
+
// necessary mapping, e.g. because it only contains line information or
|
|
21526
|
+
// the column is not precise (e.g. the sourcemap is generated by esbuild, segment[0] may be shorter than the location of the first letter),
|
|
21527
|
+
// we approximate by finding the closest segment whose segment[0] is less than the given column
|
|
21528
|
+
if (segment[0] !== column && searchStart === searchEnd) {
|
|
21529
|
+
let approximatedSegmentIndex = 0;
|
|
21530
|
+
for (let index = 0; index < segments.length; index++) {
|
|
21531
|
+
if (segments[index][0] > column) {
|
|
21532
|
+
break;
|
|
21533
|
+
}
|
|
21534
|
+
approximatedSegmentIndex = index;
|
|
21535
|
+
}
|
|
21536
|
+
segment = segments[approximatedSegmentIndex];
|
|
21537
|
+
}
|
|
21496
21538
|
if (segment[0] === column || searchStart === searchEnd) {
|
|
21497
21539
|
if (segment.length == 1)
|
|
21498
21540
|
return null;
|
|
@@ -22074,7 +22116,7 @@ function resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolve
|
|
|
22074
22116
|
return pluginDriver.hookFirstAndGetPlugin('resolveId', [source, importer, { attributes, custom: customOptions, isEntry }], replaceContext, skipped);
|
|
22075
22117
|
}
|
|
22076
22118
|
|
|
22077
|
-
async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes) {
|
|
22119
|
+
async function resolveId(source, importer, preserveSymlinks, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes, fs) {
|
|
22078
22120
|
const pluginResult = await resolveIdViaPlugins(source, importer, pluginDriver, moduleLoaderResolveId, skip, customOptions, isEntry, attributes);
|
|
22079
22121
|
if (pluginResult != null) {
|
|
22080
22122
|
const [resolveIdResult, plugin] = pluginResult;
|
|
@@ -22100,22 +22142,22 @@ async function resolveId(source, importer, preserveSymlinks, pluginDriver, modul
|
|
|
22100
22142
|
// absolute path is created. Absolute importees therefore shortcircuit the
|
|
22101
22143
|
// resolve call and require no special handing on our part.
|
|
22102
22144
|
// See https://nodejs.org/api/path.html#path_path_resolve_paths
|
|
22103
|
-
return addJsExtensionIfNecessary(importer ? path.resolve(path.dirname(importer), source) : path.resolve(source), preserveSymlinks);
|
|
22145
|
+
return addJsExtensionIfNecessary(importer ? path.resolve(path.dirname(importer), source) : path.resolve(source), preserveSymlinks, fs);
|
|
22104
22146
|
}
|
|
22105
|
-
async function addJsExtensionIfNecessary(file, preserveSymlinks) {
|
|
22106
|
-
return ((await findFile(file, preserveSymlinks)) ??
|
|
22107
|
-
(await findFile(file + '.mjs', preserveSymlinks)) ??
|
|
22108
|
-
(await findFile(file + '.js', preserveSymlinks)));
|
|
22147
|
+
async function addJsExtensionIfNecessary(file, preserveSymlinks, fs) {
|
|
22148
|
+
return ((await findFile(file, preserveSymlinks, fs)) ??
|
|
22149
|
+
(await findFile(file + '.mjs', preserveSymlinks, fs)) ??
|
|
22150
|
+
(await findFile(file + '.js', preserveSymlinks, fs)));
|
|
22109
22151
|
}
|
|
22110
|
-
async function findFile(file, preserveSymlinks) {
|
|
22152
|
+
async function findFile(file, preserveSymlinks, fs) {
|
|
22111
22153
|
try {
|
|
22112
|
-
const stats = await
|
|
22154
|
+
const stats = await fs.lstat(file);
|
|
22113
22155
|
if (!preserveSymlinks && stats.isSymbolicLink())
|
|
22114
|
-
return await findFile(await
|
|
22156
|
+
return await findFile(await fs.realpath(file), preserveSymlinks, fs);
|
|
22115
22157
|
if ((preserveSymlinks && stats.isSymbolicLink()) || stats.isFile()) {
|
|
22116
22158
|
// check case
|
|
22117
22159
|
const name = path.basename(file);
|
|
22118
|
-
const files = await
|
|
22160
|
+
const files = await fs.readdir(path.dirname(file));
|
|
22119
22161
|
if (files.includes(name))
|
|
22120
22162
|
return file;
|
|
22121
22163
|
}
|
|
@@ -22266,7 +22308,7 @@ class ModuleLoader {
|
|
|
22266
22308
|
this.nextEntryModuleIndex = 0;
|
|
22267
22309
|
this.resolveId = async (source, importer, customOptions, isEntry, attributes, skip = null) => this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(this.options.external(source, importer, false)
|
|
22268
22310
|
? false
|
|
22269
|
-
: await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === 'boolean' ? isEntry : !importer, attributes), importer, source), attributes);
|
|
22311
|
+
: await resolveId(source, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, skip, customOptions, typeof isEntry === 'boolean' ? isEntry : !importer, attributes, this.options.fs), importer, source), attributes);
|
|
22270
22312
|
this.hasModuleSideEffects = options.treeshake
|
|
22271
22313
|
? options.treeshake.moduleSideEffects
|
|
22272
22314
|
: () => true;
|
|
@@ -22357,7 +22399,7 @@ class ModuleLoader {
|
|
|
22357
22399
|
if (content !== null)
|
|
22358
22400
|
return content;
|
|
22359
22401
|
this.graph.watchFiles[id] = true;
|
|
22360
|
-
return await
|
|
22402
|
+
return (await this.options.fs.readFile(id, { encoding: 'utf8' }));
|
|
22361
22403
|
});
|
|
22362
22404
|
}
|
|
22363
22405
|
catch (error_) {
|
|
@@ -22625,7 +22667,7 @@ class ModuleLoader {
|
|
|
22625
22667
|
return resolvedId;
|
|
22626
22668
|
}
|
|
22627
22669
|
async loadEntryModule(unresolvedId, isEntry, importer, implicitlyLoadedBefore, isLoadForManualChunks = false) {
|
|
22628
|
-
const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, parseAst_js.EMPTY_OBJECT, true, parseAst_js.EMPTY_OBJECT);
|
|
22670
|
+
const resolveIdResult = await resolveId(unresolvedId, importer, this.options.preserveSymlinks, this.pluginDriver, this.resolveId, null, parseAst_js.EMPTY_OBJECT, true, parseAst_js.EMPTY_OBJECT, this.options.fs);
|
|
22629
22671
|
if (resolveIdResult == null) {
|
|
22630
22672
|
return parseAst_js.error(implicitlyLoadedBefore === null
|
|
22631
22673
|
? parseAst_js.logUnresolvedEntry(unresolvedId)
|
|
@@ -22975,6 +23017,10 @@ async function catchUnfinishedHookActions(pluginDriver, callback) {
|
|
|
22975
23017
|
|
|
22976
23018
|
async function initWasm() { }
|
|
22977
23019
|
|
|
23020
|
+
const fs = /*#__PURE__*/_mergeNamespaces({
|
|
23021
|
+
__proto__: null
|
|
23022
|
+
}, [promises__namespace]);
|
|
23023
|
+
|
|
22978
23024
|
async function normalizeInputOptions(config, watchMode) {
|
|
22979
23025
|
// These are options that may trigger special warnings or behaviour later
|
|
22980
23026
|
// if the user did not select an explicit value
|
|
@@ -22991,6 +23037,7 @@ async function normalizeInputOptions(config, watchMode) {
|
|
|
22991
23037
|
experimentalCacheExpiry: config.experimentalCacheExpiry ?? 10,
|
|
22992
23038
|
experimentalLogSideEffects: config.experimentalLogSideEffects || false,
|
|
22993
23039
|
external: getIdMatcher(config.external),
|
|
23040
|
+
fs: config.fs ?? fs,
|
|
22994
23041
|
input: getInput(config),
|
|
22995
23042
|
jsx: getJsx(config),
|
|
22996
23043
|
logLevel,
|
|
@@ -23080,12 +23127,9 @@ const getJsx = (config) => {
|
|
|
23080
23127
|
};
|
|
23081
23128
|
const getMaxParallelFileOps = (config) => {
|
|
23082
23129
|
const maxParallelFileOps = config.maxParallelFileOps;
|
|
23083
|
-
if (typeof maxParallelFileOps
|
|
23084
|
-
|
|
23085
|
-
|
|
23086
|
-
return maxParallelFileOps;
|
|
23087
|
-
}
|
|
23088
|
-
return 20;
|
|
23130
|
+
if (typeof maxParallelFileOps !== 'number' || maxParallelFileOps <= 0)
|
|
23131
|
+
return Infinity;
|
|
23132
|
+
return maxParallelFileOps;
|
|
23089
23133
|
};
|
|
23090
23134
|
const getModuleContext = (config, context) => {
|
|
23091
23135
|
const configModuleContext = config.moduleContext;
|
|
@@ -23558,7 +23602,7 @@ async function handleGenerateWrite(isWrite, inputOptions, unsetInputOptions, raw
|
|
|
23558
23602
|
if (!outputOptions.dir && !outputOptions.file) {
|
|
23559
23603
|
return parseAst_js.error(parseAst_js.logMissingFileOrDirOption());
|
|
23560
23604
|
}
|
|
23561
|
-
await Promise.all(Object.values(generated).map(chunk => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions))));
|
|
23605
|
+
await Promise.all(Object.values(generated).map(chunk => graph.fileOperationQueue.run(() => writeOutputFile(chunk, outputOptions, inputOptions))));
|
|
23562
23606
|
await outputPluginDriver.hookParallel('writeBundle', [outputOptions, generated]);
|
|
23563
23607
|
timeEnd('WRITE', 1);
|
|
23564
23608
|
}
|
|
@@ -23607,11 +23651,11 @@ function getSortingFileType(file) {
|
|
|
23607
23651
|
}
|
|
23608
23652
|
return SortingFileType.SECONDARY_CHUNK;
|
|
23609
23653
|
}
|
|
23610
|
-
async function writeOutputFile(outputFile, outputOptions) {
|
|
23654
|
+
async function writeOutputFile(outputFile, outputOptions, { fs: { mkdir, writeFile } }) {
|
|
23611
23655
|
const fileName = path.resolve(outputOptions.dir || path.dirname(outputOptions.file), outputFile.fileName);
|
|
23612
23656
|
// 'recursive: true' does not throw if the folder structure, or parts of it, already exist
|
|
23613
|
-
await
|
|
23614
|
-
return
|
|
23657
|
+
await mkdir(path.dirname(fileName), { recursive: true });
|
|
23658
|
+
return writeFile(fileName, outputFile.type === 'asset' ? outputFile.source : outputFile.code);
|
|
23615
23659
|
}
|
|
23616
23660
|
/**
|
|
23617
23661
|
* Auxiliary function for defining rollup configuration
|
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.44.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -109,29 +109,29 @@
|
|
|
109
109
|
"homepage": "https://rollupjs.org/",
|
|
110
110
|
"optionalDependencies": {
|
|
111
111
|
"fsevents": "~2.3.2",
|
|
112
|
-
"@rollup/rollup-darwin-arm64": "4.
|
|
113
|
-
"@rollup/rollup-android-arm64": "4.
|
|
114
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
115
|
-
"@rollup/rollup-freebsd-arm64": "4.
|
|
116
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
117
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
118
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
119
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
120
|
-
"@rollup/rollup-linux-arm-musleabihf": "4.
|
|
121
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
122
|
-
"@rollup/rollup-linux-loongarch64-gnu": "4.
|
|
123
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.
|
|
124
|
-
"@rollup/rollup-linux-riscv64-musl": "4.
|
|
125
|
-
"@rollup/rollup-linux-powerpc64le-gnu": "4.
|
|
126
|
-
"@rollup/rollup-linux-s390x-gnu": "4.
|
|
127
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
128
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
129
|
-
"@rollup/rollup-freebsd-x64": "4.
|
|
130
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
131
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
112
|
+
"@rollup/rollup-darwin-arm64": "4.44.0",
|
|
113
|
+
"@rollup/rollup-android-arm64": "4.44.0",
|
|
114
|
+
"@rollup/rollup-win32-arm64-msvc": "4.44.0",
|
|
115
|
+
"@rollup/rollup-freebsd-arm64": "4.44.0",
|
|
116
|
+
"@rollup/rollup-linux-arm64-gnu": "4.44.0",
|
|
117
|
+
"@rollup/rollup-linux-arm64-musl": "4.44.0",
|
|
118
|
+
"@rollup/rollup-android-arm-eabi": "4.44.0",
|
|
119
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.44.0",
|
|
120
|
+
"@rollup/rollup-linux-arm-musleabihf": "4.44.0",
|
|
121
|
+
"@rollup/rollup-win32-ia32-msvc": "4.44.0",
|
|
122
|
+
"@rollup/rollup-linux-loongarch64-gnu": "4.44.0",
|
|
123
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.44.0",
|
|
124
|
+
"@rollup/rollup-linux-riscv64-musl": "4.44.0",
|
|
125
|
+
"@rollup/rollup-linux-powerpc64le-gnu": "4.44.0",
|
|
126
|
+
"@rollup/rollup-linux-s390x-gnu": "4.44.0",
|
|
127
|
+
"@rollup/rollup-darwin-x64": "4.44.0",
|
|
128
|
+
"@rollup/rollup-win32-x64-msvc": "4.44.0",
|
|
129
|
+
"@rollup/rollup-freebsd-x64": "4.44.0",
|
|
130
|
+
"@rollup/rollup-linux-x64-gnu": "4.44.0",
|
|
131
|
+
"@rollup/rollup-linux-x64-musl": "4.44.0"
|
|
132
132
|
},
|
|
133
133
|
"dependencies": {
|
|
134
|
-
"@types/estree": "1.0.
|
|
134
|
+
"@types/estree": "1.0.8"
|
|
135
135
|
},
|
|
136
136
|
"devDependenciesComments": {
|
|
137
137
|
"core-js": "We only update manually as every update requires a snapshot update"
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"@eslint/js": "^9.28.0",
|
|
147
147
|
"@inquirer/prompts": "^7.5.3",
|
|
148
148
|
"@jridgewell/sourcemap-codec": "^1.5.0",
|
|
149
|
-
"@mermaid-js/mermaid-cli": "^11.4.
|
|
149
|
+
"@mermaid-js/mermaid-cli": "^11.4.3",
|
|
150
150
|
"@napi-rs/cli": "^2.18.4",
|
|
151
151
|
"@rollup/plugin-alias": "^5.1.1",
|
|
152
152
|
"@rollup/plugin-buble": "^1.0.3",
|
|
@@ -157,14 +157,14 @@
|
|
|
157
157
|
"@rollup/plugin-terser": "^0.4.4",
|
|
158
158
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
159
159
|
"@rollup/pluginutils": "^5.1.4",
|
|
160
|
-
"@shikijs/vitepress-twoslash": "^3.
|
|
160
|
+
"@shikijs/vitepress-twoslash": "^3.6.0",
|
|
161
161
|
"@types/mocha": "^10.0.10",
|
|
162
|
-
"@types/node": "^18.19.
|
|
162
|
+
"@types/node": "^18.19.111",
|
|
163
163
|
"@types/picomatch": "^4.0.0",
|
|
164
164
|
"@types/semver": "^7.7.0",
|
|
165
165
|
"@types/yargs-parser": "^21.0.3",
|
|
166
166
|
"@vue/language-server": "^2.2.10",
|
|
167
|
-
"acorn": "^8.
|
|
167
|
+
"acorn": "^8.15.0",
|
|
168
168
|
"acorn-import-assertions": "^1.9.0",
|
|
169
169
|
"acorn-jsx": "^5.3.2",
|
|
170
170
|
"buble": "^0.20.0",
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"eslint-config-prettier": "^10.1.5",
|
|
181
181
|
"eslint-plugin-prettier": "^5.4.1",
|
|
182
182
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
183
|
-
"eslint-plugin-vue": "^10.
|
|
183
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
184
184
|
"fixturify": "^3.0.0",
|
|
185
185
|
"flru": "^1.0.2",
|
|
186
186
|
"fs-extra": "^11.3.0",
|
|
@@ -191,18 +191,19 @@
|
|
|
191
191
|
"lint-staged": "^16.1.0",
|
|
192
192
|
"locate-character": "^3.0.0",
|
|
193
193
|
"magic-string": "^0.30.17",
|
|
194
|
-
"
|
|
194
|
+
"memfs": "^4.17.2",
|
|
195
|
+
"mocha": "^11.6.0",
|
|
195
196
|
"nodemon": "^3.1.10",
|
|
196
197
|
"nyc": "^17.1.0",
|
|
197
198
|
"picocolors": "^1.1.1",
|
|
198
199
|
"picomatch": "^4.0.2",
|
|
199
|
-
"pinia": "^3.0.
|
|
200
|
+
"pinia": "^3.0.3",
|
|
200
201
|
"prettier": "^3.5.3",
|
|
201
202
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
202
203
|
"pretty-bytes": "^7.0.0",
|
|
203
204
|
"pretty-ms": "^9.2.0",
|
|
204
205
|
"requirejs": "^2.3.7",
|
|
205
|
-
"rollup": "^4.
|
|
206
|
+
"rollup": "^4.43.0",
|
|
206
207
|
"rollup-plugin-license": "^3.6.0",
|
|
207
208
|
"rollup-plugin-string": "^3.0.0",
|
|
208
209
|
"semver": "^7.7.2",
|
|
@@ -211,10 +212,10 @@
|
|
|
211
212
|
"source-map": "^0.7.4",
|
|
212
213
|
"source-map-support": "^0.5.21",
|
|
213
214
|
"systemjs": "^6.15.1",
|
|
214
|
-
"terser": "^5.
|
|
215
|
+
"terser": "^5.42.0",
|
|
215
216
|
"tslib": "^2.8.1",
|
|
216
217
|
"typescript": "^5.8.3",
|
|
217
|
-
"typescript-eslint": "^8.
|
|
218
|
+
"typescript-eslint": "^8.34.0",
|
|
218
219
|
"vite": "^6.3.5",
|
|
219
220
|
"vitepress": "^1.6.3",
|
|
220
221
|
"vue": "^3.5.16",
|