@rollup/wasm-node 4.55.3 → 4.57.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 +3 -3
- 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 +511 -536
- package/dist/es/shared/parseAst.js +5 -4
- package/dist/es/shared/watch.js +3 -3
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +2 -2
- package/dist/rollup.d.ts +40 -5
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +3 -3
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/parseAst.js +6 -4
- package/dist/shared/rollup.js +427 -452
- package/dist/shared/watch-cli.js +3 -3
- package/dist/shared/watch.js +3 -3
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.57.0
|
|
4
|
+
Tue, 27 Jan 2026 07:16:05 GMT - commit 743d0546f59799a8f7e4e2f4e1ad167f7dae333d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -21,7 +21,6 @@ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
|
|
|
21
21
|
const ExpressionStatement = 'ExpressionStatement';
|
|
22
22
|
const FunctionExpression = 'FunctionExpression';
|
|
23
23
|
const Identifier = 'Identifier';
|
|
24
|
-
const ImportExpression = 'ImportExpression';
|
|
25
24
|
const Literal = 'Literal';
|
|
26
25
|
const MemberExpression = 'MemberExpression';
|
|
27
26
|
const ObjectExpression = 'ObjectExpression';
|
|
@@ -392,6 +391,8 @@ const URL_TREESHAKE_NOSIDEEFFECTS = 'configuration-options/#no-side-effects';
|
|
|
392
391
|
const URL_TREESHAKE_MODULESIDEEFFECTS = 'configuration-options/#treeshake-modulesideeffects';
|
|
393
392
|
const URL_WATCH = 'configuration-options/#watch';
|
|
394
393
|
const URL_GENERATEBUNDLE = 'plugin-development/#generatebundle';
|
|
394
|
+
const URL_LOAD = 'plugin-development/#load';
|
|
395
|
+
const URL_TRANSFORM = 'plugin-development/#transform';
|
|
395
396
|
|
|
396
397
|
function error(base) {
|
|
397
398
|
throw base instanceof Error ? base : getRollupError(base);
|
|
@@ -2092,4 +2093,4 @@ function getAstBuffer(astBuffer) {
|
|
|
2092
2093
|
const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
|
|
2093
2094
|
const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
|
|
2094
2095
|
|
|
2095
|
-
export { ANNOTATION_KEY, ArrowFunctionExpression, AwaitExpression, BLANK, BlockStatement, CallExpression, CatchClause, EMPTY_ARRAY, EMPTY_OBJECT, EMPTY_SET, ExportDefaultDeclaration, ExpressionStatement, FIXED_STRINGS, FunctionExpression, INVALID_ANNOTATION_KEY, Identifier,
|
|
2096
|
+
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, 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, logOptimizeChunkStatus, logParseError, logPluginError, logRedeclarationError, logReservedNamespace, 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.57.0
|
|
4
|
+
Tue, 27 Jan 2026 07:16:05 GMT - commit 743d0546f59799a8f7e4e2f4e1ad167f7dae333d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,8 +11,8 @@ import { getAugmentedNamespace, fseventsImporter, getDefaultExportFromCjs, creat
|
|
|
11
11
|
import path from 'node:path';
|
|
12
12
|
import process$1 from 'node:process';
|
|
13
13
|
import require$$0$1 from 'path';
|
|
14
|
-
import require$$2 from 'util';
|
|
15
14
|
import require$$0$2 from 'fs';
|
|
15
|
+
import require$$2 from 'util';
|
|
16
16
|
import require$$1 from 'stream';
|
|
17
17
|
import require$$2$1 from 'os';
|
|
18
18
|
import require$$0$3 from 'events';
|
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ export interface PluginContext extends MinimalPluginContext {
|
|
|
261
261
|
source: string,
|
|
262
262
|
importer?: string,
|
|
263
263
|
options?: {
|
|
264
|
+
importerAttributes?: Record<string, string>;
|
|
264
265
|
attributes?: Record<string, string>;
|
|
265
266
|
custom?: CustomPluginOptions;
|
|
266
267
|
isEntry?: boolean;
|
|
@@ -312,13 +313,19 @@ export type ResolveIdHook = (
|
|
|
312
313
|
this: PluginContext,
|
|
313
314
|
source: string,
|
|
314
315
|
importer: string | undefined,
|
|
315
|
-
options: {
|
|
316
|
+
options: {
|
|
317
|
+
attributes: Record<string, string>;
|
|
318
|
+
custom?: CustomPluginOptions;
|
|
319
|
+
importerAttributes?: Record<string, string> | undefined;
|
|
320
|
+
isEntry: boolean;
|
|
321
|
+
}
|
|
316
322
|
) => ResolveIdResult;
|
|
317
323
|
|
|
318
324
|
export type ShouldTransformCachedModuleHook = (
|
|
319
325
|
this: PluginContext,
|
|
320
326
|
options: {
|
|
321
327
|
ast: ProgramNode;
|
|
328
|
+
attributes: Record<string, string>;
|
|
322
329
|
code: string;
|
|
323
330
|
id: string;
|
|
324
331
|
meta: CustomPluginOptions;
|
|
@@ -338,7 +345,19 @@ export type HasModuleSideEffects = (id: string, external: boolean) => boolean;
|
|
|
338
345
|
|
|
339
346
|
export type LoadResult = SourceDescription | string | NullValue;
|
|
340
347
|
|
|
341
|
-
export type LoadHook = (
|
|
348
|
+
export type LoadHook = (
|
|
349
|
+
this: PluginContext,
|
|
350
|
+
id: string,
|
|
351
|
+
// temporarily marked as optional for better Vite type-compatibility
|
|
352
|
+
options?:
|
|
353
|
+
| {
|
|
354
|
+
// unused, temporarily added for better Vite type-compatibility
|
|
355
|
+
ssr?: boolean | undefined;
|
|
356
|
+
// temporarily marked as optional for better Vite type-compatibility
|
|
357
|
+
attributes?: Record<string, string>;
|
|
358
|
+
}
|
|
359
|
+
| undefined
|
|
360
|
+
) => LoadResult;
|
|
342
361
|
|
|
343
362
|
export interface TransformPluginContext extends PluginContext {
|
|
344
363
|
debug: LoggingFunctionWithPosition;
|
|
@@ -353,7 +372,16 @@ export type TransformResult = string | NullValue | Partial<SourceDescription>;
|
|
|
353
372
|
export type TransformHook = (
|
|
354
373
|
this: TransformPluginContext,
|
|
355
374
|
code: string,
|
|
356
|
-
id: string
|
|
375
|
+
id: string,
|
|
376
|
+
// temporarily marked as optional for better Vite type-compatibility
|
|
377
|
+
options?:
|
|
378
|
+
| {
|
|
379
|
+
// unused, temporarily added for better Vite type-compatibility
|
|
380
|
+
ssr?: boolean | undefined;
|
|
381
|
+
// temporarily marked as optional for better Vite type-compatibility
|
|
382
|
+
attributes?: Record<string, string>;
|
|
383
|
+
}
|
|
384
|
+
| undefined
|
|
357
385
|
) => TransformResult;
|
|
358
386
|
|
|
359
387
|
export type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;
|
|
@@ -370,18 +398,24 @@ export type ResolveDynamicImportHook = (
|
|
|
370
398
|
this: PluginContext,
|
|
371
399
|
specifier: string | AstNode,
|
|
372
400
|
importer: string,
|
|
373
|
-
options: { attributes: Record<string, string> }
|
|
401
|
+
options: { attributes: Record<string, string>; importerAttributes: Record<string, string> }
|
|
374
402
|
) => ResolveIdResult;
|
|
375
403
|
|
|
376
404
|
export type ResolveImportMetaHook = (
|
|
377
405
|
this: PluginContext,
|
|
378
406
|
property: string | null,
|
|
379
|
-
options: {
|
|
407
|
+
options: {
|
|
408
|
+
attributes: Record<string, string>;
|
|
409
|
+
chunkId: string;
|
|
410
|
+
format: InternalModuleFormat;
|
|
411
|
+
moduleId: string;
|
|
412
|
+
}
|
|
380
413
|
) => string | NullValue;
|
|
381
414
|
|
|
382
415
|
export type ResolveFileUrlHook = (
|
|
383
416
|
this: PluginContext,
|
|
384
417
|
options: {
|
|
418
|
+
attributes: Record<string, string>;
|
|
385
419
|
chunkId: string;
|
|
386
420
|
fileName: string;
|
|
387
421
|
format: InternalModuleFormat;
|
|
@@ -463,6 +497,7 @@ export interface FunctionPluginHooks {
|
|
|
463
497
|
chunk: PreRenderedChunkWithFileName;
|
|
464
498
|
targetChunk: PreRenderedChunkWithFileName | null;
|
|
465
499
|
getTargetChunkImports: () => DynamicImportTargetChunk[] | null;
|
|
500
|
+
targetModuleAttributes: Record<string, string>;
|
|
466
501
|
}
|
|
467
502
|
) => { left: string; right: string } | NullValue;
|
|
468
503
|
renderError: (this: PluginContext, error?: Error) => void;
|
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.57.0
|
|
4
|
+
Tue, 27 Jan 2026 07:16:05 GMT - commit 743d0546f59799a8f7e4e2f4e1ad167f7dae333d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
|
|
12
12
|
const rollup = require('./rollup.js');
|
|
13
13
|
const require$$0$1 = require('path');
|
|
14
|
-
const require$$2 = require('util');
|
|
15
14
|
const require$$0$2 = require('fs');
|
|
15
|
+
const require$$2 = require('util');
|
|
16
16
|
const require$$1 = require('stream');
|
|
17
17
|
const require$$2$1 = require('os');
|
|
18
18
|
const fseventsImporter = require('./fsevents-importer.js');
|
package/dist/shared/parseAst.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.57.0
|
|
4
|
+
Tue, 27 Jan 2026 07:16:05 GMT - commit 743d0546f59799a8f7e4e2f4e1ad167f7dae333d
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -276,6 +276,8 @@ const URL_WATCH = 'configuration-options/#watch';
|
|
|
276
276
|
const URL_BUNDLE_CONFIG_AS_CJS = 'command-line-interface/#bundleconfigascjs';
|
|
277
277
|
const URL_CONFIGURATION_FILES = 'command-line-interface/#configuration-files';
|
|
278
278
|
const URL_GENERATEBUNDLE = 'plugin-development/#generatebundle';
|
|
279
|
+
const URL_LOAD = 'plugin-development/#load';
|
|
280
|
+
const URL_TRANSFORM = 'plugin-development/#transform';
|
|
279
281
|
|
|
280
282
|
function error(base) {
|
|
281
283
|
throw base instanceof Error ? base : getRollupError(base);
|
|
@@ -1057,7 +1059,6 @@ const ExportDefaultDeclaration = 'ExportDefaultDeclaration';
|
|
|
1057
1059
|
const ExpressionStatement = 'ExpressionStatement';
|
|
1058
1060
|
const FunctionExpression = 'FunctionExpression';
|
|
1059
1061
|
const Identifier = 'Identifier';
|
|
1060
|
-
const ImportExpression = 'ImportExpression';
|
|
1061
1062
|
const Literal = 'Literal';
|
|
1062
1063
|
const MemberExpression = 'MemberExpression';
|
|
1063
1064
|
const ObjectExpression = 'ObjectExpression';
|
|
@@ -2171,7 +2172,6 @@ exports.FIXED_STRINGS = FIXED_STRINGS;
|
|
|
2171
2172
|
exports.FunctionExpression = FunctionExpression;
|
|
2172
2173
|
exports.INVALID_ANNOTATION_KEY = INVALID_ANNOTATION_KEY;
|
|
2173
2174
|
exports.Identifier = Identifier;
|
|
2174
|
-
exports.ImportExpression = ImportExpression;
|
|
2175
2175
|
exports.LOGLEVEL_DEBUG = LOGLEVEL_DEBUG;
|
|
2176
2176
|
exports.LOGLEVEL_ERROR = LOGLEVEL_ERROR;
|
|
2177
2177
|
exports.LOGLEVEL_INFO = LOGLEVEL_INFO;
|
|
@@ -2188,6 +2188,7 @@ exports.TemplateLiteral = TemplateLiteral;
|
|
|
2188
2188
|
exports.URL_AVOIDING_EVAL = URL_AVOIDING_EVAL;
|
|
2189
2189
|
exports.URL_GENERATEBUNDLE = URL_GENERATEBUNDLE;
|
|
2190
2190
|
exports.URL_JSX = URL_JSX;
|
|
2191
|
+
exports.URL_LOAD = URL_LOAD;
|
|
2191
2192
|
exports.URL_NAME_IS_NOT_EXPORTED = URL_NAME_IS_NOT_EXPORTED;
|
|
2192
2193
|
exports.URL_OUTPUT_AMD_BASEPATH = URL_OUTPUT_AMD_BASEPATH;
|
|
2193
2194
|
exports.URL_OUTPUT_AMD_ID = URL_OUTPUT_AMD_ID;
|
|
@@ -2205,6 +2206,7 @@ exports.URL_OUTPUT_SOURCEMAPFILE = URL_OUTPUT_SOURCEMAPFILE;
|
|
|
2205
2206
|
exports.URL_PRESERVEENTRYSIGNATURES = URL_PRESERVEENTRYSIGNATURES;
|
|
2206
2207
|
exports.URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT = URL_SOURCEMAP_IS_LIKELY_TO_BE_INCORRECT;
|
|
2207
2208
|
exports.URL_THIS_IS_UNDEFINED = URL_THIS_IS_UNDEFINED;
|
|
2209
|
+
exports.URL_TRANSFORM = URL_TRANSFORM;
|
|
2208
2210
|
exports.URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY = URL_TREATING_MODULE_AS_EXTERNAL_DEPENDENCY;
|
|
2209
2211
|
exports.URL_TREESHAKE = URL_TREESHAKE;
|
|
2210
2212
|
exports.URL_TREESHAKE_MODULESIDEEFFECTS = URL_TREESHAKE_MODULESIDEEFFECTS;
|