@rollup/wasm-node 4.65.1 → 4.67.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.
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -341,6 +341,15 @@ function getRollupError(base) {
341
341
  });
342
342
  return errorInstance;
343
343
  }
344
+ function logErrorInHook(originalError, hookError, hookName) {
345
+ augmentLogMessage(originalError);
346
+ augmentLogMessage(hookError);
347
+ const phase = hookName === 'buildEnd' ? 'the build' : 'rendering';
348
+ return {
349
+ ...originalError,
350
+ message: `There was an error during ${phase}:\n ${originalError.message}\nAdditionally, handling the error in the '${hookName}' hook caused the following error:\n ${hookError.message}`
351
+ };
352
+ }
344
353
  function augmentCodeLocation(properties, pos, source, id) {
345
354
  if (typeof pos === 'object') {
346
355
  const { line, column } = pos;
@@ -2141,4 +2150,4 @@ function getAstBuffer(astBuffer) {
2141
2150
  const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
2142
2151
  const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2143
2152
 
2144
- export { ANNOTATION_KEY, ArrowFunctionExpression, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, MemberExpression, ObjectExpression, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_LOAD, 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_TRANSFORM, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularChunk, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileNameOutsideOutputDirectory, 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, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logNonExternalSourcePhaseImport, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcePhaseFormatUnsupported, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
2153
+ export { ANNOTATION_KEY, ArrowFunctionExpression, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier, LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_INFO, LOGLEVEL_WARN, Literal, MemberExpression, ObjectExpression, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, URL_LOAD, 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_TRANSFORM, URL_TREESHAKE, URL_TREESHAKE_MODULESIDEEFFECTS, URL_WATCH, VariableDeclarator, addTrailingSlashIfMissed, augmentCodeLocation, augmentLogMessage, convertAnnotations, convertNode, error, getAliasName, getAstBuffer, getImportPath, getRollupError, isAbsolute, isPathFragment, isRelative, isValidUrl, locate, logAddonNotGenerated, logAlreadyClosed, logAmbiguousExternalNamespaces, logAnonymousPluginCache, logAssetNotFinalisedForFileName, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logBadLoader, logCannotAssignModuleToChunk, logCannotCallNamespace, logCannotEmitFromOptionsHook, logChunkInvalid, logChunkNotGeneratedForFileName, logCircularChunk, logCircularDependency, logCircularReexport, logConflictingSourcemapSources, logConstVariableReassignError, logCyclicCrossChunkReexport, logDuplicateArgumentNameError, logDuplicateExportError, logDuplicatePluginName, logEmptyChunk, logEntryCannotBeExternal, logErrorInHook, logEval, logExternalModulesCannotBeIncludedInManualChunks, logExternalModulesCannotBeTransformedToModules, logExternalSyntheticExports, logFailedValidation, logFileNameConflict, logFileNameOutsideOutputDirectory, 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, logMissingJsxExport, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logMissingNodeBuiltins, logMixedExport, logModuleLevelDirective, logModuleParseError, logNamespaceConflict, logNoAssetSourceSet, logNoTransformMapOrAstWithoutCode, logNonExternalSourcePhaseImport, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, logShimmedExport, logSourcePhaseFormatUnsupported, logSourcemapBroken, logSyntheticNamedExportsNeedNamespaceExport, logThisIsUndefined, logUnexpectedNamedImport, logUnexpectedNamespaceReexport, logUnknownOption, logUnresolvedEntry, logUnresolvedImplicitDependant, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logUnusedExternalImports, normalize, parseAst, parseAstAsync, printQuotedStringList, relative, relativeId, warnDeprecation };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -69,8 +69,8 @@ export interface ExistingDecodedSourceMap {
69
69
  readonly mappings: SourceMapSegment[][];
70
70
  names: string[];
71
71
  sourceRoot?: string | undefined;
72
- sources: string[];
73
- sourcesContent?: string[] | undefined;
72
+ sources: (string | null)[];
73
+ sourcesContent?: (string | null)[] | undefined;
74
74
  version: number;
75
75
  x_google_ignoreList?: number[] | undefined;
76
76
  }
@@ -80,8 +80,8 @@ export interface ExistingRawSourceMap {
80
80
  mappings: string;
81
81
  names: string[];
82
82
  sourceRoot?: string | undefined;
83
- sources: string[];
84
- sourcesContent?: string[] | undefined;
83
+ sources: (string | null)[];
84
+ sourcesContent?: (string | null)[] | undefined;
85
85
  version: number;
86
86
  x_google_ignoreList?: number[] | undefined;
87
87
  }
@@ -105,7 +105,17 @@ export interface SourceMap {
105
105
  toUrl(): string;
106
106
  }
107
107
 
108
- export type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
108
+ export type SourceMapInput =
109
+ ExistingRawSourceMap | IndexSourceMap | string | null | { mappings: '' };
110
+
111
+ export interface IndexSourceMap {
112
+ file?: string | undefined;
113
+ sections: {
114
+ map: ExistingRawSourceMap | IndexSourceMap;
115
+ offset: { column: number; line: number };
116
+ }[];
117
+ version: number;
118
+ }
109
119
 
110
120
  interface ModuleOptions {
111
121
  attributes: Record<string, string>;
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.65.1
4
- Mon, 26 Oct 2026 10:55:37 GMT - commit 7879c65994dd591d287b177b8d0b88d7d76c2a49
3
+ Rollup.js v4.67.0
4
+ Fri, 30 Oct 2026 14:57:48 GMT - commit 6ae16f378a810d0a7c93bbca4bf12bf710d050a8
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -322,6 +322,15 @@ function getRollupError(base) {
322
322
  });
323
323
  return errorInstance;
324
324
  }
325
+ function logErrorInHook(originalError, hookError, hookName) {
326
+ augmentLogMessage(originalError);
327
+ augmentLogMessage(hookError);
328
+ const phase = hookName === 'buildEnd' ? 'the build' : 'rendering';
329
+ return {
330
+ ...originalError,
331
+ message: `There was an error during ${phase}:\n ${originalError.message}\nAdditionally, handling the error in the '${hookName}' hook caused the following error:\n ${hookError.message}`
332
+ };
333
+ }
325
334
  function augmentCodeLocation(properties, pos, source, id) {
326
335
  if (typeof pos === 'object') {
327
336
  const { line, column } = pos;
@@ -2304,6 +2313,7 @@ exports.logDuplicateImportOptions = logDuplicateImportOptions;
2304
2313
  exports.logDuplicatePluginName = logDuplicatePluginName;
2305
2314
  exports.logEmptyChunk = logEmptyChunk;
2306
2315
  exports.logEntryCannotBeExternal = logEntryCannotBeExternal;
2316
+ exports.logErrorInHook = logErrorInHook;
2307
2317
  exports.logEval = logEval;
2308
2318
  exports.logExternalModulesCannotBeIncludedInManualChunks = logExternalModulesCannotBeIncludedInManualChunks;
2309
2319
  exports.logExternalModulesCannotBeTransformedToModules = logExternalModulesCannotBeTransformedToModules;