🔧 npm update

This commit is contained in:
2025-04-15 20:50:11 +02:00
parent ce5b9ac0c8
commit 94a90edabd
828 changed files with 256807 additions and 197099 deletions

407
node_modules/rollup/dist/bin/rollup generated vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -15,4 +15,3 @@ import 'path';
import 'node:process';
import 'node:perf_hooks';
import 'node:fs/promises';
import 'tty';

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -18,10 +18,9 @@ require('node:url');
require('./shared/rollup.js');
require('./shared/parseAst.js');
const loadConfigFile_js = require('./shared/loadConfigFile.js');
require('tty');
require('path');
require('node:perf_hooks');
require('./native.js');
require('node:perf_hooks');
require('./getLogFilter.js');

78
node_modules/rollup/dist/native.js generated vendored
View File

@@ -1,5 +1,5 @@
const { existsSync } = require('node:fs');
const { join } = require('node:path');
const path = require('node:path');
const { platform, arch, report } = require('node:process');
const isMusl = () => !report.getReport().header.glibcVersionRuntime;
@@ -13,10 +13,17 @@ const bindingsByPlatformAndArch = {
arm64: { base: 'darwin-arm64' },
x64: { base: 'darwin-x64' }
},
freebsd: {
arm64: { base: 'freebsd-arm64' },
x64: { base: 'freebsd-x64' }
},
linux: {
arm: { base: 'linux-arm-gnueabihf', musl: null },
arm: { base: 'linux-arm-gnueabihf', musl: 'linux-arm-musleabihf' },
arm64: { base: 'linux-arm64-gnu', musl: 'linux-arm64-musl' },
riscv64: { base: 'linux-riscv64-gnu', musl: null },
loong64: { base: 'linux-loongarch64-gnu', musl: null },
ppc64: { base: 'linux-powerpc64le-gnu', musl: null },
riscv64: { base: 'linux-riscv64-gnu', musl: 'linux-riscv64-musl' },
s390x: { base: 'linux-s390x-gnu', musl: null },
x64: { base: 'linux-x64-gnu', musl: 'linux-x64-musl' }
},
win32: {
@@ -33,36 +40,6 @@ const msvcLinkFilenameByArch = {
};
const packageBase = getPackageBase();
if (!packageBase) {
throw new Error(
`Your current platform "${platform}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
The following platform-architecture combinations are supported:
${Object.entries(bindingsByPlatformAndArch)
.flatMap(([platformName, architectures]) =>
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
const name = `${platformName}-${architectureName}`;
return musl ? [name, `${name} (musl)`] : [name];
})
)
.join('\n')}
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
);
}
function getPackageBase() {
const imported = bindingsByPlatformAndArch[platform]?.[arch];
if (!imported) {
return null;
}
if ('musl' in imported && isMusl()) {
return imported.musl;
}
return imported.base;
}
const localName = `./rollup.${packageBase}.node`;
const requireWithFriendlyError = id => {
try {
@@ -93,10 +70,41 @@ const requireWithFriendlyError = id => {
}
};
const { parse, parseAsync, xxhashBase64Url } = requireWithFriendlyError(
existsSync(join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
const { parse, parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } = requireWithFriendlyError(
existsSync(path.join(__dirname, localName)) ? localName : `@rollup/rollup-${packageBase}`
);
function getPackageBase() {
const imported = bindingsByPlatformAndArch[platform]?.[arch];
if (!imported) {
throwUnsupportedError(false);
}
if ('musl' in imported && isMusl()) {
return imported.musl || throwUnsupportedError(true);
}
return imported.base;
}
function throwUnsupportedError(isMusl) {
throw new Error(
`Your current platform "${platform}${isMusl ? ' (musl)' : ''}" and architecture "${arch}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
The following platform-architecture combinations are supported:
${Object.entries(bindingsByPlatformAndArch)
.flatMap(([platformName, architectures]) =>
Object.entries(architectures).flatMap(([architectureName, { musl }]) => {
const name = `${platformName}-${architectureName}`;
return musl ? [name, `${name} (musl)`] : [name];
})
)
.join('\n')}
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`
);
}
module.exports.parse = parse;
module.exports.parseAsync = parseAsync;
module.exports.xxhashBase64Url = xxhashBase64Url;
module.exports.xxhashBase36 = xxhashBase36;
module.exports.xxhashBase16 = xxhashBase16;

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup

192
node_modules/rollup/dist/rollup.d.ts generated vendored
View File

@@ -1,4 +1,20 @@
import type { Program } from 'estree';
import type * as estree from 'estree';
declare module 'estree' {
export interface Decorator extends estree.BaseNode {
type: 'Decorator';
expression: estree.Expression;
}
interface PropertyDefinition {
decorators: estree.Decorator[];
}
interface MethodDefinition {
decorators: estree.Decorator[];
}
interface BaseClass {
decorators: estree.Decorator[];
}
}
export const VERSION: string;
@@ -86,6 +102,7 @@ export interface SourceMap {
sources: string[];
sourcesContent?: string[];
version: number;
debugId?: string;
toString(): string;
toUrl(): string;
}
@@ -145,6 +162,7 @@ export interface EmittedAsset {
fileName?: string;
name?: string;
needsCodeReference?: boolean;
originalFileName?: string | null;
source?: string | Uint8Array;
type: 'asset';
}
@@ -172,7 +190,7 @@ export type EmittedFile = EmittedAsset | EmittedChunk | EmittedPrebuiltChunk;
export type EmitFile = (emittedFile: EmittedFile) => string;
interface ModuleInfo extends ModuleOptions {
export interface ModuleInfo extends ModuleOptions {
ast: ProgramNode | null;
code: string | null;
dynamicImporters: readonly string[];
@@ -194,6 +212,7 @@ interface ModuleInfo extends ModuleOptions {
export type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style -- this is an interface so that it can be extended by plugins
export interface CustomPluginOptions {
[plugin: string]: any;
}
@@ -205,17 +224,18 @@ type LoggingFunctionWithPosition = (
export type ParseAst = (
input: string,
options?: { allowReturnOutsideFunction?: boolean }
options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean }
) => ProgramNode;
// declare AbortSignal here for environments without DOM lib or @types/node
declare global {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
interface AbortSignal {}
}
export type ParseAstAsync = (
input: string,
options?: { allowReturnOutsideFunction?: boolean; signal?: AbortSignal }
options?: { allowReturnOutsideFunction?: boolean; jsx?: boolean; signal?: AbortSignal }
) => Promise<ProgramNode>;
export interface PluginContext extends MinimalPluginContext {
@@ -252,17 +272,29 @@ export interface PluginContextMeta {
watchMode: boolean;
}
export type StringOrRegExp = string | RegExp;
export type StringFilter<Value = StringOrRegExp> =
| MaybeArray<Value>
| {
include?: MaybeArray<Value>;
exclude?: MaybeArray<Value>;
};
export interface HookFilter {
id?: StringFilter;
code?: StringFilter;
}
export interface ResolvedId extends ModuleOptions {
external: boolean | 'absolute';
id: string;
resolvedBy: string;
}
export interface ResolvedIdMap {
[key: string]: ResolvedId;
}
export type ResolvedIdMap = Record<string, ResolvedId>;
interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
export interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
external?: boolean | 'absolute' | 'relative';
id: string;
resolvedBy?: string;
@@ -378,18 +410,32 @@ export type WatchChangeHook = (
* const myPlugin: PluginImpl<Options> = (options = {}) => { ... }
* ```
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;
export interface OutputBundle {
[fileName: string]: OutputAsset | OutputChunk;
export type OutputBundle = Record<string, OutputAsset | OutputChunk>;
export type PreRenderedChunkWithFileName = PreRenderedChunk & { fileName: string };
export interface ImportedInternalChunk {
type: 'internal';
fileName: string;
resolvedImportPath: string;
chunk: PreRenderedChunk;
}
export interface ImportedExternalChunk {
type: 'external';
fileName: string;
resolvedImportPath: string;
}
export type DynamicImportTargetChunk = ImportedInternalChunk | ImportedExternalChunk;
export interface FunctionPluginHooks {
augmentChunkHash: (this: PluginContext, chunk: RenderedChunk) => string | void;
buildEnd: (this: PluginContext, error?: Error) => void;
buildStart: (this: PluginContext, options: NormalizedInputOptions) => void;
closeBundle: (this: PluginContext) => void;
closeBundle: (this: PluginContext, error?: Error) => void;
closeWatcher: (this: PluginContext) => void;
generateBundle: (
this: PluginContext,
@@ -410,6 +456,9 @@ export interface FunctionPluginHooks {
format: InternalModuleFormat;
moduleId: string;
targetModuleId: string | null;
chunk: PreRenderedChunkWithFileName;
targetChunk: PreRenderedChunkWithFileName | null;
getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
}
) => { left: string; right: string } | NullValue;
renderError: (this: PluginContext, error?: Error) => void;
@@ -488,20 +537,29 @@ type MakeAsync<Function_> = Function_ extends (
? (this: This, ...parameters: Arguments) => Return | Promise<Return>
: never;
// eslint-disable-next-line @typescript-eslint/ban-types
type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
export type HookFilterExtension<K extends keyof FunctionPluginHooks> = K extends 'transform'
? { filter?: HookFilter }
: K extends 'load'
? { filter?: Pick<HookFilter, 'id'> }
: K extends 'resolveId'
? { filter?: { id?: StringFilter<RegExp> } }
: // eslint-disable-next-line @typescript-eslint/no-empty-object-type
{};
export type PluginHooks = {
[K in keyof FunctionPluginHooks]: ObjectHook<
K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K],
// eslint-disable-next-line @typescript-eslint/ban-types
K extends ParallelPluginHooks ? { sequential?: boolean } : {}
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
HookFilterExtension<K> & (K extends ParallelPluginHooks ? { sequential?: boolean } : {})
>;
};
export interface OutputPlugin
extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,
Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
Partial<Record<AddonHooks, ObjectHook<AddonHook>>> {
cacheKey?: string;
name: string;
version?: string;
@@ -512,6 +570,38 @@ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
api?: A;
}
export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';
export type NormalizedJsxOptions =
| NormalizedJsxPreserveOptions
| NormalizedJsxClassicOptions
| NormalizedJsxAutomaticOptions;
interface NormalizedJsxPreserveOptions {
factory: string | null;
fragment: string | null;
importSource: string | null;
mode: 'preserve';
}
interface NormalizedJsxClassicOptions {
factory: string;
fragment: string;
importSource: string | null;
mode: 'classic';
}
interface NormalizedJsxAutomaticOptions {
factory: string;
importSource: string | null;
jsxImportSource: string;
mode: 'automatic';
}
export type JsxOptions = Partial<NormalizedJsxOptions> & {
preset?: JsxPreset;
};
export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
export interface NormalizedTreeshakingOptions {
@@ -534,6 +624,7 @@ interface ManualChunkMeta {
getModuleIds: () => IterableIterator<string>;
getModuleInfo: GetModuleInfo;
}
export type GetManualChunk = (id: string, meta: ManualChunkMeta) => string | NullValue;
export type ExternalOption =
@@ -542,11 +633,11 @@ export type ExternalOption =
| RegExp
| ((source: string, importer: string | undefined, isResolved: boolean) => boolean | NullValue);
export type GlobalsOption = { [name: string]: string } | ((name: string) => string);
export type GlobalsOption = Record<string, string> | ((name: string) => string);
export type InputOption = string | string[] | { [entryAlias: string]: string };
export type InputOption = string | string[] | Record<string, string>;
export type ManualChunksOption = { [chunkAlias: string]: string[] } | GetManualChunk;
export type ManualChunksOption = Record<string, string[]> | GetManualChunk;
export type LogHandlerWithDefault = (
level: LogLevel,
@@ -581,10 +672,11 @@ export interface InputOptions {
experimentalLogSideEffects?: boolean;
external?: ExternalOption;
input?: InputOption;
jsx?: false | JsxPreset | JsxOptions;
logLevel?: LogLevelOption;
makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource';
maxParallelFileOps?: number;
moduleContext?: ((id: string) => string | NullValue) | { [id: string]: string };
moduleContext?: ((id: string) => string | NullValue) | Record<string, string>;
onLog?: LogHandlerWithDefault;
onwarn?: WarningHandlerWithDefault;
perf?: boolean;
@@ -607,7 +699,8 @@ export interface NormalizedInputOptions {
experimentalCacheExpiry: number;
experimentalLogSideEffects: boolean;
external: IsExternal;
input: string[] | { [entryAlias: string]: string };
input: string[] | Record<string, string>;
jsx: false | NormalizedJsxOptions;
logLevel: LogLevelOption;
makeAbsoluteExternalsRelative: boolean | 'ifRelativeSource';
maxParallelFileOps: number;
@@ -623,6 +716,7 @@ export interface NormalizedInputOptions {
}
export type InternalModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd';
export type ImportAttributesKey = 'with' | 'assert';
export type ModuleFormat = InternalModuleFormat | 'commonjs' | 'esm' | 'module' | 'systemjs';
@@ -683,6 +777,8 @@ type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
type OutputPluginOption = MaybePromise<OutputPlugin | NullValue | false | OutputPluginOption[]>;
type HashCharacters = 'base64' | 'base36' | 'hex';
export interface OutputOptions {
amd?: AmdOptions;
assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
@@ -708,7 +804,9 @@ export interface OutputOptions {
freeze?: boolean;
generatedCode?: GeneratedCodePreset | GeneratedCodeOptions;
globals?: GlobalsOption;
hashCharacters?: HashCharacters;
hoistTransitiveImports?: boolean;
importAttributesKey?: ImportAttributesKey;
indent?: string | boolean;
inlineDynamicImports?: boolean;
interop?: InteropType | GetInterop;
@@ -722,6 +820,7 @@ export interface OutputOptions {
plugins?: OutputPluginOption;
preserveModules?: boolean;
preserveModulesRoot?: string;
reexportProtoFromExternal?: boolean;
sanitizeFileName?: boolean | ((fileName: string) => string);
sourcemap?: boolean | 'inline' | 'hidden';
sourcemapBaseUrl?: string;
@@ -730,9 +829,11 @@ export interface OutputOptions {
sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
sourcemapPathTransform?: SourcemapPathTransformOption;
sourcemapDebugIds?: boolean;
strict?: boolean;
systemNullSetters?: boolean;
validate?: boolean;
virtualDirname?: string;
}
export interface NormalizedOutputOptions {
@@ -758,7 +859,9 @@ export interface NormalizedOutputOptions {
freeze: boolean;
generatedCode: NormalizedGeneratedCodeOptions;
globals: GlobalsOption;
hashCharacters: HashCharacters;
hoistTransitiveImports: boolean;
importAttributesKey: ImportAttributesKey;
indent: true | string;
inlineDynamicImports: boolean;
interop: GetInterop;
@@ -772,6 +875,7 @@ export interface NormalizedOutputOptions {
plugins: OutputPlugin[];
preserveModules: boolean;
preserveModulesRoot: string | undefined;
reexportProtoFromExternal: boolean;
sanitizeFileName: (fileName: string) => string;
sourcemap: boolean | 'inline' | 'hidden';
sourcemapBaseUrl: string | undefined;
@@ -780,9 +884,11 @@ export interface NormalizedOutputOptions {
sourcemapFileNames: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
sourcemapIgnoreList: SourcemapIgnoreListOption;
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
sourcemapDebugIds: boolean;
strict: boolean;
systemNullSetters: boolean;
validate: boolean;
virtualDirname: string;
}
export type WarningHandlerWithDefault = (
@@ -790,12 +896,15 @@ export type WarningHandlerWithDefault = (
defaultHandler: LoggingFunction
) => void;
export interface SerializedTimings {
[label: string]: [number, number, number];
}
export type SerializedTimings = Record<string, [number, number, number]>;
export interface PreRenderedAsset {
/** @deprecated Use "names" instead. */
name: string | undefined;
names: string[];
/** @deprecated Use "originalFileNames" instead. */
originalFileName: string | null;
originalFileNames: string[];
source: string | Uint8Array;
type: 'asset';
}
@@ -828,13 +937,9 @@ export interface RenderedChunk extends PreRenderedChunk {
dynamicImports: string[];
fileName: string;
implicitlyLoadedBefore: string[];
importedBindings: {
[imported: string]: string[];
};
importedBindings: Record<string, string[]>;
imports: string[];
modules: {
[id: string]: RenderedModule;
};
modules: Record<string, RenderedModule>;
referencedFiles: string[];
}
@@ -845,9 +950,7 @@ export interface OutputChunk extends RenderedChunk {
preliminaryFileName: string;
}
export interface SerializablePluginCache {
[key: string]: [number, any];
}
export type SerializablePluginCache = Record<string, [number, any]>;
export interface RollupCache {
modules: ModuleJSON[];
@@ -862,6 +965,7 @@ export interface RollupBuild {
cache: RollupCache | undefined;
close: () => Promise<void>;
closed: boolean;
[Symbol.asyncDispose](): Promise<void>;
generate: (outputOptions: OutputOptions) => Promise<RollupOutput>;
getTimings?: () => SerializedTimings;
watchFiles: string[];
@@ -911,6 +1015,7 @@ export interface WatcherOptions {
exclude?: string | RegExp | (string | RegExp)[];
include?: string | RegExp | (string | RegExp)[];
skipWrite?: boolean;
onInvalidate?: (id: string) => void;
}
export interface RollupWatchOptions extends InputOptions {
@@ -919,11 +1024,11 @@ export interface RollupWatchOptions extends InputOptions {
}
export type AwaitedEventListener<
T extends { [event: string]: (...parameters: any) => any },
T extends Record<string, (...parameters: any) => any>,
K extends keyof T
> = (...parameters: Parameters<T[K]>) => void | Promise<void>;
export interface AwaitingEventEmitter<T extends { [event: string]: (...parameters: any) => any }> {
export interface AwaitingEventEmitter<T extends Record<string, (...parameters: any) => any>> {
close(): Promise<void>;
emit<K extends keyof T>(event: K, ...parameters: Parameters<T[K]>): Promise<unknown>;
/**
@@ -973,13 +1078,22 @@ export type RollupWatcher = AwaitingEventEmitter<{
export function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
interface AstNode {
interface AstNodeLocation {
end: number;
start: number;
type: string;
}
type ProgramNode = Program & AstNode;
type OmittedEstreeKeys =
| 'loc'
| 'range'
| 'leadingComments'
| 'trailingComments'
| 'innerComments'
| 'comments';
type RollupAstNode<T> = Omit<T, OmittedEstreeKeys> & AstNodeLocation;
type ProgramNode = RollupAstNode<estree.Program>;
export type AstNode = RollupAstNode<estree.Node>;
export function defineConfig(options: RollupOptions): RollupOptions;
export function defineConfig(options: RollupOptions[]): RollupOptions[];

7
node_modules/rollup/dist/rollup.js generated vendored
View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -15,11 +15,10 @@ const rollup = require('./shared/rollup.js');
const parseAst_js = require('./shared/parseAst.js');
const fseventsImporter = require('./shared/fsevents-importer.js');
require('node:process');
require('tty');
require('node:path');
require('path');
require('node:perf_hooks');
require('./native.js');
require('node:perf_hooks');
require('node:fs/promises');
class WatchEmitter {

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup

12654
node_modules/rollup/dist/shared/index.js generated vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -10,7 +10,7 @@
'use strict';
const promises = require('node:fs/promises');
const node_path = require('node:path');
const path = require('node:path');
const process$1 = require('node:process');
const node_url = require('node:url');
const rollup = require('./rollup.js');
@@ -63,14 +63,14 @@ function batchWarnings(command) {
}
case parseAst_js.LOGLEVEL_DEBUG: {
if (!silent) {
rollup.stderr(rollup.bold(rollup.blue(log.message)));
rollup.stderr(rollup.bold(rollup.pc.blue(log.message)));
defaultBody(log);
}
return;
}
default: {
if (!silent) {
rollup.stderr(rollup.bold(rollup.cyan(log.message)));
rollup.stderr(rollup.bold(rollup.pc.cyan(log.message)));
defaultBody(log);
}
}
@@ -150,20 +150,16 @@ const deferredHandlers = {
},
PLUGIN_WARNING(warnings) {
const nestedByPlugin = nest(warnings, 'plugin');
for (const { key: plugin, items } of nestedByPlugin) {
for (const { items } of nestedByPlugin) {
const nestedByMessage = nest(items, 'message');
let lastUrl = '';
for (const { key: message, items } of nestedByMessage) {
title(`Plugin ${plugin}: ${message}`);
title(message);
for (const warning of items) {
if (warning.url && warning.url !== lastUrl)
info((lastUrl = warning.url));
const id = warning.id || warning.loc?.file;
if (id) {
let loc = parseAst_js.relativeId(id);
if (warning.loc) {
loc += `: (${warning.loc.line}:${warning.loc.column})`;
}
const loc = formatLocation(warning);
if (loc) {
rollup.stderr(rollup.bold(loc));
}
if (warning.frame)
@@ -208,12 +204,11 @@ const deferredHandlers = {
};
function defaultBody(log) {
if (log.url) {
info(parseAst_js.getRollupUrl(log.url));
info(log.url);
}
const id = log.loc?.file || log.id;
if (id) {
const loc = log.loc ? `${parseAst_js.relativeId(id)} (${log.loc.line}:${log.loc.column})` : parseAst_js.relativeId(id);
rollup.stderr(rollup.bold(parseAst_js.relativeId(loc)));
const loc = formatLocation(log);
if (loc) {
rollup.stderr(rollup.bold(loc));
}
if (log.frame)
info(log.frame);
@@ -261,6 +256,12 @@ function generateLogFilter(command) {
}
return getLogFilter_js.getLogFilter(filters);
}
function formatLocation(log) {
const id = log.loc?.file || log.id;
if (!id)
return null;
return log.loc ? `${id}:${log.loc.line}:${log.loc.column}` : id;
}
const stdinName = '-';
let stdinResult = null;
@@ -383,11 +384,11 @@ async function loadAndRegisterPlugin(inputOptions, pluginText) {
if (!plugin) {
try {
if (pluginText[0] == '.')
pluginText = node_path.resolve(pluginText);
pluginText = path.resolve(pluginText);
// Windows absolute paths must be specified as file:// protocol URL
// Note that we do not have coverage for Windows-only code paths
else if (/^[A-Za-z]:\\/.test(pluginText)) {
pluginText = node_url.pathToFileURL(node_path.resolve(pluginText)).href;
pluginText = node_url.pathToFileURL(path.resolve(pluginText)).href;
}
plugin = await requireOrImport(pluginText);
}
@@ -417,7 +418,7 @@ function getCamelizedPluginBaseName(pluginText) {
}
async function requireOrImport(pluginPath) {
try {
// eslint-disable-next-line unicorn/prefer-module
// eslint-disable-next-line @typescript-eslint/no-require-imports
return require(pluginPath);
}
catch {
@@ -485,11 +486,16 @@ async function getConfigFileExport(fileName, commandOptions, watchMode) {
function getDefaultFromCjs(namespace) {
return namespace.default || namespace;
}
function getConfigImportAttributesKey(input) {
if (input === 'assert' || input === 'with')
return input;
return;
}
async function loadTranspiledConfigFile(fileName, commandOptions) {
const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
const warnings = batchWarnings(commandOptions);
const inputOptions = {
external: (id) => (id[0] !== '.' && !node_path.isAbsolute(id)) || id.slice(-5, id.length) === '.json',
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
input: fileName,
onwarn: warnings.add,
plugins: [],
@@ -500,6 +506,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
const { output: [{ code }] } = await bundle.generate({
exports: 'named',
format: bundleConfigAsCjs ? 'cjs' : 'es',
importAttributesKey: getConfigImportAttributesKey(configImportAttributesKey),
plugins: [
{
name: 'transpile-import-meta',
@@ -507,8 +514,14 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
if (property === 'url') {
return `'${node_url.pathToFileURL(moduleId).href}'`;
}
if (property == 'filename') {
return `'${moduleId}'`;
}
if (property == 'dirname') {
return `'${path.dirname(moduleId)}'`;
}
if (property == null) {
return `{url:'${node_url.pathToFileURL(moduleId).href}'}`;
return `{url:'${node_url.pathToFileURL(moduleId).href}', filename: '${moduleId}', dirname: '${path.dirname(moduleId)}'}`;
}
}
}
@@ -518,7 +531,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
rollup.stderr(rollup.bold(`loaded ${parseAst_js.relativeId(fileName)} with warnings`));
warnings.flush();
}
return loadConfigFromWrittenFile(node_path.join(node_path.dirname(fileName), `rollup.config-${Date.now()}.${bundleConfigAsCjs ? 'cjs' : 'mjs'}`), code);
return loadConfigFromWrittenFile(path.join(path.dirname(fileName), `rollup.config-${Date.now()}.${bundleConfigAsCjs ? 'cjs' : 'mjs'}`), code);
}
async function loadConfigFromWrittenFile(bundledFileName, bundledCode) {
await promises.writeFile(bundledFileName, bundledCode);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -11,26 +11,25 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const index = require('./index.js');
const promises = require('node:fs/promises');
const process$2 = require('node:process');
const index = require('./index.js');
const cli = require('../bin/rollup');
const rollup = require('./rollup.js');
const parseAst_js = require('./parseAst.js');
const loadConfigFile_js = require('./loadConfigFile.js');
const node_child_process = require('node:child_process');
const rollup_js = require('../rollup.js');
require('fs');
require('util');
require('stream');
require('path');
require('util');
require('fs');
require('stream');
require('os');
require('./fsevents-importer.js');
require('events');
require('node:path');
require('tty');
require('node:perf_hooks');
require('../native.js');
require('node:perf_hooks');
require('node:url');
require('../getLogFilter.js');
@@ -366,23 +365,7 @@ const {
*
* Returns a function that may be used to unload signal-exit.
*/
onExit,
/**
* Load the listeners. Likely you never need to call this, unless
* doing a rather deep integration with signal-exit functionality.
* Mostly exposed for the benefit of testing.
*
* @internal
*/
load,
/**
* Unload the listeners. Likely you never need to call this, unless
* doing a rather deep integration with signal-exit functionality.
* Mostly exposed for the benefit of testing.
*
* @internal
*/
unload, } = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
onExit} = signalExitWrap(processOk(process$1) ? new SignalExit(process$1) : new SignalExitFallback());
const CLEAR_SCREEN = '\u001Bc';
function getResetScreen(configs, allowClearScreen) {
@@ -417,7 +400,7 @@ function createWatchHooks(command) {
if (watchHooks[hook]) {
const cmd = watchHooks[hook];
if (!command.silent) {
rollup.stderr(rollup.cyan$1(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
rollup.stderr(rollup.cyan(`watch.${hook} ${rollup.bold(`$ ${cmd}`)}`));
}
try {
// !! important - use stderr for all writes from execSync
@@ -442,10 +425,6 @@ async function watch(command) {
const runWatchHook = createWatchHooks(command);
onExit(close);
process$2.on('uncaughtException', closeWithError);
if (!process$2.stdin.isTTY) {
process$2.stdin.on('end', close);
process$2.stdin.resume();
}
async function loadConfigFromFileAndTrack(configFile) {
let configFileData = null;
let configFileRevision = 0;
@@ -512,7 +491,7 @@ async function watch(command) {
? input.join(', ')
: Object.values(input).join(', ');
}
rollup.stderr(rollup.cyan$1(`bundles ${rollup.bold(input)}${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
rollup.stderr(rollup.cyan(`bundles ${rollup.bold(input)}${rollup.bold(event.output.map(parseAst_js.relativeId).join(', '))}...`));
}
runWatchHook('onBundleStart');
break;
@@ -529,7 +508,7 @@ async function watch(command) {
}
case 'END': {
runWatchHook('onEnd');
if (!silent && isTTY) {
if (!silent) {
rollup.stderr(`\n[${dateTime()}] waiting for changes...`);
}
}
@@ -539,16 +518,17 @@ async function watch(command) {
}
});
}
async function close(code) {
function close(code) {
process$2.removeListener('uncaughtException', closeWithError);
// removing a non-existent listener is a no-op
process$2.stdin.removeListener('end', close);
if (watcher)
await watcher.close();
if (configWatcher)
configWatcher.close();
if (code)
process$2.exit(code);
Promise.resolve(watcher?.close()).finally(() => {
process$2.exit(typeof code === 'number' ? code : 0);
});
// Tell signal-exit that we are handling this gracefully
return true;
}
// return a promise that never resolves to keep the process running
return new Promise(() => { });

View File

@@ -1,7 +1,7 @@
/*
@license
Rollup.js v4.9.6
Sun, 21 Jan 2024 05:51:51 GMT - commit ecb6b0a430098052781aa6ee04ec92ee70960321
Rollup.js v4.40.0
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
https://github.com/rollup/rollup
@@ -11,19 +11,18 @@
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const node_path = require('node:path');
const process = require('node:process');
const rollup = require('./rollup.js');
const node_os = require('node:os');
const path = require('node:path');
const process = require('node:process');
const index = require('./index.js');
const node_os = require('node:os');
require('./parseAst.js');
require('../native.js');
require('tty');
require('path');
require('node:perf_hooks');
require('node:fs/promises');
require('fs');
require('util');
require('fs');
require('stream');
require('os');
require('./fsevents-importer.js');
@@ -63,10 +62,11 @@ class FileWatcher {
createWatcher(transformWatcherId) {
const task = this.task;
const isLinux = node_os.platform() === 'linux';
const isFreeBSD = node_os.platform() === 'freebsd';
const isTransformDependency = transformWatcherId !== null;
const handleChange = (id, event) => {
const changedId = transformWatcherId || id;
if (isLinux) {
if (isLinux || isFreeBSD) {
// unwatching and watching fixes an issue with chokidar where on certain systems,
// a file that was unlinked and immediately recreated would create a change event
// but then no longer any further events
@@ -205,13 +205,13 @@ class Task {
this.outputs = this.options.output;
this.outputFiles = this.outputs.map(output => {
if (output.file || output.dir)
return node_path.resolve(output.file || output.dir);
return path.resolve(output.file || output.dir);
return undefined;
});
const watchOptions = this.options.watch || {};
this.filter = rollup.createFilter(watchOptions.include, watchOptions.exclude);
this.watchOptions = this.options.watch || {};
this.filter = rollup.createFilter(this.watchOptions.include, this.watchOptions.exclude);
this.fileWatcher = new FileWatcher(this, {
...watchOptions.chokidar,
...this.watchOptions.chokidar,
disableGlobbing: true,
ignoreInitial: true
});
@@ -231,6 +231,7 @@ class Task {
}
}
this.watcher.invalidate({ event: details.event, id });
this.watchOptions.onInvalidate?.(id);
}
async run() {
if (!this.invalidated)