rollup 4.15.0 → 4.16.1
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 +3 -4
- 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 +249 -30
- package/dist/es/shared/parseAst.js +9 -7
- 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 +2 -2
- package/dist/shared/parseAst.js +10 -6
- package/dist/shared/rollup.js +248 -29
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +17 -17
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.16.1
|
|
5
|
+
Sun, 21 Apr 2024 18:29:24 GMT - commit 5d8019b901e98cc8895751a23e5edfc9135b1a35
|
|
6
6
|
|
|
7
7
|
https://github.com/rollup/rollup
|
|
8
8
|
|
|
@@ -1246,7 +1246,6 @@ yargsParser.detailed = function (args, opts) {
|
|
|
1246
1246
|
yargsParser.camelCase = camelCase;
|
|
1247
1247
|
yargsParser.decamelize = decamelize;
|
|
1248
1248
|
yargsParser.looksLikeNumber = looksLikeNumber;
|
|
1249
|
-
const argParser = yargsParser;
|
|
1250
1249
|
|
|
1251
1250
|
const toZeroIfInfinity = value => Number.isFinite(value) ? value : 0;
|
|
1252
1251
|
|
|
@@ -1731,7 +1730,7 @@ async function getConfigs(command) {
|
|
|
1731
1730
|
return await loadConfigFromCommand(command, false);
|
|
1732
1731
|
}
|
|
1733
1732
|
|
|
1734
|
-
const command =
|
|
1733
|
+
const command = yargsParser(process$1.argv.slice(2), {
|
|
1735
1734
|
alias: rollup.commandAliases,
|
|
1736
1735
|
configuration: { 'camel-case-expansion': false }
|
|
1737
1736
|
});
|
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.16.1
|
|
4
|
+
Sun, 21 Apr 2024 18:29:24 GMT - commit 5d8019b901e98cc8895751a23e5edfc9135b1a35
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
8
8
|
Released under the MIT License.
|
|
9
9
|
*/
|
|
10
|
-
import { normalize, getImportPath, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Program as Program$1, logRedeclarationError, CatchClause as CatchClause$1, logDuplicateArgumentNameError,
|
|
10
|
+
import { normalize, getImportPath, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, Program as Program$1, logRedeclarationError, CatchClause as CatchClause$1, logDuplicateArgumentNameError, BLANK, logIllegalImportReassignment, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, Property as Property$1, logConstVariableReassignError, ExpressionStatement as ExpressionStatement$1, ArrowFunctionExpression as ArrowFunctionExpression$1, logMissingExport, EMPTY_SET, 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, EMPTY_OBJECT, 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.16.1";
|
|
20
20
|
|
|
21
21
|
const comma = ','.charCodeAt(0);
|
|
22
22
|
const semicolon = ';'.charCodeAt(0);
|
|
@@ -1937,6 +1937,9 @@ const NODE_INTERACTION_UNKNOWN_CALL = {
|
|
|
1937
1937
|
};
|
|
1938
1938
|
|
|
1939
1939
|
class Variable extends ExpressionEntity {
|
|
1940
|
+
markReassigned() {
|
|
1941
|
+
this.isReassigned = true;
|
|
1942
|
+
}
|
|
1940
1943
|
constructor(name) {
|
|
1941
1944
|
super();
|
|
1942
1945
|
this.name = name;
|
|
@@ -1944,16 +1947,36 @@ class Variable extends ExpressionEntity {
|
|
|
1944
1947
|
this.forbiddenNames = null;
|
|
1945
1948
|
this.initReached = false;
|
|
1946
1949
|
this.isId = false;
|
|
1947
|
-
this.isReassigned = false;
|
|
1948
1950
|
this.kind = null;
|
|
1949
1951
|
this.renderBaseName = null;
|
|
1950
1952
|
this.renderName = null;
|
|
1953
|
+
this.isReassigned = false;
|
|
1954
|
+
this.onlyFunctionCallUsed = true;
|
|
1951
1955
|
}
|
|
1952
1956
|
/**
|
|
1953
1957
|
* Binds identifiers that reference this variable to this variable.
|
|
1954
1958
|
* Necessary to be able to change variable names.
|
|
1955
1959
|
*/
|
|
1956
1960
|
addReference(_identifier) { }
|
|
1961
|
+
/**
|
|
1962
|
+
* Check if the identifier variable is only used as function call
|
|
1963
|
+
* Forward the check to the export default variable if it is only used once
|
|
1964
|
+
* @returns true if the variable is only used as function call
|
|
1965
|
+
*/
|
|
1966
|
+
getOnlyFunctionCallUsed() {
|
|
1967
|
+
return this.onlyFunctionCallUsed;
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
* Collect the places where the identifier variable is used
|
|
1971
|
+
* @param usedPlace Where the variable is used
|
|
1972
|
+
*/
|
|
1973
|
+
addUsedPlace(usedPlace) {
|
|
1974
|
+
const isFunctionCall = usedPlace.parent.type === CallExpression$1 &&
|
|
1975
|
+
usedPlace.parent.callee === usedPlace;
|
|
1976
|
+
if (!isFunctionCall && usedPlace.parent.type !== ExportDefaultDeclaration$1) {
|
|
1977
|
+
this.onlyFunctionCallUsed = false;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1957
1980
|
/**
|
|
1958
1981
|
* Prevent this variable from being renamed to this name to avoid name
|
|
1959
1982
|
* collisions
|
|
@@ -5691,7 +5714,7 @@ class LocalVariable extends Variable {
|
|
|
5691
5714
|
return;
|
|
5692
5715
|
}
|
|
5693
5716
|
if (path.length === 0) {
|
|
5694
|
-
this.
|
|
5717
|
+
this.markReassigned();
|
|
5695
5718
|
const expressionsToBeDeoptimized = this.expressionsToBeDeoptimized;
|
|
5696
5719
|
this.expressionsToBeDeoptimized = EMPTY_ARRAY;
|
|
5697
5720
|
for (const expression of expressionsToBeDeoptimized) {
|
|
@@ -5785,7 +5808,7 @@ class LocalVariable extends Variable {
|
|
|
5785
5808
|
if (this.additionalInitializers === null) {
|
|
5786
5809
|
this.additionalInitializers = [this.init];
|
|
5787
5810
|
this.init = UNKNOWN_EXPRESSION;
|
|
5788
|
-
this.
|
|
5811
|
+
this.markReassigned();
|
|
5789
5812
|
}
|
|
5790
5813
|
return this.additionalInitializers;
|
|
5791
5814
|
}
|
|
@@ -5803,6 +5826,8 @@ class ParameterVariable extends LocalVariable {
|
|
|
5803
5826
|
this.deoptimizations = new PathTracker();
|
|
5804
5827
|
this.deoptimizedFields = new Set();
|
|
5805
5828
|
this.entitiesToBeDeoptimized = new Set();
|
|
5829
|
+
this.knownExpressionsToBeDeoptimized = [];
|
|
5830
|
+
this.knownValue = UNKNOWN_EXPRESSION;
|
|
5806
5831
|
}
|
|
5807
5832
|
addEntityToBeDeoptimized(entity) {
|
|
5808
5833
|
if (entity === UNKNOWN_EXPRESSION) {
|
|
@@ -5832,6 +5857,47 @@ class ParameterVariable extends LocalVariable {
|
|
|
5832
5857
|
}
|
|
5833
5858
|
}
|
|
5834
5859
|
}
|
|
5860
|
+
markReassigned() {
|
|
5861
|
+
if (this.isReassigned) {
|
|
5862
|
+
return;
|
|
5863
|
+
}
|
|
5864
|
+
super.markReassigned();
|
|
5865
|
+
for (const expression of this.knownExpressionsToBeDeoptimized) {
|
|
5866
|
+
expression.deoptimizeCache();
|
|
5867
|
+
}
|
|
5868
|
+
this.knownExpressionsToBeDeoptimized = [];
|
|
5869
|
+
}
|
|
5870
|
+
/**
|
|
5871
|
+
* If we are sure about the value of this parameter, we can set it here.
|
|
5872
|
+
* It can be a literal or the only possible value of the parameter.
|
|
5873
|
+
* an undefined value means that the parameter is not known.
|
|
5874
|
+
* @param value The known value of the parameter to be set.
|
|
5875
|
+
*/
|
|
5876
|
+
setKnownValue(value) {
|
|
5877
|
+
if (this.isReassigned) {
|
|
5878
|
+
return;
|
|
5879
|
+
}
|
|
5880
|
+
if (this.knownValue !== value) {
|
|
5881
|
+
for (const expression of this.knownExpressionsToBeDeoptimized) {
|
|
5882
|
+
expression.deoptimizeCache();
|
|
5883
|
+
}
|
|
5884
|
+
this.knownExpressionsToBeDeoptimized = [];
|
|
5885
|
+
}
|
|
5886
|
+
this.knownValue = value;
|
|
5887
|
+
}
|
|
5888
|
+
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
5889
|
+
if (this.isReassigned) {
|
|
5890
|
+
return UnknownValue;
|
|
5891
|
+
}
|
|
5892
|
+
this.knownExpressionsToBeDeoptimized.push(origin);
|
|
5893
|
+
return recursionTracker.withTrackedEntityAtPath(path, this.knownValue, () => this.knownValue.getLiteralValueAtPath(path, recursionTracker, origin), UnknownValue);
|
|
5894
|
+
}
|
|
5895
|
+
hasEffectsOnInteractionAtPath(path, interaction, context) {
|
|
5896
|
+
// assigned is a bit different, since the value has a new name (the parameter)
|
|
5897
|
+
return interaction.type === INTERACTION_ASSIGNED
|
|
5898
|
+
? super.hasEffectsOnInteractionAtPath(path, interaction, context)
|
|
5899
|
+
: this.knownValue.hasEffectsOnInteractionAtPath(path, interaction, context);
|
|
5900
|
+
}
|
|
5835
5901
|
deoptimizeArgumentsOnInteractionAtPath(interaction, path) {
|
|
5836
5902
|
// For performance reasons, we fully deoptimize all deeper interactions
|
|
5837
5903
|
if (path.length >= 2 ||
|
|
@@ -5856,7 +5922,11 @@ class ParameterVariable extends LocalVariable {
|
|
|
5856
5922
|
}
|
|
5857
5923
|
}
|
|
5858
5924
|
deoptimizePath(path) {
|
|
5859
|
-
if (
|
|
5925
|
+
if (this.deoptimizedFields.has(UnknownKey)) {
|
|
5926
|
+
return;
|
|
5927
|
+
}
|
|
5928
|
+
if (path.length === 0) {
|
|
5929
|
+
this.markReassigned();
|
|
5860
5930
|
return;
|
|
5861
5931
|
}
|
|
5862
5932
|
const key = path[0];
|
|
@@ -7232,11 +7302,11 @@ function getGlobalAtPath(path) {
|
|
|
7232
7302
|
}
|
|
7233
7303
|
|
|
7234
7304
|
class GlobalVariable extends Variable {
|
|
7235
|
-
constructor() {
|
|
7236
|
-
super(
|
|
7305
|
+
constructor(name) {
|
|
7306
|
+
super(name);
|
|
7237
7307
|
// Ensure we use live-bindings for globals as we do not know if they have
|
|
7238
7308
|
// been reassigned
|
|
7239
|
-
this.
|
|
7309
|
+
this.markReassigned();
|
|
7240
7310
|
}
|
|
7241
7311
|
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
7242
7312
|
switch (interaction.type) {
|
|
@@ -7290,6 +7360,7 @@ class Identifier extends NodeBase {
|
|
|
7290
7360
|
constructor() {
|
|
7291
7361
|
super(...arguments);
|
|
7292
7362
|
this.variable = null;
|
|
7363
|
+
this.isReferenceVariable = false;
|
|
7293
7364
|
}
|
|
7294
7365
|
get isTDZAccess() {
|
|
7295
7366
|
if (!isFlagSet(this.flags, 4 /* Flag.tdzAccessDefined */)) {
|
|
@@ -7310,6 +7381,7 @@ class Identifier extends NodeBase {
|
|
|
7310
7381
|
if (!this.variable && is_reference(this, this.parent)) {
|
|
7311
7382
|
this.variable = this.scope.findVariable(this.name);
|
|
7312
7383
|
this.variable.addReference(this);
|
|
7384
|
+
this.isReferenceVariable = true;
|
|
7313
7385
|
}
|
|
7314
7386
|
}
|
|
7315
7387
|
declare(kind, init) {
|
|
@@ -7472,6 +7544,9 @@ class Identifier extends NodeBase {
|
|
|
7472
7544
|
this.variable.consolidateInitializers();
|
|
7473
7545
|
this.scope.context.requestTreeshakingPass();
|
|
7474
7546
|
}
|
|
7547
|
+
if (this.isReferenceVariable) {
|
|
7548
|
+
this.variable.addUsedPlace(this);
|
|
7549
|
+
}
|
|
7475
7550
|
}
|
|
7476
7551
|
getVariableRespectingTDZ() {
|
|
7477
7552
|
if (this.isPossibleTDZ()) {
|
|
@@ -7791,10 +7866,17 @@ class RestElement extends NodeBase {
|
|
|
7791
7866
|
}
|
|
7792
7867
|
}
|
|
7793
7868
|
|
|
7869
|
+
// This handler does nothing.
|
|
7870
|
+
// Since we always re-evaluate argument values in a new tree-shaking pass,
|
|
7871
|
+
// we don't need to get notified if it is deoptimized.
|
|
7872
|
+
const EMPTY_DEOPTIMIZABLE_HANDLER = { deoptimizeCache() { } };
|
|
7794
7873
|
class FunctionBase extends NodeBase {
|
|
7795
7874
|
constructor() {
|
|
7796
7875
|
super(...arguments);
|
|
7876
|
+
this.knownParameterValues = [];
|
|
7877
|
+
this.allArguments = [];
|
|
7797
7878
|
this.objectEntity = null;
|
|
7879
|
+
this.functionParametersOptimized = false;
|
|
7798
7880
|
}
|
|
7799
7881
|
get async() {
|
|
7800
7882
|
return isFlagSet(this.flags, 256 /* Flag.async */);
|
|
@@ -7814,6 +7896,87 @@ class FunctionBase extends NodeBase {
|
|
|
7814
7896
|
set generator(value) {
|
|
7815
7897
|
this.flags = setFlag(this.flags, 4194304 /* Flag.generator */, value);
|
|
7816
7898
|
}
|
|
7899
|
+
/**
|
|
7900
|
+
* update knownParameterValues when a call is made to this function
|
|
7901
|
+
* @param newArguments arguments of the call
|
|
7902
|
+
*/
|
|
7903
|
+
updateKnownParameterValues(newArguments) {
|
|
7904
|
+
for (let position = 0; position < this.params.length; position++) {
|
|
7905
|
+
// only the "this" argument newArguments[0] can be null
|
|
7906
|
+
// it's possible that some arguments are empty, so the value is undefined
|
|
7907
|
+
const argument = newArguments[position + 1] ?? UNDEFINED_EXPRESSION;
|
|
7908
|
+
const parameter = this.params[position];
|
|
7909
|
+
// RestElement can be, and can only be, the last parameter
|
|
7910
|
+
if (parameter instanceof RestElement) {
|
|
7911
|
+
return;
|
|
7912
|
+
}
|
|
7913
|
+
const knownParameterValue = this.knownParameterValues[position];
|
|
7914
|
+
if (knownParameterValue === undefined) {
|
|
7915
|
+
this.knownParameterValues[position] = argument;
|
|
7916
|
+
continue;
|
|
7917
|
+
}
|
|
7918
|
+
if (knownParameterValue === UNKNOWN_EXPRESSION ||
|
|
7919
|
+
knownParameterValue === argument ||
|
|
7920
|
+
(knownParameterValue instanceof Identifier &&
|
|
7921
|
+
argument instanceof Identifier &&
|
|
7922
|
+
knownParameterValue.variable === argument.variable)) {
|
|
7923
|
+
continue;
|
|
7924
|
+
}
|
|
7925
|
+
const oldValue = knownParameterValue.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, EMPTY_DEOPTIMIZABLE_HANDLER);
|
|
7926
|
+
const newValue = argument.getLiteralValueAtPath(EMPTY_PATH, SHARED_RECURSION_TRACKER, EMPTY_DEOPTIMIZABLE_HANDLER);
|
|
7927
|
+
if (oldValue !== newValue || typeof oldValue === 'symbol') {
|
|
7928
|
+
this.knownParameterValues[position] = UNKNOWN_EXPRESSION;
|
|
7929
|
+
} // else both are the same literal, no need to update
|
|
7930
|
+
}
|
|
7931
|
+
}
|
|
7932
|
+
forwardArgumentsForFunctionCalledOnce(newArguments) {
|
|
7933
|
+
for (let position = 0; position < this.params.length; position++) {
|
|
7934
|
+
const parameter = this.params[position];
|
|
7935
|
+
if (parameter instanceof Identifier) {
|
|
7936
|
+
const ParameterVariable = parameter.variable;
|
|
7937
|
+
const argument = newArguments[position + 1] ?? UNDEFINED_EXPRESSION;
|
|
7938
|
+
ParameterVariable?.setKnownValue(argument);
|
|
7939
|
+
}
|
|
7940
|
+
}
|
|
7941
|
+
}
|
|
7942
|
+
/**
|
|
7943
|
+
* each time tree-shake starts, this method should be called to reoptimize the parameters
|
|
7944
|
+
* a parameter's state will change at most twice:
|
|
7945
|
+
* `undefined` (no call is made) -> an expression -> `UnknownArgument`
|
|
7946
|
+
* we are sure it will converge, and can use state from last iteration
|
|
7947
|
+
*/
|
|
7948
|
+
applyFunctionParameterOptimization() {
|
|
7949
|
+
if (this.allArguments.length === 0) {
|
|
7950
|
+
return;
|
|
7951
|
+
}
|
|
7952
|
+
if (this.allArguments.length === 1) {
|
|
7953
|
+
// we are sure what knownParameterValues will be, so skip it and do setKnownValue
|
|
7954
|
+
this.forwardArgumentsForFunctionCalledOnce(this.allArguments[0]);
|
|
7955
|
+
return;
|
|
7956
|
+
}
|
|
7957
|
+
// reoptimize all arguments, that's why we save them
|
|
7958
|
+
for (const argumentsList of this.allArguments) {
|
|
7959
|
+
this.updateKnownParameterValues(argumentsList);
|
|
7960
|
+
}
|
|
7961
|
+
for (let position = 0; position < this.params.length; position++) {
|
|
7962
|
+
const parameter = this.params[position];
|
|
7963
|
+
// Parameters without default values
|
|
7964
|
+
if (parameter instanceof Identifier) {
|
|
7965
|
+
const parameterVariable = parameter.variable;
|
|
7966
|
+
// Only the RestElement may be undefined
|
|
7967
|
+
const knownParameterValue = this.knownParameterValues[position];
|
|
7968
|
+
parameterVariable?.setKnownValue(knownParameterValue);
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
deoptimizeFunctionParameters() {
|
|
7973
|
+
for (const parameter of this.params) {
|
|
7974
|
+
if (parameter instanceof Identifier) {
|
|
7975
|
+
const parameterVariable = parameter.variable;
|
|
7976
|
+
parameterVariable?.markReassigned();
|
|
7977
|
+
}
|
|
7978
|
+
}
|
|
7979
|
+
}
|
|
7817
7980
|
deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker) {
|
|
7818
7981
|
if (interaction.type === INTERACTION_CALLED) {
|
|
7819
7982
|
const { parameters } = this.scope;
|
|
@@ -7838,6 +8001,7 @@ class FunctionBase extends NodeBase {
|
|
|
7838
8001
|
this.addArgumentToBeDeoptimized(argument);
|
|
7839
8002
|
}
|
|
7840
8003
|
}
|
|
8004
|
+
this.allArguments.push(args);
|
|
7841
8005
|
}
|
|
7842
8006
|
else {
|
|
7843
8007
|
this.getObjectEntity().deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
@@ -7852,6 +8016,7 @@ class FunctionBase extends NodeBase {
|
|
|
7852
8016
|
for (const parameterList of this.scope.parameters) {
|
|
7853
8017
|
for (const parameter of parameterList) {
|
|
7854
8018
|
parameter.deoptimizePath(UNKNOWN_PATH);
|
|
8019
|
+
parameter.markReassigned();
|
|
7855
8020
|
}
|
|
7856
8021
|
}
|
|
7857
8022
|
}
|
|
@@ -7897,7 +8062,30 @@ class FunctionBase extends NodeBase {
|
|
|
7897
8062
|
}
|
|
7898
8063
|
return false;
|
|
7899
8064
|
}
|
|
8065
|
+
/**
|
|
8066
|
+
* If the function (expression or declaration) is only used as function calls
|
|
8067
|
+
*/
|
|
8068
|
+
onlyFunctionCallUsed() {
|
|
8069
|
+
let variable = null;
|
|
8070
|
+
if (this.parent.type === VariableDeclarator$1) {
|
|
8071
|
+
variable = this.parent.id.variable ?? null;
|
|
8072
|
+
}
|
|
8073
|
+
if (this.parent.type === ExportDefaultDeclaration$1) {
|
|
8074
|
+
variable = this.parent.variable;
|
|
8075
|
+
}
|
|
8076
|
+
return variable?.getOnlyFunctionCallUsed() ?? false;
|
|
8077
|
+
}
|
|
7900
8078
|
include(context, includeChildrenRecursively) {
|
|
8079
|
+
const isIIFE = this.parent.type === CallExpression$1 &&
|
|
8080
|
+
this.parent.callee === this;
|
|
8081
|
+
const shoulOptimizeFunctionParameters = isIIFE || this.onlyFunctionCallUsed();
|
|
8082
|
+
if (shoulOptimizeFunctionParameters) {
|
|
8083
|
+
this.applyFunctionParameterOptimization();
|
|
8084
|
+
}
|
|
8085
|
+
else if (this.functionParametersOptimized) {
|
|
8086
|
+
this.deoptimizeFunctionParameters();
|
|
8087
|
+
}
|
|
8088
|
+
this.functionParametersOptimized = shoulOptimizeFunctionParameters;
|
|
7901
8089
|
if (!this.deoptimized)
|
|
7902
8090
|
this.applyDeoptimizations();
|
|
7903
8091
|
this.included = true;
|
|
@@ -8647,7 +8835,7 @@ class MemberExpression extends NodeBase {
|
|
|
8647
8835
|
}
|
|
8648
8836
|
deoptimizeCache() {
|
|
8649
8837
|
const { expressionsToBeDeoptimized, object } = this;
|
|
8650
|
-
this.expressionsToBeDeoptimized =
|
|
8838
|
+
this.expressionsToBeDeoptimized = [];
|
|
8651
8839
|
this.propertyKey = UnknownKey;
|
|
8652
8840
|
object.deoptimizePath(UNKNOWN_PATH);
|
|
8653
8841
|
for (const expression of expressionsToBeDeoptimized) {
|
|
@@ -8796,6 +8984,9 @@ class MemberExpression extends NodeBase {
|
|
|
8796
8984
|
this.object.deoptimizeArgumentsOnInteractionAtPath(this.accessInteraction, [propertyKey], SHARED_RECURSION_TRACKER);
|
|
8797
8985
|
this.scope.context.requestTreeshakingPass();
|
|
8798
8986
|
}
|
|
8987
|
+
if (this.variable) {
|
|
8988
|
+
this.variable.addUsedPlace(this);
|
|
8989
|
+
}
|
|
8799
8990
|
}
|
|
8800
8991
|
applyAssignmentDeoptimization() {
|
|
8801
8992
|
this.assignmentDeoptimized = true;
|
|
@@ -9445,15 +9636,24 @@ class ConditionalExpression extends NodeBase {
|
|
|
9445
9636
|
this.alternate.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
9446
9637
|
}
|
|
9447
9638
|
deoptimizeCache() {
|
|
9639
|
+
if (this.usedBranch ||
|
|
9640
|
+
this.isBranchResolutionAnalysed ||
|
|
9641
|
+
this.expressionsToBeDeoptimized.length > 0) {
|
|
9642
|
+
// Request another pass because we need to ensure "include" runs again if it is rendered
|
|
9643
|
+
this.scope.context.requestTreeshakingPass();
|
|
9644
|
+
}
|
|
9645
|
+
const { expressionsToBeDeoptimized } = this;
|
|
9646
|
+
if (expressionsToBeDeoptimized.length > 0) {
|
|
9647
|
+
this.expressionsToBeDeoptimized = [];
|
|
9648
|
+
for (const expression of expressionsToBeDeoptimized) {
|
|
9649
|
+
expression.deoptimizeCache();
|
|
9650
|
+
}
|
|
9651
|
+
}
|
|
9652
|
+
this.isBranchResolutionAnalysed = false;
|
|
9448
9653
|
if (this.usedBranch !== null) {
|
|
9449
9654
|
const unusedBranch = this.usedBranch === this.consequent ? this.alternate : this.consequent;
|
|
9450
9655
|
this.usedBranch = null;
|
|
9451
9656
|
unusedBranch.deoptimizePath(UNKNOWN_PATH);
|
|
9452
|
-
const { expressionsToBeDeoptimized } = this;
|
|
9453
|
-
this.expressionsToBeDeoptimized = EMPTY_ARRAY;
|
|
9454
|
-
for (const expression of expressionsToBeDeoptimized) {
|
|
9455
|
-
expression.deoptimizeCache();
|
|
9456
|
-
}
|
|
9457
9657
|
}
|
|
9458
9658
|
}
|
|
9459
9659
|
deoptimizePath(path) {
|
|
@@ -9467,10 +9667,10 @@ class ConditionalExpression extends NodeBase {
|
|
|
9467
9667
|
}
|
|
9468
9668
|
}
|
|
9469
9669
|
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
9670
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
9470
9671
|
const usedBranch = this.getUsedBranch();
|
|
9471
9672
|
if (!usedBranch)
|
|
9472
9673
|
return UnknownValue;
|
|
9473
|
-
this.expressionsToBeDeoptimized.push(origin);
|
|
9474
9674
|
return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
|
|
9475
9675
|
}
|
|
9476
9676
|
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
@@ -9669,6 +9869,10 @@ class FunctionDeclaration extends FunctionNode {
|
|
|
9669
9869
|
this.id.variable.isId = true;
|
|
9670
9870
|
}
|
|
9671
9871
|
}
|
|
9872
|
+
onlyFunctionCallUsed() {
|
|
9873
|
+
// call super.onlyFunctionCallUsed for export default anonymous function
|
|
9874
|
+
return this.id?.variable.getOnlyFunctionCallUsed() ?? super.onlyFunctionCallUsed();
|
|
9875
|
+
}
|
|
9672
9876
|
parseNode(esTreeNode) {
|
|
9673
9877
|
if (esTreeNode.id !== null) {
|
|
9674
9878
|
this.id = new Identifier(this, this.scope.parent).parseNode(esTreeNode.id);
|
|
@@ -9957,7 +10161,7 @@ class IfStatement extends NodeBase {
|
|
|
9957
10161
|
this.testValue = unset;
|
|
9958
10162
|
}
|
|
9959
10163
|
deoptimizeCache() {
|
|
9960
|
-
this.testValue =
|
|
10164
|
+
this.testValue = unset;
|
|
9961
10165
|
}
|
|
9962
10166
|
hasEffects(context) {
|
|
9963
10167
|
if (this.test.hasEffects(context)) {
|
|
@@ -10765,18 +10969,24 @@ class LogicalExpression extends NodeBase {
|
|
|
10765
10969
|
this.right.deoptimizeArgumentsOnInteractionAtPath(interaction, path, recursionTracker);
|
|
10766
10970
|
}
|
|
10767
10971
|
deoptimizeCache() {
|
|
10972
|
+
if (this.usedBranch ||
|
|
10973
|
+
this.isBranchResolutionAnalysed ||
|
|
10974
|
+
this.expressionsToBeDeoptimized.length > 0) {
|
|
10975
|
+
// Request another pass because we need to ensure "include" runs again if it is rendered
|
|
10976
|
+
this.scope.context.requestTreeshakingPass();
|
|
10977
|
+
}
|
|
10978
|
+
const { expressionsToBeDeoptimized } = this;
|
|
10979
|
+
if (expressionsToBeDeoptimized.length > 0) {
|
|
10980
|
+
this.expressionsToBeDeoptimized = [];
|
|
10981
|
+
for (const expression of expressionsToBeDeoptimized) {
|
|
10982
|
+
expression.deoptimizeCache();
|
|
10983
|
+
}
|
|
10984
|
+
}
|
|
10985
|
+
this.isBranchResolutionAnalysed = false;
|
|
10768
10986
|
if (this.usedBranch) {
|
|
10769
10987
|
const unusedBranch = this.usedBranch === this.left ? this.right : this.left;
|
|
10770
10988
|
this.usedBranch = null;
|
|
10771
10989
|
unusedBranch.deoptimizePath(UNKNOWN_PATH);
|
|
10772
|
-
const { scope: { context }, expressionsToBeDeoptimized } = this;
|
|
10773
|
-
this.expressionsToBeDeoptimized = EMPTY_ARRAY;
|
|
10774
|
-
for (const expression of expressionsToBeDeoptimized) {
|
|
10775
|
-
expression.deoptimizeCache();
|
|
10776
|
-
}
|
|
10777
|
-
// Request another pass because we need to ensure "include" runs again if
|
|
10778
|
-
// it is rendered
|
|
10779
|
-
context.requestTreeshakingPass();
|
|
10780
10990
|
}
|
|
10781
10991
|
}
|
|
10782
10992
|
deoptimizePath(path) {
|
|
@@ -10790,10 +11000,10 @@ class LogicalExpression extends NodeBase {
|
|
|
10790
11000
|
}
|
|
10791
11001
|
}
|
|
10792
11002
|
getLiteralValueAtPath(path, recursionTracker, origin) {
|
|
11003
|
+
this.expressionsToBeDeoptimized.push(origin);
|
|
10793
11004
|
const usedBranch = this.getUsedBranch();
|
|
10794
11005
|
if (!usedBranch)
|
|
10795
11006
|
return UnknownValue;
|
|
10796
|
-
this.expressionsToBeDeoptimized.push(origin);
|
|
10797
11007
|
return usedBranch.getLiteralValueAtPath(path, recursionTracker, origin);
|
|
10798
11008
|
}
|
|
10799
11009
|
getReturnExpressionWhenCalledAtPath(path, interaction, recursionTracker, origin) {
|
|
@@ -11735,6 +11945,15 @@ class ExportDefaultVariable extends LocalVariable {
|
|
|
11735
11945
|
this.name = identifier.name;
|
|
11736
11946
|
}
|
|
11737
11947
|
}
|
|
11948
|
+
addUsedPlace(usedPlace) {
|
|
11949
|
+
const original = this.getOriginalVariable();
|
|
11950
|
+
if (original === this) {
|
|
11951
|
+
super.addUsedPlace(usedPlace);
|
|
11952
|
+
}
|
|
11953
|
+
else {
|
|
11954
|
+
original.addUsedPlace(usedPlace);
|
|
11955
|
+
}
|
|
11956
|
+
}
|
|
11738
11957
|
forbidName(name) {
|
|
11739
11958
|
const original = this.getOriginalVariable();
|
|
11740
11959
|
if (original === this) {
|
|
@@ -12008,7 +12227,7 @@ class UpdateExpression extends NodeBase {
|
|
|
12008
12227
|
this.argument.deoptimizePath(EMPTY_PATH);
|
|
12009
12228
|
if (this.argument instanceof Identifier) {
|
|
12010
12229
|
const variable = this.scope.findVariable(this.argument.name);
|
|
12011
|
-
variable.
|
|
12230
|
+
variable.markReassigned();
|
|
12012
12231
|
}
|
|
12013
12232
|
this.scope.context.requestTreeshakingPass();
|
|
12014
12233
|
}
|
|
@@ -18125,7 +18344,7 @@ function addModuleToManualChunk(alias, module, manualChunkAliasByEntry) {
|
|
|
18125
18344
|
|
|
18126
18345
|
function flru (max) {
|
|
18127
18346
|
var num, curr, prev;
|
|
18128
|
-
var limit = max
|
|
18347
|
+
var limit = max ;
|
|
18129
18348
|
|
|
18130
18349
|
function keep(key, value) {
|
|
18131
18350
|
if (++num > limit) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.16.1
|
|
4
|
+
Sun, 21 Apr 2024 18:29:24 GMT - commit 5d8019b901e98cc8895751a23e5edfc9135b1a35
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -14,6 +14,7 @@ const ArrowFunctionExpression = 'ArrowFunctionExpression';
|
|
|
14
14
|
const BlockStatement = 'BlockStatement';
|
|
15
15
|
const CallExpression = 'CallExpression';
|
|
16
16
|
const CatchClause = 'CatchClause';
|
|
17
|
+
const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
|
|
17
18
|
const ExpressionStatement = 'ExpressionStatement';
|
|
18
19
|
const Identifier = 'Identifier';
|
|
19
20
|
const Literal = 'Literal';
|
|
@@ -23,6 +24,7 @@ const Program = 'Program';
|
|
|
23
24
|
const Property = 'Property';
|
|
24
25
|
const ReturnStatement = 'ReturnStatement';
|
|
25
26
|
const TemplateLiteral = 'TemplateLiteral';
|
|
27
|
+
const VariableDeclarator = 'VariableDeclarator';
|
|
26
28
|
|
|
27
29
|
const BLANK = Object.freeze(Object.create(null));
|
|
28
30
|
const EMPTY_OBJECT = Object.freeze({});
|
|
@@ -548,7 +550,7 @@ function logDeprecation(deprecation, urlSnippet, plugin) {
|
|
|
548
550
|
code: DEPRECATED_FEATURE,
|
|
549
551
|
message: deprecation,
|
|
550
552
|
url: getRollupUrl(urlSnippet),
|
|
551
|
-
...(
|
|
553
|
+
...({})
|
|
552
554
|
};
|
|
553
555
|
}
|
|
554
556
|
function logConstVariableReassignError() {
|
|
@@ -1032,11 +1034,11 @@ function logFailedValidation(message) {
|
|
|
1032
1034
|
};
|
|
1033
1035
|
}
|
|
1034
1036
|
function warnDeprecation(deprecation, urlSnippet, activeDeprecation, options, plugin) {
|
|
1035
|
-
warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations
|
|
1037
|
+
warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations);
|
|
1036
1038
|
}
|
|
1037
1039
|
function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) {
|
|
1038
|
-
|
|
1039
|
-
const warning = logDeprecation(deprecation, urlSnippet
|
|
1040
|
+
{
|
|
1041
|
+
const warning = logDeprecation(deprecation, urlSnippet);
|
|
1040
1042
|
if (strictDeprecations) {
|
|
1041
1043
|
return error(warning);
|
|
1042
1044
|
}
|
|
@@ -2204,4 +2206,4 @@ const parseAstAsync = async (input, { allowReturnOutsideFunction = false, signal
|
|
|
2204
2206
|
return convertProgram(astBuffer.buffer, getReadStringFunction(astBuffer));
|
|
2205
2207
|
};
|
|
2206
2208
|
|
|
2207
|
-
export { ANNOTATION_KEY, ArrowFunctionExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, 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 };
|
|
2209
|
+
export { ANNOTATION_KEY, ArrowFunctionExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, 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, VariableDeclarator, 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