@rollup/wasm-node 4.14.3 → 4.16.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 +4 -5
- 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 +241 -31
- 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.d.ts +3 -0
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +10 -6
- package/dist/shared/rollup.js +240 -30
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +13 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.16.0
|
|
4
|
+
Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
|
|
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
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.d.ts
CHANGED
|
@@ -623,6 +623,7 @@ export interface NormalizedInputOptions {
|
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
export type InternalModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd';
|
|
626
|
+
export type ImportAttributesKey = 'with' | 'assert';
|
|
626
627
|
|
|
627
628
|
export type ModuleFormat = InternalModuleFormat | 'commonjs' | 'esm' | 'module' | 'systemjs';
|
|
628
629
|
|
|
@@ -712,6 +713,7 @@ export interface OutputOptions {
|
|
|
712
713
|
globals?: GlobalsOption;
|
|
713
714
|
hashCharacters?: HashCharacters;
|
|
714
715
|
hoistTransitiveImports?: boolean;
|
|
716
|
+
importAttributesKey?: ImportAttributesKey;
|
|
715
717
|
indent?: string | boolean;
|
|
716
718
|
inlineDynamicImports?: boolean;
|
|
717
719
|
interop?: InteropType | GetInterop;
|
|
@@ -764,6 +766,7 @@ export interface NormalizedOutputOptions {
|
|
|
764
766
|
globals: GlobalsOption;
|
|
765
767
|
hashCharacters: HashCharacters;
|
|
766
768
|
hoistTransitiveImports: boolean;
|
|
769
|
+
importAttributesKey: ImportAttributesKey;
|
|
767
770
|
indent: true | string;
|
|
768
771
|
inlineDynamicImports: boolean;
|
|
769
772
|
interop: GetInterop;
|
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.16.0
|
|
4
|
+
Sun, 21 Apr 2024 04:41:09 GMT - commit 38fe70780cb7e374b47da99e3a3dca6b2a2170d2
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -438,7 +438,7 @@ function logDeprecation(deprecation, urlSnippet, plugin) {
|
|
|
438
438
|
code: DEPRECATED_FEATURE,
|
|
439
439
|
message: deprecation,
|
|
440
440
|
url: getRollupUrl(urlSnippet),
|
|
441
|
-
...(
|
|
441
|
+
...({})
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
444
|
function logConstVariableReassignError() {
|
|
@@ -980,11 +980,11 @@ function logFailedValidation(message) {
|
|
|
980
980
|
};
|
|
981
981
|
}
|
|
982
982
|
function warnDeprecation(deprecation, urlSnippet, activeDeprecation, options, plugin) {
|
|
983
|
-
warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations
|
|
983
|
+
warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, options.onLog, options.strictDeprecations);
|
|
984
984
|
}
|
|
985
985
|
function warnDeprecationWithOptions(deprecation, urlSnippet, activeDeprecation, log, strictDeprecations, plugin) {
|
|
986
|
-
|
|
987
|
-
const warning = logDeprecation(deprecation, urlSnippet
|
|
986
|
+
{
|
|
987
|
+
const warning = logDeprecation(deprecation, urlSnippet);
|
|
988
988
|
if (strictDeprecations) {
|
|
989
989
|
return error(warning);
|
|
990
990
|
}
|
|
@@ -1005,6 +1005,7 @@ const ArrowFunctionExpression = 'ArrowFunctionExpression';
|
|
|
1005
1005
|
const BlockStatement = 'BlockStatement';
|
|
1006
1006
|
const CallExpression = 'CallExpression';
|
|
1007
1007
|
const CatchClause = 'CatchClause';
|
|
1008
|
+
const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
|
|
1008
1009
|
const ExpressionStatement = 'ExpressionStatement';
|
|
1009
1010
|
const Identifier = 'Identifier';
|
|
1010
1011
|
const Literal = 'Literal';
|
|
@@ -1014,6 +1015,7 @@ const Program = 'Program';
|
|
|
1014
1015
|
const Property = 'Property';
|
|
1015
1016
|
const ReturnStatement = 'ReturnStatement';
|
|
1016
1017
|
const TemplateLiteral = 'TemplateLiteral';
|
|
1018
|
+
const VariableDeclarator = 'VariableDeclarator';
|
|
1017
1019
|
|
|
1018
1020
|
// This file is generated by scripts/generate-string-constants.js.
|
|
1019
1021
|
// Do not edit this file directly.
|
|
@@ -2276,6 +2278,7 @@ exports.CatchClause = CatchClause;
|
|
|
2276
2278
|
exports.EMPTY_ARRAY = EMPTY_ARRAY;
|
|
2277
2279
|
exports.EMPTY_OBJECT = EMPTY_OBJECT;
|
|
2278
2280
|
exports.EMPTY_SET = EMPTY_SET;
|
|
2281
|
+
exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
|
|
2279
2282
|
exports.ExpressionStatement = ExpressionStatement;
|
|
2280
2283
|
exports.FIXED_STRINGS = FIXED_STRINGS;
|
|
2281
2284
|
exports.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
|
|
@@ -2311,6 +2314,7 @@ exports.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = URL_TREATING_MODULE_AS_EXTE
|
|
|
2311
2314
|
exports.URL_TREESHAKE = URL_TREESHAKE;
|
|
2312
2315
|
exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
|
|
2313
2316
|
exports.URL_WATCH = URL_WATCH;
|
|
2317
|
+
exports.VariableDeclarator = VariableDeclarator;
|
|
2314
2318
|
exports.addTrailingSlashIfMissed = addTrailingSlashIfMissed;
|
|
2315
2319
|
exports.augmentCodeLocation = augmentCodeLocation;
|
|
2316
2320
|
exports.augmentLogMessage = augmentLogMessage;
|