🔧
This commit is contained in:
4
node_modules/rollup/dist/shared/fsevents-importer.js
generated
vendored
4
node_modules/rollup/dist/shared/fsevents-importer.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
4
node_modules/rollup/dist/shared/index.js
generated
vendored
4
node_modules/rollup/dist/shared/index.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
4
node_modules/rollup/dist/shared/loadConfigFile.js
generated
vendored
4
node_modules/rollup/dist/shared/loadConfigFile.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
4
node_modules/rollup/dist/shared/parseAst.js
generated
vendored
4
node_modules/rollup/dist/shared/parseAst.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
132
node_modules/rollup/dist/shared/rollup.js
generated
vendored
132
node_modules/rollup/dist/shared/rollup.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
|
||||
const node_perf_hooks = require('node:perf_hooks');
|
||||
const promises = require('node:fs/promises');
|
||||
|
||||
var version = "4.40.0";
|
||||
var version = "4.40.2";
|
||||
|
||||
function ensureArray$1(items) {
|
||||
if (Array.isArray(items)) {
|
||||
@@ -215,7 +215,7 @@ function generateAssetFileName(name, names, source, originalFileName, originalFi
|
||||
: outputOptions.assetFileNames, 'output.assetFileNames', {
|
||||
ext: () => path.extname(emittedName).slice(1),
|
||||
extname: () => path.extname(emittedName),
|
||||
hash: size => sourceHash.slice(0, Math.max(0, size || DEFAULT_HASH_SIZE)),
|
||||
hash: size => sourceHash.slice(0, Math.min(Math.max(0, size || DEFAULT_HASH_SIZE), MAX_HASH_SIZE)),
|
||||
name: () => emittedName.slice(0, Math.max(0, emittedName.length - path.extname(emittedName).length))
|
||||
}), bundle);
|
||||
}
|
||||
@@ -5962,8 +5962,7 @@ function createInclusionContext() {
|
||||
hasBreak: false,
|
||||
hasContinue: false,
|
||||
includedCallArguments: new Set(),
|
||||
includedLabels: new Set(),
|
||||
withinTopLevelAwait: false
|
||||
includedLabels: new Set()
|
||||
};
|
||||
}
|
||||
function createHasEffectsContext() {
|
||||
@@ -12180,7 +12179,7 @@ function amd(magicString, { accessedGlobals, dependencies, exports, hasDefaultEx
|
||||
const deps = dependencies.map(m => `'${updateExtensionForRelativeAmdId(m.importPath, amd.forceJsExtensionForImports)}'`);
|
||||
const parameters = dependencies.map(m => m.name);
|
||||
const { n, getNonArrowFunctionIntro, _ } = snippets;
|
||||
if (namedExportsMode && hasExports) {
|
||||
if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
|
||||
parameters.unshift(`exports`);
|
||||
deps.unshift(`'exports'`);
|
||||
}
|
||||
@@ -12439,7 +12438,7 @@ function iife(magicString, { accessedGlobals, dependencies, exports, hasDefaultE
|
||||
if (hasExports && !name) {
|
||||
log(parseAst_js.LOGLEVEL_WARN, parseAst_js.logMissingNameOptionForIifeExport());
|
||||
}
|
||||
if (namedExportsMode && hasExports) {
|
||||
if (hasExports && (namedExportsMode || exports[0]?.local === 'exports.default')) {
|
||||
if (extend) {
|
||||
deps.unshift(`this${keypath(name, getPropertyAccess)}${_}=${_}this${keypath(name, getPropertyAccess)}${_}||${_}{}`);
|
||||
parameters.unshift('exports');
|
||||
@@ -12658,7 +12657,8 @@ function umd(magicString, { accessedGlobals, dependencies, exports, hasDefaultEx
|
||||
const trimmedImports = trimEmptyImports(dependencies);
|
||||
const globalDeps = trimmedImports.map(module => globalProperty(module.globalName, globalVariable, getPropertyAccess));
|
||||
const factoryParameters = trimmedImports.map(m => m.name);
|
||||
if (namedExportsMode && (hasExports || noConflict)) {
|
||||
if ((hasExports || noConflict) &&
|
||||
(namedExportsMode || (hasExports && exports[0]?.local === 'exports.default'))) {
|
||||
amdDeps.unshift(`'exports'`);
|
||||
cjsDeps.unshift(`exports`);
|
||||
globalDeps.unshift(assignToDeepVariable(name, globalVariable, globals, `${extend ? `${globalProperty(name, globalVariable, getPropertyAccess)}${_}||${_}` : ''}{}`, snippets, log));
|
||||
@@ -13252,44 +13252,38 @@ class AssignmentPattern extends NodeBase {
|
||||
}
|
||||
|
||||
class AwaitExpression extends NodeBase {
|
||||
get isTopLevelAwait() {
|
||||
return isFlagSet(this.flags, 134217728 /* Flag.isTopLevelAwait */);
|
||||
}
|
||||
set isTopLevelAwait(value) {
|
||||
this.flags = setFlag(this.flags, 134217728 /* Flag.isTopLevelAwait */, value);
|
||||
}
|
||||
hasEffects() {
|
||||
if (!this.deoptimized)
|
||||
this.applyDeoptimizations();
|
||||
return true;
|
||||
}
|
||||
initialise() {
|
||||
super.initialise();
|
||||
let parent = this.parent;
|
||||
do {
|
||||
if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)
|
||||
return;
|
||||
} while ((parent = parent.parent));
|
||||
this.scope.context.usesTopLevelAwait = true;
|
||||
}
|
||||
include(context, includeChildrenRecursively) {
|
||||
if (!this.included)
|
||||
this.includeNode(context);
|
||||
this.argument.include({ ...context, withinTopLevelAwait: this.isTopLevelAwait }, includeChildrenRecursively);
|
||||
this.argument.include(context, includeChildrenRecursively);
|
||||
}
|
||||
includeNode(context) {
|
||||
this.included = true;
|
||||
if (!this.deoptimized)
|
||||
this.applyDeoptimizations();
|
||||
checkTopLevelAwait: {
|
||||
let parent = this.parent;
|
||||
do {
|
||||
if (parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)
|
||||
break checkTopLevelAwait;
|
||||
} while ((parent = parent.parent));
|
||||
this.scope.context.usesTopLevelAwait = true;
|
||||
this.isTopLevelAwait = true;
|
||||
}
|
||||
// Thenables need to be included
|
||||
this.argument.includePath(THEN_PATH, { ...context, withinTopLevelAwait: this.isTopLevelAwait });
|
||||
this.argument.includePath(THEN_PATH, context);
|
||||
}
|
||||
includePath(path, context) {
|
||||
if (!this.deoptimized)
|
||||
this.applyDeoptimizations();
|
||||
if (!this.included)
|
||||
this.includeNode(context);
|
||||
this.argument.includePath(path, { ...context, withinTopLevelAwait: this.isTopLevelAwait });
|
||||
this.argument.includePath(path, context);
|
||||
}
|
||||
}
|
||||
const THEN_PATH = ['then'];
|
||||
@@ -13514,10 +13508,10 @@ class CallExpressionBase extends NodeBase {
|
||||
|
||||
class CallExpression extends CallExpressionBase {
|
||||
get hasCheckedForWarnings() {
|
||||
return isFlagSet(this.flags, 536870912 /* Flag.checkedForWarnings */);
|
||||
return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
|
||||
}
|
||||
set hasCheckedForWarnings(value) {
|
||||
this.flags = setFlag(this.flags, 536870912 /* Flag.checkedForWarnings */, value);
|
||||
this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
|
||||
}
|
||||
get optional() {
|
||||
return isFlagSet(this.flags, 128 /* Flag.optional */);
|
||||
@@ -14523,10 +14517,10 @@ class ImportExpression extends NodeBase {
|
||||
this.resolutionString = null;
|
||||
}
|
||||
get withinTopLevelAwait() {
|
||||
return isFlagSet(this.flags, 268435456 /* Flag.withinTopLevelAwait */);
|
||||
return isFlagSet(this.flags, 134217728 /* Flag.withinTopLevelAwait */);
|
||||
}
|
||||
set withinTopLevelAwait(value) {
|
||||
this.flags = setFlag(this.flags, 268435456 /* Flag.withinTopLevelAwait */, value);
|
||||
this.flags = setFlag(this.flags, 134217728 /* Flag.withinTopLevelAwait */, value);
|
||||
}
|
||||
// Do not bind attributes
|
||||
bind() {
|
||||
@@ -14633,18 +14627,17 @@ class ImportExpression extends NodeBase {
|
||||
}
|
||||
include(context, includeChildrenRecursively) {
|
||||
if (!this.included)
|
||||
this.includeNode(context);
|
||||
this.includeNode();
|
||||
this.source.include(context, includeChildrenRecursively);
|
||||
}
|
||||
includeNode(context) {
|
||||
includeNode() {
|
||||
this.included = true;
|
||||
this.withinTopLevelAwait = context.withinTopLevelAwait;
|
||||
this.scope.context.includeDynamicImport(this);
|
||||
this.scope.addAccessedDynamicImport(this);
|
||||
}
|
||||
includePath(path, context) {
|
||||
includePath(path) {
|
||||
if (!this.included)
|
||||
this.includeNode(context);
|
||||
this.includeNode();
|
||||
// Technically, this is not correct as dynamic imports return a Promise.
|
||||
if (this.hasUnknownAccessedKey)
|
||||
return;
|
||||
@@ -14660,6 +14653,22 @@ class ImportExpression extends NodeBase {
|
||||
initialise() {
|
||||
super.initialise();
|
||||
this.scope.context.addDynamicImport(this);
|
||||
let parent = this.parent;
|
||||
let withinAwaitExpression = false;
|
||||
let withinTopLevelAwait = false;
|
||||
do {
|
||||
if (withinAwaitExpression &&
|
||||
(parent instanceof FunctionNode || parent instanceof ArrowFunctionExpression)) {
|
||||
withinTopLevelAwait = false;
|
||||
}
|
||||
if (parent instanceof AwaitExpression) {
|
||||
withinAwaitExpression = true;
|
||||
withinTopLevelAwait = true;
|
||||
}
|
||||
} while ((parent = parent.parent));
|
||||
if (withinAwaitExpression && withinTopLevelAwait) {
|
||||
this.withinTopLevelAwait = true;
|
||||
}
|
||||
}
|
||||
parseNode(esTreeNode) {
|
||||
this.sourceAstNode = esTreeNode.source;
|
||||
@@ -16290,10 +16299,10 @@ SwitchStatement.prototype.applyDeoptimizations = doNotDeoptimize;
|
||||
|
||||
class TaggedTemplateExpression extends CallExpressionBase {
|
||||
get hasCheckedForWarnings() {
|
||||
return isFlagSet(this.flags, 536870912 /* Flag.checkedForWarnings */);
|
||||
return isFlagSet(this.flags, 268435456 /* Flag.checkedForWarnings */);
|
||||
}
|
||||
set hasCheckedForWarnings(value) {
|
||||
this.flags = setFlag(this.flags, 536870912 /* Flag.checkedForWarnings */, value);
|
||||
this.flags = setFlag(this.flags, 268435456 /* Flag.checkedForWarnings */, value);
|
||||
}
|
||||
bind() {
|
||||
super.bind();
|
||||
@@ -19614,7 +19623,9 @@ class Chunk {
|
||||
for (const module of entryModules) {
|
||||
if (module.preserveSignature === 'allow-extension') {
|
||||
const canPreserveExports = this.canPreserveModuleExports(module);
|
||||
if (canPreserveExports) {
|
||||
if (canPreserveExports &&
|
||||
!module.chunkFileNames.size &&
|
||||
module.chunkNames.every(({ isUserDefined }) => !isUserDefined)) {
|
||||
this.allowExtensionModules.add(module);
|
||||
if (!this.facadeModule) {
|
||||
this.facadeModule = module;
|
||||
@@ -20722,12 +20733,12 @@ function analyzeModuleGraph(entries) {
|
||||
const awaitedDynamicImportsForCurrentEntry = new Set();
|
||||
dynamicImportModulesByEntry[entryIndex] = dynamicImportsForCurrentEntry;
|
||||
awaitedDynamicImportModulesByEntry[entryIndex] = awaitedDynamicImportsForCurrentEntry;
|
||||
const modulesToHandle = new Set([currentEntry]);
|
||||
for (const module of modulesToHandle) {
|
||||
const staticDependencies = new Set([currentEntry]);
|
||||
for (const module of staticDependencies) {
|
||||
getOrCreate(dependentEntriesByModule, module, (getNewSet)).add(entryIndex);
|
||||
for (const dependency of module.getDependenciesToBeIncluded()) {
|
||||
if (!(dependency instanceof ExternalModule)) {
|
||||
modulesToHandle.add(dependency);
|
||||
staticDependencies.add(dependency);
|
||||
}
|
||||
}
|
||||
for (const { resolution } of module.dynamicImports) {
|
||||
@@ -20737,9 +20748,12 @@ function analyzeModuleGraph(entries) {
|
||||
dynamicEntryModules.add(resolution);
|
||||
allEntriesSet.add(resolution);
|
||||
dynamicImportsForCurrentEntry.add(resolution);
|
||||
if (resolution.includedDirectTopLevelAwaitingDynamicImporters.has(currentEntry)) {
|
||||
awaitedDynamicEntryModules.add(resolution);
|
||||
awaitedDynamicImportsForCurrentEntry.add(resolution);
|
||||
for (const includedDirectTopLevelAwaitingDynamicImporter of resolution.includedDirectTopLevelAwaitingDynamicImporters) {
|
||||
if (staticDependencies.has(includedDirectTopLevelAwaitingDynamicImporter)) {
|
||||
awaitedDynamicEntryModules.add(resolution);
|
||||
awaitedDynamicImportsForCurrentEntry.add(resolution);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21243,24 +21257,32 @@ function analyseModuleExecution(entryModules) {
|
||||
const dynamicImports = new Set();
|
||||
const parents = new Map();
|
||||
const orderedModules = [];
|
||||
const handleSyncLoadedModule = (module, parent) => {
|
||||
if (parents.has(module)) {
|
||||
if (!analysedModules.has(module)) {
|
||||
cyclePaths.push(getCyclePath(module, parent, parents));
|
||||
}
|
||||
return;
|
||||
}
|
||||
parents.set(module, parent);
|
||||
analyseModule(module);
|
||||
};
|
||||
const analyseModule = (module) => {
|
||||
if (module instanceof Module) {
|
||||
for (const dependency of module.dependencies) {
|
||||
if (parents.has(dependency)) {
|
||||
if (!analysedModules.has(dependency)) {
|
||||
cyclePaths.push(getCyclePath(dependency, module, parents));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
parents.set(dependency, module);
|
||||
analyseModule(dependency);
|
||||
handleSyncLoadedModule(dependency, module);
|
||||
}
|
||||
for (const dependency of module.implicitlyLoadedBefore) {
|
||||
dynamicImports.add(dependency);
|
||||
}
|
||||
for (const { resolution } of module.dynamicImports) {
|
||||
for (const { resolution, node } of module.dynamicImports) {
|
||||
if (resolution instanceof Module) {
|
||||
dynamicImports.add(resolution);
|
||||
if (node.withinTopLevelAwait) {
|
||||
handleSyncLoadedModule(resolution, module);
|
||||
}
|
||||
else {
|
||||
dynamicImports.add(resolution);
|
||||
}
|
||||
}
|
||||
}
|
||||
orderedModules.push(module);
|
||||
|
||||
4
node_modules/rollup/dist/shared/watch-cli.js
generated
vendored
4
node_modules/rollup/dist/shared/watch-cli.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
4
node_modules/rollup/dist/shared/watch.js
generated
vendored
4
node_modules/rollup/dist/shared/watch.js
generated
vendored
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
@license
|
||||
Rollup.js v4.40.0
|
||||
Sat, 12 Apr 2025 08:39:04 GMT - commit 1f2d579ccd4b39f223fed14ac7d031a6c848cd80
|
||||
Rollup.js v4.40.2
|
||||
Tue, 06 May 2025 07:26:21 GMT - commit 02da7efedcf373f0f819b78e3acbe50de05d9a5b
|
||||
|
||||
https://github.com/rollup/rollup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user