rollup 4.12.0 → 4.13.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 +33 -48
- package/dist/es/shared/parseAst.js +38 -10
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +15 -14
- package/dist/shared/parseAst.js +39 -10
- package/dist/shared/rollup.js +32 -47
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +29 -29
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.13.0
|
|
5
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
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,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.0
|
|
4
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
import { normalize, getImportPath, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Program as Program$1, logRedeclarationError, CatchClause as CatchClause$1, logDuplicateArgumentNameError, CallExpression as CallExpression$1, logIllegalImportReassignment, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, Property as Property$1, logConstVariableReassignError, ExpressionStatement as ExpressionStatement$1, ArrowFunctionExpression as ArrowFunctionExpression$1, logMissingExport, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1,
|
|
10
|
+
import { normalize, getImportPath, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Program as Program$1, logRedeclarationError, CatchClause as CatchClause$1, logDuplicateArgumentNameError, CallExpression as CallExpression$1, logIllegalImportReassignment, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, Property as Property$1, logConstVariableReassignError, ExpressionStatement as ExpressionStatement$1, ArrowFunctionExpression as ArrowFunctionExpression$1, logMissingExport, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logParseError, logModuleParseError, error, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, Identifier as Identifier$1, logThisIsUndefined, getReadStringFunction, convertString, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logSyntheticNamedExportsNeedNamespaceExport, logMissingEntryExport, logInvalidFormatForTopLevelAwait, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logCircularReexport, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logMissingNodeBuiltins, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logCannotAssignModuleToChunk, logAnonymousPluginCache, logDuplicatePluginName, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, logUnknownOption, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, relativeId, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, logFileNameConflict, logAssetNotFinalisedForFileName, logChunkNotGeneratedForFileName, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidFunctionPluginHook, logInvalidAddonPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_TREESHAKE_MODULESIDEEFFECTS, URL_TREESHAKE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_AMD_BASEPATH, logInvalidExportOptionValue, warnDeprecation, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
|
|
11
11
|
import { relative, dirname, basename, extname, resolve as resolve$1 } from 'node:path';
|
|
12
12
|
import require$$0$1, { win32, posix, isAbsolute, resolve } from 'path';
|
|
13
13
|
import { parseAsync, xxhashBase64Url, xxhashBase36, xxhashBase16 } from '../../native.js';
|
|
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
|
|
|
16
16
|
import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
|
|
17
17
|
import * as tty from 'tty';
|
|
18
18
|
|
|
19
|
-
var version = "4.
|
|
19
|
+
var version = "4.13.0";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -500,9 +500,12 @@ class Mappings {
|
|
|
500
500
|
|
|
501
501
|
addEdit(sourceIndex, content, loc, nameIndex) {
|
|
502
502
|
if (content.length) {
|
|
503
|
+
const contentLengthMinusOne = content.length - 1;
|
|
503
504
|
let contentLineEnd = content.indexOf('\n', 0);
|
|
504
505
|
let previousContentLineEnd = -1;
|
|
505
|
-
|
|
506
|
+
// Loop through each line in the content and add a segment, but stop if the last line is empty,
|
|
507
|
+
// else code afterwards would fill one line too many
|
|
508
|
+
while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
|
|
506
509
|
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
507
510
|
if (nameIndex >= 0) {
|
|
508
511
|
segment.push(nameIndex);
|
|
@@ -5618,7 +5621,7 @@ class ArrayPattern extends NodeBase {
|
|
|
5618
5621
|
element?.deoptimizePath(EMPTY_PATH);
|
|
5619
5622
|
}
|
|
5620
5623
|
}
|
|
5621
|
-
// Patterns are only checked at the
|
|
5624
|
+
// Patterns are only checked at the empty path at the moment
|
|
5622
5625
|
hasEffectsOnInteractionAtPath(_path, interaction, context) {
|
|
5623
5626
|
for (const element of this.elements) {
|
|
5624
5627
|
if (element?.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context))
|
|
@@ -10984,18 +10987,18 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
10984
10987
|
: 'undefined';
|
|
10985
10988
|
};
|
|
10986
10989
|
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
10987
|
-
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
|
|
10990
|
+
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
|
|
10988
10991
|
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
10989
10992
|
const relativeUrlMechanisms = {
|
|
10990
10993
|
amd: relativePath => {
|
|
10991
10994
|
if (relativePath[0] !== '.')
|
|
10992
10995
|
relativePath = './' + relativePath;
|
|
10993
|
-
return getResolveUrl(`require.toUrl('${relativePath}'), document.baseURI`);
|
|
10996
|
+
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`);
|
|
10994
10997
|
},
|
|
10995
10998
|
cjs: relativePath => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
|
|
10996
|
-
es: relativePath => getResolveUrl(`'${relativePath}', import.meta.url`),
|
|
10999
|
+
es: relativePath => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url`),
|
|
10997
11000
|
iife: relativePath => getRelativeUrlFromDocument(relativePath),
|
|
10998
|
-
system: relativePath => getResolveUrl(`'${relativePath}', module.meta.url`),
|
|
11001
|
+
system: relativePath => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url`),
|
|
10999
11002
|
umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
|
|
11000
11003
|
};
|
|
11001
11004
|
const importMetaMechanisms = {
|
|
@@ -11140,7 +11143,7 @@ class PanicError extends NodeBase {
|
|
|
11140
11143
|
const id = this.scope.context.module.id;
|
|
11141
11144
|
// This simulates the current nested error structure. We could also just
|
|
11142
11145
|
// replace it with a flat error.
|
|
11143
|
-
const parseError =
|
|
11146
|
+
const parseError = getRollupError(logParseError(this.message));
|
|
11144
11147
|
const moduleParseError = logModuleParseError(parseError, id);
|
|
11145
11148
|
return error(moduleParseError);
|
|
11146
11149
|
}
|
|
@@ -11152,7 +11155,7 @@ class ParseError extends NodeBase {
|
|
|
11152
11155
|
const id = this.scope.context.module.id;
|
|
11153
11156
|
// This simulates the current nested error structure. We could also just
|
|
11154
11157
|
// replace it with a flat error.
|
|
11155
|
-
const parseError =
|
|
11158
|
+
const parseError = getRollupError(logParseError(this.message, pos));
|
|
11156
11159
|
const moduleParseError = logModuleParseError(parseError, id);
|
|
11157
11160
|
this.scope.context.error(moduleParseError, pos);
|
|
11158
11161
|
}
|
|
@@ -16758,13 +16761,10 @@ function* concatLazy(iterables) {
|
|
|
16758
16761
|
*
|
|
16759
16762
|
* One non-trivial optimization we can apply is that dynamic entries are
|
|
16760
16763
|
* different from static entries in so far as when a dynamic import occurs,
|
|
16761
|
-
* some
|
|
16762
|
-
*
|
|
16763
|
-
*
|
|
16764
|
-
*
|
|
16765
|
-
* for them. Instead, the dynamic import target can load them from the
|
|
16766
|
-
* importing
|
|
16767
|
-
* chunk.
|
|
16764
|
+
* some modules are already in memory. If some of these modules are also
|
|
16765
|
+
* dependencies of the dynamic entry, then it does not make sense to create a
|
|
16766
|
+
* separate chunk for them. Instead, the dynamic import target can load them
|
|
16767
|
+
* from the importing chunk.
|
|
16768
16768
|
*
|
|
16769
16769
|
* With regard to chunking, if B is implicitly loaded after A, then this can be
|
|
16770
16770
|
* handled the same way as if there was a dynamic import A => B.
|
|
@@ -16773,8 +16773,7 @@ function* concatLazy(iterables) {
|
|
|
16773
16773
|
* Assume A -> B (A imports B), A => C (A dynamically imports C) and C -> B.
|
|
16774
16774
|
* Then the initial algorithm would assign A into the A chunk, C into the C
|
|
16775
16775
|
* chunk and B into the AC chunk, i.e. the chunk with the dependent entry
|
|
16776
|
-
* points
|
|
16777
|
-
* A and C.
|
|
16776
|
+
* points A and C.
|
|
16778
16777
|
* However we know that C can only be loaded from A, so A and its dependency B
|
|
16779
16778
|
* must already be in memory when C is loaded. So it is enough to create only
|
|
16780
16779
|
* two chunks A containing [AB] and C containing [C].
|
|
@@ -16789,15 +16788,13 @@ function* concatLazy(iterables) {
|
|
|
16789
16788
|
* A => D,
|
|
16790
16789
|
* D -> B, D -> C
|
|
16791
16790
|
* So without dynamic import optimization, the dependent entry points are
|
|
16792
|
-
* A: XY, B: DXY, C: DX, D: D, X: X, Y: Y,
|
|
16793
|
-
*
|
|
16791
|
+
* A: XY, B: DXY, C: DX, D: D, X: X, Y: Y, so we would for now create six
|
|
16792
|
+
* chunks.
|
|
16794
16793
|
*
|
|
16795
16794
|
* Now D is loaded only after A is loaded. But A is loaded if either X is
|
|
16796
|
-
* loaded
|
|
16797
|
-
*
|
|
16798
|
-
*
|
|
16799
|
-
* Y
|
|
16800
|
-
* depends on, which in this case are the modules A and B.
|
|
16795
|
+
* loaded or Y is loaded. So the modules that are already in memory when D is
|
|
16796
|
+
* loaded are the intersection of all modules that X depends on with all
|
|
16797
|
+
* modules that Y depends on, which in this case are the modules A and B.
|
|
16801
16798
|
* We could also say they are all modules that have both X and Y as dependent
|
|
16802
16799
|
* entry points.
|
|
16803
16800
|
*
|
|
@@ -16806,8 +16803,7 @@ function* concatLazy(iterables) {
|
|
|
16806
16803
|
* same chunk.
|
|
16807
16804
|
*
|
|
16808
16805
|
* Now let us extend this to the most general case where we have several
|
|
16809
|
-
* dynamic
|
|
16810
|
-
* importers for one dynamic entry point.
|
|
16806
|
+
* dynamic importers for one dynamic entry point.
|
|
16811
16807
|
*
|
|
16812
16808
|
* In the most general form, it works like this:
|
|
16813
16809
|
* For each dynamic entry point, we have a number of dynamic importers, which
|
|
@@ -16820,9 +16816,8 @@ function* concatLazy(iterables) {
|
|
|
16820
16816
|
* each dynamic importer.
|
|
16821
16817
|
*
|
|
16822
16818
|
* Assuming that A => D and B => D and A has dependent entry points XY and B
|
|
16823
|
-
* has
|
|
16824
|
-
*
|
|
16825
|
-
* all modules that have at least XYZ as dependent entry points.
|
|
16819
|
+
* has dependent entry points YZ, then the modules guaranteed to be in memory
|
|
16820
|
+
* are all modules that have at least XYZ as dependent entry points.
|
|
16826
16821
|
* We call XYZ the *dynamically dependent entry points* of D.
|
|
16827
16822
|
*
|
|
16828
16823
|
* Now there is one last case to consider: If one of the dynamically dependent
|
|
@@ -16849,7 +16844,7 @@ function* concatLazy(iterables) {
|
|
|
16849
16844
|
*
|
|
16850
16845
|
* For efficient operations, we assign each entry a numerical index and
|
|
16851
16846
|
* represent Sets of Chunks as BigInt values where each chunk corresponds to a
|
|
16852
|
-
* bit index. Then
|
|
16847
|
+
* bit index. Then the last two maps can be represented as arrays of BigInt
|
|
16853
16848
|
* values.
|
|
16854
16849
|
*
|
|
16855
16850
|
* Then we iterate through each dynamic entry. We set the already loaded modules
|
|
@@ -18314,7 +18309,7 @@ const getDefaultOnLog = (printLog, onwarn) => onwarn
|
|
|
18314
18309
|
: printLog;
|
|
18315
18310
|
const addLogToString = (log) => {
|
|
18316
18311
|
Object.defineProperty(log, 'toString', {
|
|
18317
|
-
value: () =>
|
|
18312
|
+
value: () => log.message,
|
|
18318
18313
|
writable: true
|
|
18319
18314
|
});
|
|
18320
18315
|
return log;
|
|
@@ -18324,18 +18319,7 @@ const normalizeLog = (log) => typeof log === 'string'
|
|
|
18324
18319
|
: typeof log === 'function'
|
|
18325
18320
|
? normalizeLog(log())
|
|
18326
18321
|
: log;
|
|
18327
|
-
const
|
|
18328
|
-
let prefix = '';
|
|
18329
|
-
if (log.plugin) {
|
|
18330
|
-
prefix += `(${log.plugin} plugin) `;
|
|
18331
|
-
}
|
|
18332
|
-
if (log.loc) {
|
|
18333
|
-
prefix += `${relativeId(log.loc.file)} (${log.loc.line}:${log.loc.column}) `;
|
|
18334
|
-
}
|
|
18335
|
-
return prefix + log.message;
|
|
18336
|
-
};
|
|
18337
|
-
const defaultPrintLog = (level, log) => {
|
|
18338
|
-
const message = getExtendedLogMessage(log);
|
|
18322
|
+
const defaultPrintLog = (level, { message }) => {
|
|
18339
18323
|
switch (level) {
|
|
18340
18324
|
case LOGLEVEL_WARN: {
|
|
18341
18325
|
return console.warn(message);
|
|
@@ -18668,7 +18652,7 @@ class ModuleLoader {
|
|
|
18668
18652
|
? source
|
|
18669
18653
|
: error(logBadLoader(id));
|
|
18670
18654
|
const code = sourceDescription.code;
|
|
18671
|
-
if (code.charCodeAt(0) ===
|
|
18655
|
+
if (code.charCodeAt(0) === 0xfe_ff) {
|
|
18672
18656
|
sourceDescription.code = code.slice(1);
|
|
18673
18657
|
}
|
|
18674
18658
|
const cachedModule = this.graph.cachedModules.get(id);
|
|
@@ -19937,6 +19921,7 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
|
19937
19921
|
plugins = getSortedValidatedPlugins('onLog', plugins);
|
|
19938
19922
|
const minimalPriority = logLevelPriority[logLevel];
|
|
19939
19923
|
const logger = (level, log, skipped = EMPTY_SET) => {
|
|
19924
|
+
augmentLogMessage(log);
|
|
19940
19925
|
const logPriority = logLevelPriority[level];
|
|
19941
19926
|
if (logPriority < minimalPriority) {
|
|
19942
19927
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.0
|
|
4
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -369,11 +369,15 @@ const URL_TREESHAKE_MODULESIDEEFFECTS = 'configuration-options/#treeshake-module
|
|
|
369
369
|
const URL_WATCH = 'configuration-options/#watch';
|
|
370
370
|
|
|
371
371
|
function error(base) {
|
|
372
|
-
throw base instanceof Error ? base :
|
|
372
|
+
throw base instanceof Error ? base : getRollupError(base);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function getRollupError(base) {
|
|
375
|
+
augmentLogMessage(base);
|
|
375
376
|
const errorInstance = Object.assign(new Error(base.message), base);
|
|
376
|
-
Object.defineProperty(errorInstance, 'name', {
|
|
377
|
+
Object.defineProperty(errorInstance, 'name', {
|
|
378
|
+
value: 'RollupError',
|
|
379
|
+
writable: true
|
|
380
|
+
});
|
|
377
381
|
return errorInstance;
|
|
378
382
|
}
|
|
379
383
|
function augmentCodeLocation(properties, pos, source, id) {
|
|
@@ -395,6 +399,24 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
395
399
|
properties.frame = getCodeFrame(source, line, column);
|
|
396
400
|
}
|
|
397
401
|
}
|
|
402
|
+
const symbolAugmented = Symbol('augmented');
|
|
403
|
+
function augmentLogMessage(log) {
|
|
404
|
+
// Make sure to only augment the log message once
|
|
405
|
+
if (!(log.plugin || log.loc) || log[symbolAugmented]) {
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
log[symbolAugmented] = true;
|
|
409
|
+
let prefix = '';
|
|
410
|
+
if (log.plugin) {
|
|
411
|
+
prefix += `[plugin ${log.plugin}] `;
|
|
412
|
+
}
|
|
413
|
+
const id = log.id || log.loc?.file;
|
|
414
|
+
if (id) {
|
|
415
|
+
const position = log.loc ? ` (${log.loc.line}:${log.loc.column})` : '';
|
|
416
|
+
prefix += `${relativeId(id)}${position}: `;
|
|
417
|
+
}
|
|
418
|
+
log.message = prefix + log.message;
|
|
419
|
+
}
|
|
398
420
|
// Error codes should be sorted alphabetically while errors should be sorted by
|
|
399
421
|
// error code below
|
|
400
422
|
const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';
|
|
@@ -520,7 +542,10 @@ function logConstVariableReassignError() {
|
|
|
520
542
|
};
|
|
521
543
|
}
|
|
522
544
|
function logDuplicateArgumentNameError(name) {
|
|
523
|
-
return {
|
|
545
|
+
return {
|
|
546
|
+
code: DUPLICATE_ARGUMENT_NAME,
|
|
547
|
+
message: `Duplicate argument name "${name}"`
|
|
548
|
+
};
|
|
524
549
|
}
|
|
525
550
|
function logDuplicateExportError(name) {
|
|
526
551
|
return { code: DUPLICATE_EXPORT, message: `Duplicate export "${name}"` };
|
|
@@ -818,7 +843,10 @@ function logParseError(message, pos) {
|
|
|
818
843
|
return { code: PARSE_ERROR, message, pos };
|
|
819
844
|
}
|
|
820
845
|
function logRedeclarationError(name) {
|
|
821
|
-
return {
|
|
846
|
+
return {
|
|
847
|
+
code: REDECLARATION_ERROR,
|
|
848
|
+
message: `Identifier "${name}" has already been declared`
|
|
849
|
+
};
|
|
822
850
|
}
|
|
823
851
|
function logModuleParseError(error, moduleId) {
|
|
824
852
|
let message = error.message.replace(/ \(\d+:\d+\)$/, '');
|
|
@@ -1006,10 +1034,10 @@ function convertProgram(buffer, readString) {
|
|
|
1006
1034
|
const node = convertNode(0, new Uint32Array(buffer), readString);
|
|
1007
1035
|
switch (node.type) {
|
|
1008
1036
|
case PanicError: {
|
|
1009
|
-
return error(
|
|
1037
|
+
return error(getRollupError(logParseError(node.message)));
|
|
1010
1038
|
}
|
|
1011
1039
|
case ParseError: {
|
|
1012
|
-
return error(
|
|
1040
|
+
return error(getRollupError(logParseError(node.message, node.start)));
|
|
1013
1041
|
}
|
|
1014
1042
|
default: {
|
|
1015
1043
|
return node;
|
|
@@ -2158,4 +2186,4 @@ const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal
|
|
|
2158
2186
|
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
2159
2187
|
};
|
|
2160
2188
|
|
|
2161
|
-
export { ANNOTATION_KEY, ArrowFunctionExpression, BlockStatement, CallExpression, CatchClause, ExpressionStatement, FIXED_STRINGS, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, Program, Property, ReturnStatement, TemplateLiteral, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, addTrailingSlashIfMissed, augmentCodeLocation, convertAnnotations, convertNode, convertString, error, getAliasName, getImportPath, getReadStringFunction,
|
|
2189
|
+
export { ANNOTATION_KEY, ArrowFunctionExpression, BlockStatement, CallExpression, CatchClause, ExpressionStatement, FIXED_STRINGS, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, Program, Property, ReturnStatement, TemplateLiteral, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_AMD_ID, URL_OUTPUT_DIR, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, URL_OUTPUT_FORMAT, URL_OUTPUT_GENERATEDCODE, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_OUTPUT_INTEROP, URL_OUTPUT_MANUALCHUNKS, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_SOURCEMAPFILE, URL_PRESERVEENTRYSIGNATURES, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, convertString, error, getAliasName, getImportPath, getReadStringFunction, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileReferenceIdNotFoundForFilename, logFirstSideEffect, logIllegalIdentifierAsName, logIllegalImportReassignment, logImplicitDependantCannotBeExternal, logImplicitDependantIsNotIncluded, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logIncompatibleExportOptionValue, logInconsistentImportAttributes, logInputHookInOutputPlugin, logInternalIdCannotBeExternal, logInvalidAddonPluginHook, logInvalidAnnotation, logInvalidExportOptionValue, logInvalidFormatForTopLevelAwait, logInvalidFunctionPluginHook, logInvalidLogPosition, logInvalidOption, logInvalidRollupPhaseForChunkEmission, logInvalidSetAssetSourceCall, logInvalidSourcemapForError, logLevelPriority, logMissingEntryExport, logMissingExport, logMissingFileOrDirOption, logMissingGlobalName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logShimmedExport, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.0
|
|
4
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -150,20 +150,16 @@ const deferredHandlers = {
|
|
|
150
150
|
},
|
|
151
151
|
PLUGIN_WARNING(warnings) {
|
|
152
152
|
const nestedByPlugin = nest(warnings, 'plugin');
|
|
153
|
-
for (const {
|
|
153
|
+
for (const { items } of nestedByPlugin) {
|
|
154
154
|
const nestedByMessage = nest(items, 'message');
|
|
155
155
|
let lastUrl = '';
|
|
156
156
|
for (const { key: message, items } of nestedByMessage) {
|
|
157
|
-
title(
|
|
157
|
+
title(message);
|
|
158
158
|
for (const warning of items) {
|
|
159
159
|
if (warning.url && warning.url !== lastUrl)
|
|
160
160
|
info((lastUrl = warning.url));
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
163
|
-
let loc = parseAst_js.relativeId(id);
|
|
164
|
-
if (warning.loc) {
|
|
165
|
-
loc += `: (${warning.loc.line}:${warning.loc.column})`;
|
|
166
|
-
}
|
|
161
|
+
const loc = formatLocation(warning);
|
|
162
|
+
if (loc) {
|
|
167
163
|
rollup.stderr(rollup.bold(loc));
|
|
168
164
|
}
|
|
169
165
|
if (warning.frame)
|
|
@@ -210,10 +206,9 @@ function defaultBody(log) {
|
|
|
210
206
|
if (log.url) {
|
|
211
207
|
info(parseAst_js.getRollupUrl(log.url));
|
|
212
208
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
|
|
216
|
-
rollup.stderr(rollup.bold(parseAst_js.relativeId(loc)));
|
|
209
|
+
const loc = formatLocation(log);
|
|
210
|
+
if (loc) {
|
|
211
|
+
rollup.stderr(rollup.bold(loc));
|
|
217
212
|
}
|
|
218
213
|
if (log.frame)
|
|
219
214
|
info(log.frame);
|
|
@@ -261,6 +256,12 @@ function generateLogFilter(command) {
|
|
|
261
256
|
}
|
|
262
257
|
return getLogFilter_js.getLogFilter(filters);
|
|
263
258
|
}
|
|
259
|
+
function formatLocation(log) {
|
|
260
|
+
const id = log.loc?.file || log.id;
|
|
261
|
+
if (!id)
|
|
262
|
+
return null;
|
|
263
|
+
return log.loc ? `${id}:${log.loc.line}:${log.loc.column}` : id;
|
|
264
|
+
}
|
|
264
265
|
|
|
265
266
|
const stdinName = '-';
|
|
266
267
|
let stdinResult = null;
|
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.0
|
|
4
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -275,11 +275,15 @@ const URL_BUNDLE_CONFIG_AS_CJS = 'command-line-interface/#bundleconfigascjs';
|
|
|
275
275
|
const URL_CONFIGURATION_FILES = 'command-line-interface/#configuration-files';
|
|
276
276
|
|
|
277
277
|
function error(base) {
|
|
278
|
-
throw base instanceof Error ? base :
|
|
278
|
+
throw base instanceof Error ? base : getRollupError(base);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function getRollupError(base) {
|
|
281
|
+
augmentLogMessage(base);
|
|
281
282
|
const errorInstance = Object.assign(new Error(base.message), base);
|
|
282
|
-
Object.defineProperty(errorInstance, 'name', {
|
|
283
|
+
Object.defineProperty(errorInstance, 'name', {
|
|
284
|
+
value: 'RollupError',
|
|
285
|
+
writable: true
|
|
286
|
+
});
|
|
283
287
|
return errorInstance;
|
|
284
288
|
}
|
|
285
289
|
function augmentCodeLocation(properties, pos, source, id) {
|
|
@@ -301,6 +305,24 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
301
305
|
properties.frame = getCodeFrame(source, line, column);
|
|
302
306
|
}
|
|
303
307
|
}
|
|
308
|
+
const symbolAugmented = Symbol('augmented');
|
|
309
|
+
function augmentLogMessage(log) {
|
|
310
|
+
// Make sure to only augment the log message once
|
|
311
|
+
if (!(log.plugin || log.loc) || log[symbolAugmented]) {
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
log[symbolAugmented] = true;
|
|
315
|
+
let prefix = '';
|
|
316
|
+
if (log.plugin) {
|
|
317
|
+
prefix += `[plugin ${log.plugin}] `;
|
|
318
|
+
}
|
|
319
|
+
const id = log.id || log.loc?.file;
|
|
320
|
+
if (id) {
|
|
321
|
+
const position = log.loc ? ` (${log.loc.line}:${log.loc.column})` : '';
|
|
322
|
+
prefix += `${relativeId(id)}${position}: `;
|
|
323
|
+
}
|
|
324
|
+
log.message = prefix + log.message;
|
|
325
|
+
}
|
|
304
326
|
// Error codes should be sorted alphabetically while errors should be sorted by
|
|
305
327
|
// error code below
|
|
306
328
|
const ADDON_ERROR = 'ADDON_ERROR', ALREADY_CLOSED = 'ALREADY_CLOSED', AMBIGUOUS_EXTERNAL_NAMESPACES = 'AMBIGUOUS_EXTERNAL_NAMESPACES', ANONYMOUS_PLUGIN_CACHE = 'ANONYMOUS_PLUGIN_CACHE', ASSET_NOT_FINALISED = 'ASSET_NOT_FINALISED', ASSET_NOT_FOUND = 'ASSET_NOT_FOUND', ASSET_SOURCE_ALREADY_SET = 'ASSET_SOURCE_ALREADY_SET', ASSET_SOURCE_MISSING = 'ASSET_SOURCE_MISSING', BAD_LOADER = 'BAD_LOADER', CANNOT_CALL_NAMESPACE = 'CANNOT_CALL_NAMESPACE', CANNOT_EMIT_FROM_OPTIONS_HOOK = 'CANNOT_EMIT_FROM_OPTIONS_HOOK', CHUNK_NOT_GENERATED = 'CHUNK_NOT_GENERATED', CHUNK_INVALID = 'CHUNK_INVALID', CIRCULAR_DEPENDENCY = 'CIRCULAR_DEPENDENCY', CIRCULAR_REEXPORT = 'CIRCULAR_REEXPORT', CONST_REASSIGN = 'CONST_REASSIGN', CYCLIC_CROSS_CHUNK_REEXPORT = 'CYCLIC_CROSS_CHUNK_REEXPORT', DEPRECATED_FEATURE = 'DEPRECATED_FEATURE', DUPLICATE_ARGUMENT_NAME = 'DUPLICATE_ARGUMENT_NAME', DUPLICATE_EXPORT = 'DUPLICATE_EXPORT', DUPLICATE_IMPORT_OPTIONS = 'DUPLICATE_IMPORT_OPTIONS', DUPLICATE_PLUGIN_NAME = 'DUPLICATE_PLUGIN_NAME', EMPTY_BUNDLE = 'EMPTY_BUNDLE', EVAL = 'EVAL', EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS = 'EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS', EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES = 'EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES', EXTERNAL_SYNTHETIC_EXPORTS = 'EXTERNAL_SYNTHETIC_EXPORTS', FAIL_AFTER_WARNINGS = 'FAIL_AFTER_WARNINGS', FILE_NAME_CONFLICT = 'FILE_NAME_CONFLICT', FILE_NOT_FOUND = 'FILE_NOT_FOUND', FIRST_SIDE_EFFECT = 'FIRST_SIDE_EFFECT', ILLEGAL_IDENTIFIER_AS_NAME = 'ILLEGAL_IDENTIFIER_AS_NAME', ILLEGAL_REASSIGNMENT = 'ILLEGAL_REASSIGNMENT', INCONSISTENT_IMPORT_ATTRIBUTES = 'INCONSISTENT_IMPORT_ATTRIBUTES', INVALID_ANNOTATION = 'INVALID_ANNOTATION', INPUT_HOOK_IN_OUTPUT_PLUGIN = 'INPUT_HOOK_IN_OUTPUT_PLUGIN', INVALID_CHUNK = 'INVALID_CHUNK', INVALID_CONFIG_MODULE_FORMAT = 'INVALID_CONFIG_MODULE_FORMAT', INVALID_EXPORT_OPTION = 'INVALID_EXPORT_OPTION', INVALID_EXTERNAL_ID = 'INVALID_EXTERNAL_ID', INVALID_IMPORT_ATTRIBUTE = 'INVALID_IMPORT_ATTRIBUTE', INVALID_LOG_POSITION = 'INVALID_LOG_POSITION', INVALID_OPTION = 'INVALID_OPTION', INVALID_PLUGIN_HOOK = 'INVALID_PLUGIN_HOOK', INVALID_ROLLUP_PHASE = 'INVALID_ROLLUP_PHASE', INVALID_SETASSETSOURCE = 'INVALID_SETASSETSOURCE', INVALID_TLA_FORMAT = 'INVALID_TLA_FORMAT', MISSING_CONFIG = 'MISSING_CONFIG', MISSING_EXPORT = 'MISSING_EXPORT', MISSING_EXTERNAL_CONFIG = 'MISSING_EXTERNAL_CONFIG', MISSING_GLOBAL_NAME = 'MISSING_GLOBAL_NAME', MISSING_IMPLICIT_DEPENDANT = 'MISSING_IMPLICIT_DEPENDANT', MISSING_NAME_OPTION_FOR_IIFE_EXPORT = 'MISSING_NAME_OPTION_FOR_IIFE_EXPORT', MISSING_NODE_BUILTINS = 'MISSING_NODE_BUILTINS', MISSING_OPTION = 'MISSING_OPTION', MIXED_EXPORTS = 'MIXED_EXPORTS', MODULE_LEVEL_DIRECTIVE = 'MODULE_LEVEL_DIRECTIVE', NAMESPACE_CONFLICT = 'NAMESPACE_CONFLICT', NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE = 'NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE', ONLY_INLINE_SOURCEMAPS = 'ONLY_INLINE_SOURCEMAPS', OPTIMIZE_CHUNK_STATUS = 'OPTIMIZE_CHUNK_STATUS', PARSE_ERROR = 'PARSE_ERROR', PLUGIN_ERROR = 'PLUGIN_ERROR', REDECLARATION_ERROR = 'REDECLARATION_ERROR', SHIMMED_EXPORT = 'SHIMMED_EXPORT', SOURCEMAP_BROKEN = 'SOURCEMAP_BROKEN', SOURCEMAP_ERROR = 'SOURCEMAP_ERROR', SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT = 'SYNTHETIC_NAMED_EXPORTS_NEED_NAMESPACE_EXPORT', THIS_IS_UNDEFINED = 'THIS_IS_UNDEFINED', UNEXPECTED_NAMED_IMPORT = 'UNEXPECTED_NAMED_IMPORT', UNKNOWN_OPTION = 'UNKNOWN_OPTION', UNRESOLVED_ENTRY = 'UNRESOLVED_ENTRY', UNRESOLVED_IMPORT = 'UNRESOLVED_IMPORT', UNUSED_EXTERNAL_IMPORT = 'UNUSED_EXTERNAL_IMPORT', VALIDATION_ERROR = 'VALIDATION_ERROR';
|
|
@@ -426,7 +448,10 @@ function logConstVariableReassignError() {
|
|
|
426
448
|
};
|
|
427
449
|
}
|
|
428
450
|
function logDuplicateArgumentNameError(name) {
|
|
429
|
-
return {
|
|
451
|
+
return {
|
|
452
|
+
code: DUPLICATE_ARGUMENT_NAME,
|
|
453
|
+
message: `Duplicate argument name "${name}"`
|
|
454
|
+
};
|
|
430
455
|
}
|
|
431
456
|
function logDuplicateExportError(name) {
|
|
432
457
|
return { code: DUPLICATE_EXPORT, message: `Duplicate export "${name}"` };
|
|
@@ -782,7 +807,10 @@ function logParseError(message, pos) {
|
|
|
782
807
|
return { code: PARSE_ERROR, message, pos };
|
|
783
808
|
}
|
|
784
809
|
function logRedeclarationError(name) {
|
|
785
|
-
return {
|
|
810
|
+
return {
|
|
811
|
+
code: REDECLARATION_ERROR,
|
|
812
|
+
message: `Identifier "${name}" has already been declared`
|
|
813
|
+
};
|
|
786
814
|
}
|
|
787
815
|
function logModuleParseError(error, moduleId) {
|
|
788
816
|
let message = error.message.replace(/ \(\d+:\d+\)$/, '');
|
|
@@ -1069,10 +1097,10 @@ function convertProgram(buffer, readString) {
|
|
|
1069
1097
|
const node = convertNode(0, new Uint32Array(buffer), readString);
|
|
1070
1098
|
switch (node.type) {
|
|
1071
1099
|
case PanicError: {
|
|
1072
|
-
return error(
|
|
1100
|
+
return error(getRollupError(logParseError(node.message)));
|
|
1073
1101
|
}
|
|
1074
1102
|
case ParseError: {
|
|
1075
|
-
return error(
|
|
1103
|
+
return error(getRollupError(logParseError(node.message, node.start)));
|
|
1076
1104
|
}
|
|
1077
1105
|
default: {
|
|
1078
1106
|
return node;
|
|
@@ -2263,6 +2291,7 @@ exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
|
|
|
2263
2291
|
exports.URL_WATCH = URL_WATCH;
|
|
2264
2292
|
exports.addTrailingSlashIfMissed = addTrailingSlashIfMissed;
|
|
2265
2293
|
exports.augmentCodeLocation = augmentCodeLocation;
|
|
2294
|
+
exports.augmentLogMessage = augmentLogMessage;
|
|
2266
2295
|
exports.convertAnnotations = convertAnnotations;
|
|
2267
2296
|
exports.convertNode = convertNode;
|
|
2268
2297
|
exports.convertString = convertString;
|
|
@@ -2270,7 +2299,7 @@ exports.error = error;
|
|
|
2270
2299
|
exports.getAliasName = getAliasName;
|
|
2271
2300
|
exports.getImportPath = getImportPath;
|
|
2272
2301
|
exports.getReadStringFunction = getReadStringFunction;
|
|
2273
|
-
exports.
|
|
2302
|
+
exports.getRollupError = getRollupError;
|
|
2274
2303
|
exports.getRollupUrl = getRollupUrl;
|
|
2275
2304
|
exports.isAbsolute = isAbsolute;
|
|
2276
2305
|
exports.isPathFragment = isPathFragment;
|
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.13.0
|
|
4
|
+
Tue, 12 Mar 2024 05:27:08 GMT - commit 1c8afed74bd81cd38ad0b373ea6b6ec382975013
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
|
|
|
31
31
|
|
|
32
32
|
const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
|
|
33
33
|
|
|
34
|
-
var version = "4.
|
|
34
|
+
var version = "4.13.0";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -659,7 +659,7 @@ const getDefaultOnLog = (printLog, onwarn) => onwarn
|
|
|
659
659
|
: printLog;
|
|
660
660
|
const addLogToString = (log) => {
|
|
661
661
|
Object.defineProperty(log, 'toString', {
|
|
662
|
-
value: () =>
|
|
662
|
+
value: () => log.message,
|
|
663
663
|
writable: true
|
|
664
664
|
});
|
|
665
665
|
return log;
|
|
@@ -669,18 +669,7 @@ const normalizeLog = (log) => typeof log === 'string'
|
|
|
669
669
|
: typeof log === 'function'
|
|
670
670
|
? normalizeLog(log())
|
|
671
671
|
: log;
|
|
672
|
-
const
|
|
673
|
-
let prefix = '';
|
|
674
|
-
if (log.plugin) {
|
|
675
|
-
prefix += `(${log.plugin} plugin) `;
|
|
676
|
-
}
|
|
677
|
-
if (log.loc) {
|
|
678
|
-
prefix += `${parseAst_js.relativeId(log.loc.file)} (${log.loc.line}:${log.loc.column}) `;
|
|
679
|
-
}
|
|
680
|
-
return prefix + log.message;
|
|
681
|
-
};
|
|
682
|
-
const defaultPrintLog = (level, log) => {
|
|
683
|
-
const message = getExtendedLogMessage(log);
|
|
672
|
+
const defaultPrintLog = (level, { message }) => {
|
|
684
673
|
switch (level) {
|
|
685
674
|
case parseAst_js.LOGLEVEL_WARN: {
|
|
686
675
|
return console.warn(message);
|
|
@@ -1100,6 +1089,7 @@ function getLogger(plugins, onLog, watchMode, logLevel) {
|
|
|
1100
1089
|
plugins = getSortedValidatedPlugins('onLog', plugins);
|
|
1101
1090
|
const minimalPriority = parseAst_js.logLevelPriority[logLevel];
|
|
1102
1091
|
const logger = (level, log, skipped = EMPTY_SET) => {
|
|
1092
|
+
parseAst_js.augmentLogMessage(log);
|
|
1103
1093
|
const logPriority = parseAst_js.logLevelPriority[level];
|
|
1104
1094
|
if (logPriority < minimalPriority) {
|
|
1105
1095
|
return;
|
|
@@ -1977,9 +1967,12 @@ class Mappings {
|
|
|
1977
1967
|
|
|
1978
1968
|
addEdit(sourceIndex, content, loc, nameIndex) {
|
|
1979
1969
|
if (content.length) {
|
|
1970
|
+
const contentLengthMinusOne = content.length - 1;
|
|
1980
1971
|
let contentLineEnd = content.indexOf('\n', 0);
|
|
1981
1972
|
let previousContentLineEnd = -1;
|
|
1982
|
-
|
|
1973
|
+
// Loop through each line in the content and add a segment, but stop if the last line is empty,
|
|
1974
|
+
// else code afterwards would fill one line too many
|
|
1975
|
+
while (contentLineEnd >= 0 && contentLengthMinusOne > contentLineEnd) {
|
|
1983
1976
|
const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
|
|
1984
1977
|
if (nameIndex >= 0) {
|
|
1985
1978
|
segment.push(nameIndex);
|
|
@@ -7070,7 +7063,7 @@ class ArrayPattern extends NodeBase {
|
|
|
7070
7063
|
element?.deoptimizePath(EMPTY_PATH);
|
|
7071
7064
|
}
|
|
7072
7065
|
}
|
|
7073
|
-
// Patterns are only checked at the
|
|
7066
|
+
// Patterns are only checked at the empty path at the moment
|
|
7074
7067
|
hasEffectsOnInteractionAtPath(_path, interaction, context) {
|
|
7075
7068
|
for (const element of this.elements) {
|
|
7076
7069
|
if (element?.hasEffectsOnInteractionAtPath(EMPTY_PATH, interaction, context))
|
|
@@ -12422,18 +12415,18 @@ const getGenericImportMetaMechanism = (getUrl) => (property, { chunkId }) => {
|
|
|
12422
12415
|
: 'undefined';
|
|
12423
12416
|
};
|
|
12424
12417
|
const getFileUrlFromFullPath = (path) => `require('u' + 'rl').pathToFileURL(${path}).href`;
|
|
12425
|
-
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${path}'`);
|
|
12418
|
+
const getFileUrlFromRelativePath = (path) => getFileUrlFromFullPath(`__dirname + '/${escapeId(path)}'`);
|
|
12426
12419
|
const getUrlFromDocument = (chunkId, umd = false) => `${umd ? `typeof document === 'undefined' ? location.href : ` : ''}(${DOCUMENT_CURRENT_SCRIPT} && ${DOCUMENT_CURRENT_SCRIPT}.src || new URL('${escapeId(chunkId)}', document.baseURI).href)`;
|
|
12427
12420
|
const relativeUrlMechanisms = {
|
|
12428
12421
|
amd: relativePath => {
|
|
12429
12422
|
if (relativePath[0] !== '.')
|
|
12430
12423
|
relativePath = './' + relativePath;
|
|
12431
|
-
return getResolveUrl(`require.toUrl('${relativePath}'), document.baseURI`);
|
|
12424
|
+
return getResolveUrl(`require.toUrl('${escapeId(relativePath)}'), document.baseURI`);
|
|
12432
12425
|
},
|
|
12433
12426
|
cjs: relativePath => `(typeof document === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath)})`,
|
|
12434
|
-
es: relativePath => getResolveUrl(`'${relativePath}', import.meta.url`),
|
|
12427
|
+
es: relativePath => getResolveUrl(`'${escapeId(relativePath)}', import.meta.url`),
|
|
12435
12428
|
iife: relativePath => getRelativeUrlFromDocument(relativePath),
|
|
12436
|
-
system: relativePath => getResolveUrl(`'${relativePath}', module.meta.url`),
|
|
12429
|
+
system: relativePath => getResolveUrl(`'${escapeId(relativePath)}', module.meta.url`),
|
|
12437
12430
|
umd: relativePath => `(typeof document === 'undefined' && typeof location === 'undefined' ? ${getFileUrlFromRelativePath(relativePath)} : ${getRelativeUrlFromDocument(relativePath, true)})`
|
|
12438
12431
|
};
|
|
12439
12432
|
const importMetaMechanisms = {
|
|
@@ -12578,7 +12571,7 @@ class PanicError extends NodeBase {
|
|
|
12578
12571
|
const id = this.scope.context.module.id;
|
|
12579
12572
|
// This simulates the current nested error structure. We could also just
|
|
12580
12573
|
// replace it with a flat error.
|
|
12581
|
-
const parseError = parseAst_js.
|
|
12574
|
+
const parseError = parseAst_js.getRollupError(parseAst_js.logParseError(this.message));
|
|
12582
12575
|
const moduleParseError = parseAst_js.logModuleParseError(parseError, id);
|
|
12583
12576
|
return parseAst_js.error(moduleParseError);
|
|
12584
12577
|
}
|
|
@@ -12590,7 +12583,7 @@ class ParseError extends NodeBase {
|
|
|
12590
12583
|
const id = this.scope.context.module.id;
|
|
12591
12584
|
// This simulates the current nested error structure. We could also just
|
|
12592
12585
|
// replace it with a flat error.
|
|
12593
|
-
const parseError = parseAst_js.
|
|
12586
|
+
const parseError = parseAst_js.getRollupError(parseAst_js.logParseError(this.message, pos));
|
|
12594
12587
|
const moduleParseError = parseAst_js.logModuleParseError(parseError, id);
|
|
12595
12588
|
this.scope.context.error(moduleParseError, pos);
|
|
12596
12589
|
}
|
|
@@ -18084,13 +18077,10 @@ function* concatLazy(iterables) {
|
|
|
18084
18077
|
*
|
|
18085
18078
|
* One non-trivial optimization we can apply is that dynamic entries are
|
|
18086
18079
|
* different from static entries in so far as when a dynamic import occurs,
|
|
18087
|
-
* some
|
|
18088
|
-
*
|
|
18089
|
-
*
|
|
18090
|
-
*
|
|
18091
|
-
* for them. Instead, the dynamic import target can load them from the
|
|
18092
|
-
* importing
|
|
18093
|
-
* chunk.
|
|
18080
|
+
* some modules are already in memory. If some of these modules are also
|
|
18081
|
+
* dependencies of the dynamic entry, then it does not make sense to create a
|
|
18082
|
+
* separate chunk for them. Instead, the dynamic import target can load them
|
|
18083
|
+
* from the importing chunk.
|
|
18094
18084
|
*
|
|
18095
18085
|
* With regard to chunking, if B is implicitly loaded after A, then this can be
|
|
18096
18086
|
* handled the same way as if there was a dynamic import A => B.
|
|
@@ -18099,8 +18089,7 @@ function* concatLazy(iterables) {
|
|
|
18099
18089
|
* Assume A -> B (A imports B), A => C (A dynamically imports C) and C -> B.
|
|
18100
18090
|
* Then the initial algorithm would assign A into the A chunk, C into the C
|
|
18101
18091
|
* chunk and B into the AC chunk, i.e. the chunk with the dependent entry
|
|
18102
|
-
* points
|
|
18103
|
-
* A and C.
|
|
18092
|
+
* points A and C.
|
|
18104
18093
|
* However we know that C can only be loaded from A, so A and its dependency B
|
|
18105
18094
|
* must already be in memory when C is loaded. So it is enough to create only
|
|
18106
18095
|
* two chunks A containing [AB] and C containing [C].
|
|
@@ -18115,15 +18104,13 @@ function* concatLazy(iterables) {
|
|
|
18115
18104
|
* A => D,
|
|
18116
18105
|
* D -> B, D -> C
|
|
18117
18106
|
* So without dynamic import optimization, the dependent entry points are
|
|
18118
|
-
* A: XY, B: DXY, C: DX, D: D, X: X, Y: Y,
|
|
18119
|
-
*
|
|
18107
|
+
* A: XY, B: DXY, C: DX, D: D, X: X, Y: Y, so we would for now create six
|
|
18108
|
+
* chunks.
|
|
18120
18109
|
*
|
|
18121
18110
|
* Now D is loaded only after A is loaded. But A is loaded if either X is
|
|
18122
|
-
* loaded
|
|
18123
|
-
*
|
|
18124
|
-
*
|
|
18125
|
-
* Y
|
|
18126
|
-
* depends on, which in this case are the modules A and B.
|
|
18111
|
+
* loaded or Y is loaded. So the modules that are already in memory when D is
|
|
18112
|
+
* loaded are the intersection of all modules that X depends on with all
|
|
18113
|
+
* modules that Y depends on, which in this case are the modules A and B.
|
|
18127
18114
|
* We could also say they are all modules that have both X and Y as dependent
|
|
18128
18115
|
* entry points.
|
|
18129
18116
|
*
|
|
@@ -18132,8 +18119,7 @@ function* concatLazy(iterables) {
|
|
|
18132
18119
|
* same chunk.
|
|
18133
18120
|
*
|
|
18134
18121
|
* Now let us extend this to the most general case where we have several
|
|
18135
|
-
* dynamic
|
|
18136
|
-
* importers for one dynamic entry point.
|
|
18122
|
+
* dynamic importers for one dynamic entry point.
|
|
18137
18123
|
*
|
|
18138
18124
|
* In the most general form, it works like this:
|
|
18139
18125
|
* For each dynamic entry point, we have a number of dynamic importers, which
|
|
@@ -18146,9 +18132,8 @@ function* concatLazy(iterables) {
|
|
|
18146
18132
|
* each dynamic importer.
|
|
18147
18133
|
*
|
|
18148
18134
|
* Assuming that A => D and B => D and A has dependent entry points XY and B
|
|
18149
|
-
* has
|
|
18150
|
-
*
|
|
18151
|
-
* all modules that have at least XYZ as dependent entry points.
|
|
18135
|
+
* has dependent entry points YZ, then the modules guaranteed to be in memory
|
|
18136
|
+
* are all modules that have at least XYZ as dependent entry points.
|
|
18152
18137
|
* We call XYZ the *dynamically dependent entry points* of D.
|
|
18153
18138
|
*
|
|
18154
18139
|
* Now there is one last case to consider: If one of the dynamically dependent
|
|
@@ -18175,7 +18160,7 @@ function* concatLazy(iterables) {
|
|
|
18175
18160
|
*
|
|
18176
18161
|
* For efficient operations, we assign each entry a numerical index and
|
|
18177
18162
|
* represent Sets of Chunks as BigInt values where each chunk corresponds to a
|
|
18178
|
-
* bit index. Then
|
|
18163
|
+
* bit index. Then the last two maps can be represented as arrays of BigInt
|
|
18179
18164
|
* values.
|
|
18180
18165
|
*
|
|
18181
18166
|
* Then we iterate through each dynamic entry. We set the already loaded modules
|
|
@@ -19744,7 +19729,7 @@ class ModuleLoader {
|
|
|
19744
19729
|
? source
|
|
19745
19730
|
: parseAst_js.error(parseAst_js.logBadLoader(id));
|
|
19746
19731
|
const code = sourceDescription.code;
|
|
19747
|
-
if (code.charCodeAt(0) ===
|
|
19732
|
+
if (code.charCodeAt(0) === 0xfe_ff) {
|
|
19748
19733
|
sourceDescription.code = code.slice(1);
|
|
19749
19734
|
}
|
|
19750
19735
|
const cachedModule = this.graph.cachedModules.get(id);
|
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.13.0",
|
|
4
4
|
"description": "Next-generation ES module bundler",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -101,19 +101,19 @@
|
|
|
101
101
|
"homepage": "https://rollupjs.org/",
|
|
102
102
|
"optionalDependencies": {
|
|
103
103
|
"fsevents": "~2.3.2",
|
|
104
|
-
"@rollup/rollup-darwin-arm64": "4.
|
|
105
|
-
"@rollup/rollup-android-arm64": "4.
|
|
106
|
-
"@rollup/rollup-win32-arm64-msvc": "4.
|
|
107
|
-
"@rollup/rollup-linux-arm64-gnu": "4.
|
|
108
|
-
"@rollup/rollup-linux-arm64-musl": "4.
|
|
109
|
-
"@rollup/rollup-android-arm-eabi": "4.
|
|
110
|
-
"@rollup/rollup-linux-arm-gnueabihf": "4.
|
|
111
|
-
"@rollup/rollup-win32-ia32-msvc": "4.
|
|
112
|
-
"@rollup/rollup-linux-riscv64-gnu": "4.
|
|
113
|
-
"@rollup/rollup-darwin-x64": "4.
|
|
114
|
-
"@rollup/rollup-win32-x64-msvc": "4.
|
|
115
|
-
"@rollup/rollup-linux-x64-gnu": "4.
|
|
116
|
-
"@rollup/rollup-linux-x64-musl": "4.
|
|
104
|
+
"@rollup/rollup-darwin-arm64": "4.13.0",
|
|
105
|
+
"@rollup/rollup-android-arm64": "4.13.0",
|
|
106
|
+
"@rollup/rollup-win32-arm64-msvc": "4.13.0",
|
|
107
|
+
"@rollup/rollup-linux-arm64-gnu": "4.13.0",
|
|
108
|
+
"@rollup/rollup-linux-arm64-musl": "4.13.0",
|
|
109
|
+
"@rollup/rollup-android-arm-eabi": "4.13.0",
|
|
110
|
+
"@rollup/rollup-linux-arm-gnueabihf": "4.13.0",
|
|
111
|
+
"@rollup/rollup-win32-ia32-msvc": "4.13.0",
|
|
112
|
+
"@rollup/rollup-linux-riscv64-gnu": "4.13.0",
|
|
113
|
+
"@rollup/rollup-darwin-x64": "4.13.0",
|
|
114
|
+
"@rollup/rollup-win32-x64-msvc": "4.13.0",
|
|
115
|
+
"@rollup/rollup-linux-x64-gnu": "4.13.0",
|
|
116
|
+
"@rollup/rollup-linux-x64-musl": "4.13.0"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
119
|
"@types/estree": "1.0.5"
|
|
@@ -125,11 +125,11 @@
|
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
127
|
"@codemirror/commands": "^6.3.3",
|
|
128
|
-
"@codemirror/lang-javascript": "^6.2.
|
|
128
|
+
"@codemirror/lang-javascript": "^6.2.2",
|
|
129
129
|
"@codemirror/language": "^6.10.1",
|
|
130
130
|
"@codemirror/search": "^6.5.6",
|
|
131
|
-
"@codemirror/state": "^6.4.
|
|
132
|
-
"@codemirror/view": "^6.
|
|
131
|
+
"@codemirror/state": "^6.4.1",
|
|
132
|
+
"@codemirror/view": "^6.25.0",
|
|
133
133
|
"@jridgewell/sourcemap-codec": "^1.4.15",
|
|
134
134
|
"@mermaid-js/mermaid-cli": "^10.8.0",
|
|
135
135
|
"@napi-rs/cli": "^2.18.0",
|
|
@@ -142,13 +142,13 @@
|
|
|
142
142
|
"@rollup/plugin-terser": "^0.4.4",
|
|
143
143
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
144
144
|
"@rollup/pluginutils": "^5.1.0",
|
|
145
|
-
"@types/eslint": "^8.56.
|
|
145
|
+
"@types/eslint": "^8.56.5",
|
|
146
146
|
"@types/inquirer": "^9.0.7",
|
|
147
147
|
"@types/mocha": "^10.0.6",
|
|
148
148
|
"@types/node": "~18.18.14",
|
|
149
149
|
"@types/yargs-parser": "^21.0.3",
|
|
150
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
151
|
-
"@typescript-eslint/parser": "^7.
|
|
150
|
+
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
|
151
|
+
"@typescript-eslint/parser": "^7.1.1",
|
|
152
152
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
153
153
|
"@vue/eslint-config-typescript": "^12.0.0",
|
|
154
154
|
"acorn": "^8.11.3",
|
|
@@ -162,22 +162,22 @@
|
|
|
162
162
|
"date-time": "^4.0.0",
|
|
163
163
|
"es5-shim": "^4.6.7",
|
|
164
164
|
"es6-shim": "^0.35.8",
|
|
165
|
-
"eslint": "^8.
|
|
165
|
+
"eslint": "^8.57.0",
|
|
166
166
|
"eslint-config-prettier": "^9.1.0",
|
|
167
167
|
"eslint-plugin-import": "^2.29.1",
|
|
168
168
|
"eslint-plugin-prettier": "^5.1.3",
|
|
169
169
|
"eslint-plugin-unicorn": "^51.0.1",
|
|
170
|
-
"eslint-plugin-vue": "^9.
|
|
170
|
+
"eslint-plugin-vue": "^9.22.0",
|
|
171
171
|
"fixturify": "^3.0.0",
|
|
172
172
|
"flru": "^1.0.2",
|
|
173
173
|
"fs-extra": "^11.2.0",
|
|
174
174
|
"github-api": "^3.4.0",
|
|
175
|
-
"husky": "^9.0.
|
|
176
|
-
"inquirer": "^9.2.
|
|
175
|
+
"husky": "^9.0.11",
|
|
176
|
+
"inquirer": "^9.2.15",
|
|
177
177
|
"is-reference": "^3.0.2",
|
|
178
178
|
"lint-staged": "^15.2.2",
|
|
179
179
|
"locate-character": "^3.0.0",
|
|
180
|
-
"magic-string": "^0.30.
|
|
180
|
+
"magic-string": "^0.30.8",
|
|
181
181
|
"mocha": "^10.3.0",
|
|
182
182
|
"nyc": "^15.1.0",
|
|
183
183
|
"pinia": "^2.1.7",
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"pretty-bytes": "^6.1.1",
|
|
186
186
|
"pretty-ms": "^9.0.0",
|
|
187
187
|
"requirejs": "^2.3.6",
|
|
188
|
-
"rollup": "^4.
|
|
188
|
+
"rollup": "^4.12.0",
|
|
189
189
|
"rollup-plugin-license": "^3.2.0",
|
|
190
190
|
"rollup-plugin-string": "^3.0.0",
|
|
191
191
|
"semver": "^7.6.0",
|
|
@@ -194,12 +194,12 @@
|
|
|
194
194
|
"source-map": "^0.7.4",
|
|
195
195
|
"source-map-support": "^0.5.21",
|
|
196
196
|
"systemjs": "^6.14.3",
|
|
197
|
-
"terser": "^5.
|
|
197
|
+
"terser": "^5.28.1",
|
|
198
198
|
"tslib": "^2.6.2",
|
|
199
199
|
"typescript": "^5.3.3",
|
|
200
|
-
"vite": "^5.1.
|
|
200
|
+
"vite": "^5.1.5",
|
|
201
201
|
"vitepress": "1.0.0-rc.39",
|
|
202
|
-
"vue": "^3.4.
|
|
202
|
+
"vue": "^3.4.21",
|
|
203
203
|
"wasm-pack": "^0.12.1",
|
|
204
204
|
"weak-napi": "^2.0.2",
|
|
205
205
|
"yargs-parser": "^21.1.1"
|