rollup 4.34.3 → 4.34.5

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 CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.34.3
5
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
4
+ Rollup.js v4.34.5
5
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,13 +1,13 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
8
8
  Released under the MIT License.
9
9
  */
10
- import { EMPTY_OBJECT, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, ObjectExpression as ObjectExpression$1, Property as Property$1, Program as Program$1, logIllegalImportReassignment, BLANK, logRedeclarationError, StaticBlock as StaticBlock$1, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, ExpressionStatement as ExpressionStatement$1, logMissingExport, normalize, getImportPath, logMissingNodeBuiltins, logReservedNamespace, error, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, logConstVariableReassignError, ArrowFunctionExpression as ArrowFunctionExpression$1, EMPTY_SET, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logModuleParseError, logParseError, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, Identifier as Identifier$1, logThisIsUndefined, getAstBuffer, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logSyntheticNamedExportsNeedNamespaceExport, logMissingEntryExport, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logMissingJsxExport, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logInvalidFormatForTopLevelAwait, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logCircularReexport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, logCannotAssignModuleToChunk, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logAnonymousPluginCache, logDuplicatePluginName, logUnknownOption, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, relativeId, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, warnDeprecation, logChunkNotGeneratedForFileName, logAssetNotFinalisedForFileName, logFileNameConflict, URL_GENERATEBUNDLE, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidAddonPluginHook, logInvalidFunctionPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_TREESHAKE, URL_JSX, URL_TREESHAKE_MODULESIDEEFFECTS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_GENERATEDCODE, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_MANUALCHUNKS, logInvalidExportOptionValue, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_INTEROP, URL_OUTPUT_EXTERNALIMPORTATTRIBUTES, logAlreadyClosed, logMissingFileOrDirOption, logCannotEmitFromOptionsHook, URL_WATCH } from './parseAst.js';
10
+ import { EMPTY_OBJECT, ExportDefaultDeclaration as ExportDefaultDeclaration$1, CallExpression as CallExpression$1, EMPTY_ARRAY, LOGLEVEL_WARN, logUnusedExternalImports, ANNOTATION_KEY, INVALID_ANNOTATION_KEY, ObjectExpression as ObjectExpression$1, Property as Property$1, Program as Program$1, logIllegalImportReassignment, BLANK, logRedeclarationError, StaticBlock as StaticBlock$1, CatchClause as CatchClause$1, logDuplicateArgumentNameError, logModuleLevelDirective, ReturnStatement as ReturnStatement$1, VariableDeclarator as VariableDeclarator$1, ExpressionStatement as ExpressionStatement$1, logMissingExport, normalize, getImportPath, logMissingNodeBuiltins, logReservedNamespace, error, logIllegalIdentifierAsName, logMissingNameOptionForIifeExport, logMissingNameOptionForUmdExport, RestElement as RestElement$1, logConstVariableReassignError, ArrowFunctionExpression as ArrowFunctionExpression$1, EMPTY_SET, logCannotCallNamespace, logEval, BlockStatement as BlockStatement$1, getRollupError, logModuleParseError, logParseError, LOGLEVEL_INFO, logFirstSideEffect, locate, logInvalidAnnotation, Identifier as Identifier$1, logThisIsUndefined, getAstBuffer, convertAnnotations, FIXED_STRINGS, convertNode as convertNode$1, logImportAttributeIsInvalid, logImportOptionsAreInvalid, logSyntheticNamedExportsNeedNamespaceExport, logMissingEntryExport, logDuplicateExportError, logInvalidSourcemapForError, augmentCodeLocation, logInconsistentImportAttributes, logMissingJsxExport, logNamespaceConflict, logAmbiguousExternalNamespaces, logShimmedExport, parseAst, logInvalidFormatForTopLevelAwait, TemplateLiteral as TemplateLiteral$1, Literal as Literal$1, logCircularReexport, logAddonNotGenerated, logIncompatibleExportOptionValue, logMixedExport, logFailedValidation, isPathFragment, logCyclicCrossChunkReexport, getAliasName, logUnexpectedNamedImport, isAbsolute as isAbsolute$1, relative as relative$1, logUnexpectedNamespaceReexport, logEmptyChunk, logMissingGlobalName, logOptimizeChunkStatus, logSourcemapBroken, logConflictingSourcemapSources, logChunkInvalid, logInvalidOption, logCannotAssignModuleToChunk, URL_OUTPUT_FORMAT, URL_OUTPUT_DIR, URL_OUTPUT_SOURCEMAPFILE, URL_OUTPUT_AMD_ID, logAnonymousPluginCache, logDuplicatePluginName, logUnknownOption, LOGLEVEL_ERROR, logLevelPriority, LOGLEVEL_DEBUG, printQuotedStringList, logInvalidSetAssetSourceCall, logPluginError, logNoTransformMapOrAstWithoutCode, relativeId, logBadLoader, logExternalModulesCannotBeTransformedToModules, logInternalIdCannotBeExternal, isRelative, logUnresolvedImport, logUnresolvedImportTreatedAsExternal, logExternalSyntheticExports, logUnresolvedEntry, logUnresolvedImplicitDependant, logExternalModulesCannotBeIncludedInManualChunks, logEntryCannotBeExternal, logImplicitDependantCannotBeExternal, logNoAssetSourceSet, logFileReferenceIdNotFoundForFilename, logAssetReferenceIdNotFoundForSetSource, logAssetSourceAlreadySet, logInvalidRollupPhaseForChunkEmission, warnDeprecation, logChunkNotGeneratedForFileName, logAssetNotFinalisedForFileName, logFileNameConflict, URL_GENERATEBUNDLE, logInvalidLogPosition, logInputHookInOutputPlugin, logInvalidAddonPluginHook, logInvalidFunctionPluginHook, logImplicitDependantIsNotIncluded, logCircularDependency, augmentLogMessage, URL_TREESHAKE, URL_JSX, URL_TREESHAKE_MODULESIDEEFFECTS, URL_OUTPUT_INLINEDYNAMICIMPORTS, URL_PRESERVEENTRYSIGNATURES, URL_OUTPUT_GENERATEDCODE, isValidUrl, addTrailingSlashIfMissed, URL_OUTPUT_SOURCEMAPBASEURL, URL_OUTPUT_MANUALCHUNKS, logInvalidExportOptionValue, URL_OUTPUT_AMD_BASEPATH, URL_OUTPUT_INTEROP, 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 { posix, isAbsolute, resolve, win32 } from 'path';
13
13
  import { parseAsync, xxhashBase16, xxhashBase64Url, xxhashBase36 } from '../../native.js';
@@ -15,7 +15,7 @@ import process$1, { env } from 'node:process';
15
15
  import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
 
18
- var version = "4.34.3";
18
+ var version = "4.34.5";
19
19
 
20
20
  const comma = ','.charCodeAt(0);
21
21
  const semicolon = ';'.charCodeAt(0);
@@ -11393,8 +11393,16 @@ class ObjectPattern extends NodeBase {
11393
11393
  return false;
11394
11394
  }
11395
11395
  includeDestructuredIfNecessary(context, destructuredInitPath, init) {
11396
- let included = false;
11397
- for (const property of this.properties) {
11396
+ if (!this.properties.length)
11397
+ return false;
11398
+ const lastProperty = this.properties.at(-1);
11399
+ const lastPropertyIncluded = lastProperty.includeDestructuredIfNecessary(context, destructuredInitPath, init);
11400
+ const lastPropertyIsRestElement = lastProperty.type === RestElement$1;
11401
+ let included = lastPropertyIsRestElement ? lastPropertyIncluded : false;
11402
+ for (const property of this.properties.slice(0, -1)) {
11403
+ if (lastPropertyIsRestElement && lastPropertyIncluded) {
11404
+ property.includeNode(context);
11405
+ }
11398
11406
  included =
11399
11407
  property.includeDestructuredIfNecessary(context, destructuredInitPath, init) || included;
11400
11408
  }
@@ -16478,6 +16486,7 @@ class Module {
16478
16486
  this.sideEffectDependenciesByVariable = new Map();
16479
16487
  this.sourcesWithAttributes = new Map();
16480
16488
  this.allExportNames = null;
16489
+ this.allExportsIncluded = false;
16481
16490
  this.ast = null;
16482
16491
  this.exportAllModules = [];
16483
16492
  this.exportAllSources = new Set();
@@ -16819,6 +16828,9 @@ class Module {
16819
16828
  this.ast.include(context, false);
16820
16829
  }
16821
16830
  includeAllExports(includeNamespaceMembers) {
16831
+ if (this.allExportsIncluded)
16832
+ return;
16833
+ this.allExportsIncluded = true;
16822
16834
  if (!this.isExecuted) {
16823
16835
  markModuleAndImpureDependenciesAsExecuted(this);
16824
16836
  this.graph.needsTreeshakingPass = true;
@@ -16838,9 +16850,7 @@ class Module {
16838
16850
  const [variable] = this.getVariableForExportName(name);
16839
16851
  if (variable) {
16840
16852
  variable.deoptimizePath(UNKNOWN_PATH);
16841
- if (!variable.included) {
16842
- this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
16843
- }
16853
+ this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
16844
16854
  if (variable instanceof ExternalVariable) {
16845
16855
  variable.module.reexported = true;
16846
16856
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -25,6 +25,7 @@ const PanicError = 'PanicError';
25
25
  const ParseError = 'ParseError';
26
26
  const Program = 'Program';
27
27
  const Property = 'Property';
28
+ const RestElement = 'RestElement';
28
29
  const ReturnStatement = 'ReturnStatement';
29
30
  const StaticBlock = 'StaticBlock';
30
31
  const TemplateLiteral = 'TemplateLiteral';
@@ -2069,4 +2070,4 @@ function getAstBuffer(astBuffer) {
2069
2070
  const parseAst = (input, { allowReturnOutsideFunction = false, jsx = false } = {}) => convertProgram(getAstBuffer(parse(input, allowReturnOutsideFunction, jsx)));
2070
2071
  const parseAstAsync = async (input, { allowReturnOutsideFunction = false, jsx = false, signal } = {}) => convertProgram(getAstBuffer(await parseAsync(input, allowReturnOutsideFunction, jsx, signal)));
2071
2072
 
2072
- 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, ObjectExpression, Program, Property, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, 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, error, getAliasName, getAstBuffer, getImportPath, 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, 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 };
2073
+ 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, ObjectExpression, Program, Property, RestElement, ReturnStatement, StaticBlock, TemplateLiteral, URL_GENERATEBUNDLE, URL_JSX, 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, error, getAliasName, getAstBuffer, getImportPath, 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, 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 };
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
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.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1043,6 +1043,7 @@ const PanicError = 'PanicError';
1043
1043
  const ParseError = 'ParseError';
1044
1044
  const Program = 'Program';
1045
1045
  const Property = 'Property';
1046
+ const RestElement = 'RestElement';
1046
1047
  const ReturnStatement = 'ReturnStatement';
1047
1048
  const StaticBlock = 'StaticBlock';
1048
1049
  const TemplateLiteral = 'TemplateLiteral';
@@ -2154,6 +2155,7 @@ exports.Literal = Literal;
2154
2155
  exports.ObjectExpression = ObjectExpression;
2155
2156
  exports.Program = Program;
2156
2157
  exports.Property = Property;
2158
+ exports.RestElement = RestElement;
2157
2159
  exports.ReturnStatement = ReturnStatement;
2158
2160
  exports.StaticBlock = StaticBlock;
2159
2161
  exports.TemplateLiteral = TemplateLiteral;
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -17,7 +17,7 @@ const native_js = require('../native.js');
17
17
  const node_perf_hooks = require('node:perf_hooks');
18
18
  const promises = require('node:fs/promises');
19
19
 
20
- var version = "4.34.3";
20
+ var version = "4.34.5";
21
21
 
22
22
  function ensureArray$1(items) {
23
23
  if (Array.isArray(items)) {
@@ -12861,8 +12861,16 @@ class ObjectPattern extends NodeBase {
12861
12861
  return false;
12862
12862
  }
12863
12863
  includeDestructuredIfNecessary(context, destructuredInitPath, init) {
12864
- let included = false;
12865
- for (const property of this.properties) {
12864
+ if (!this.properties.length)
12865
+ return false;
12866
+ const lastProperty = this.properties.at(-1);
12867
+ const lastPropertyIncluded = lastProperty.includeDestructuredIfNecessary(context, destructuredInitPath, init);
12868
+ const lastPropertyIsRestElement = lastProperty.type === parseAst_js.RestElement;
12869
+ let included = lastPropertyIsRestElement ? lastPropertyIncluded : false;
12870
+ for (const property of this.properties.slice(0, -1)) {
12871
+ if (lastPropertyIsRestElement && lastPropertyIncluded) {
12872
+ property.includeNode(context);
12873
+ }
12866
12874
  included =
12867
12875
  property.includeDestructuredIfNecessary(context, destructuredInitPath, init) || included;
12868
12876
  }
@@ -17939,6 +17947,7 @@ class Module {
17939
17947
  this.sideEffectDependenciesByVariable = new Map();
17940
17948
  this.sourcesWithAttributes = new Map();
17941
17949
  this.allExportNames = null;
17950
+ this.allExportsIncluded = false;
17942
17951
  this.ast = null;
17943
17952
  this.exportAllModules = [];
17944
17953
  this.exportAllSources = new Set();
@@ -18280,6 +18289,9 @@ class Module {
18280
18289
  this.ast.include(context, false);
18281
18290
  }
18282
18291
  includeAllExports(includeNamespaceMembers) {
18292
+ if (this.allExportsIncluded)
18293
+ return;
18294
+ this.allExportsIncluded = true;
18283
18295
  if (!this.isExecuted) {
18284
18296
  markModuleAndImpureDependenciesAsExecuted(this);
18285
18297
  this.graph.needsTreeshakingPass = true;
@@ -18299,9 +18311,7 @@ class Module {
18299
18311
  const [variable] = this.getVariableForExportName(name);
18300
18312
  if (variable) {
18301
18313
  variable.deoptimizePath(UNKNOWN_PATH);
18302
- if (!variable.included) {
18303
- this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
18304
- }
18314
+ this.includeVariable(variable, UNKNOWN_PATH, inclusionContext);
18305
18315
  if (variable instanceof ExternalVariable) {
18306
18316
  variable.module.reexported = true;
18307
18317
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.34.3
4
- Wed, 05 Feb 2025 09:21:33 GMT - commit ac8b06a2b5406f694c38c416912cc2b18ba13355
3
+ Rollup.js v4.34.5
4
+ Fri, 07 Feb 2025 08:52:31 GMT - commit 3426b026e95319048dd5b703f2a0330c1c924e52
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup",
3
- "version": "4.34.3",
3
+ "version": "4.34.5",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -110,25 +110,25 @@
110
110
  "homepage": "https://rollupjs.org/",
111
111
  "optionalDependencies": {
112
112
  "fsevents": "~2.3.2",
113
- "@rollup/rollup-darwin-arm64": "4.34.3",
114
- "@rollup/rollup-android-arm64": "4.34.3",
115
- "@rollup/rollup-win32-arm64-msvc": "4.34.3",
116
- "@rollup/rollup-freebsd-arm64": "4.34.3",
117
- "@rollup/rollup-linux-arm64-gnu": "4.34.3",
118
- "@rollup/rollup-linux-arm64-musl": "4.34.3",
119
- "@rollup/rollup-android-arm-eabi": "4.34.3",
120
- "@rollup/rollup-linux-arm-gnueabihf": "4.34.3",
121
- "@rollup/rollup-linux-arm-musleabihf": "4.34.3",
122
- "@rollup/rollup-win32-ia32-msvc": "4.34.3",
123
- "@rollup/rollup-linux-loongarch64-gnu": "4.34.3",
124
- "@rollup/rollup-linux-riscv64-gnu": "4.34.3",
125
- "@rollup/rollup-linux-powerpc64le-gnu": "4.34.3",
126
- "@rollup/rollup-linux-s390x-gnu": "4.34.3",
127
- "@rollup/rollup-darwin-x64": "4.34.3",
128
- "@rollup/rollup-win32-x64-msvc": "4.34.3",
129
- "@rollup/rollup-freebsd-x64": "4.34.3",
130
- "@rollup/rollup-linux-x64-gnu": "4.34.3",
131
- "@rollup/rollup-linux-x64-musl": "4.34.3"
113
+ "@rollup/rollup-darwin-arm64": "4.34.5",
114
+ "@rollup/rollup-android-arm64": "4.34.5",
115
+ "@rollup/rollup-win32-arm64-msvc": "4.34.5",
116
+ "@rollup/rollup-freebsd-arm64": "4.34.5",
117
+ "@rollup/rollup-linux-arm64-gnu": "4.34.5",
118
+ "@rollup/rollup-linux-arm64-musl": "4.34.5",
119
+ "@rollup/rollup-android-arm-eabi": "4.34.5",
120
+ "@rollup/rollup-linux-arm-gnueabihf": "4.34.5",
121
+ "@rollup/rollup-linux-arm-musleabihf": "4.34.5",
122
+ "@rollup/rollup-win32-ia32-msvc": "4.34.5",
123
+ "@rollup/rollup-linux-loongarch64-gnu": "4.34.5",
124
+ "@rollup/rollup-linux-riscv64-gnu": "4.34.5",
125
+ "@rollup/rollup-linux-powerpc64le-gnu": "4.34.5",
126
+ "@rollup/rollup-linux-s390x-gnu": "4.34.5",
127
+ "@rollup/rollup-darwin-x64": "4.34.5",
128
+ "@rollup/rollup-win32-x64-msvc": "4.34.5",
129
+ "@rollup/rollup-freebsd-x64": "4.34.5",
130
+ "@rollup/rollup-linux-x64-gnu": "4.34.5",
131
+ "@rollup/rollup-linux-x64-musl": "4.34.5"
132
132
  },
133
133
  "dependencies": {
134
134
  "@types/estree": "1.0.6"
@@ -141,10 +141,10 @@
141
141
  "@codemirror/lang-javascript": "^6.2.2",
142
142
  "@codemirror/language": "^6.10.8",
143
143
  "@codemirror/search": "^6.5.8",
144
- "@codemirror/state": "^6.5.1",
144
+ "@codemirror/state": "^6.5.2",
145
145
  "@codemirror/view": "^6.36.2",
146
146
  "@eslint/js": "^9.19.0",
147
- "@inquirer/prompts": "^7.2.3",
147
+ "@inquirer/prompts": "^7.3.1",
148
148
  "@jridgewell/sourcemap-codec": "^1.5.0",
149
149
  "@mermaid-js/mermaid-cli": "^11.4.2",
150
150
  "@napi-rs/cli": "^2.18.4",
@@ -157,9 +157,9 @@
157
157
  "@rollup/plugin-terser": "^0.4.4",
158
158
  "@rollup/plugin-typescript": "^12.1.2",
159
159
  "@rollup/pluginutils": "^5.1.4",
160
- "@shikijs/vitepress-twoslash": "^2.1.0",
160
+ "@shikijs/vitepress-twoslash": "^2.2.0",
161
161
  "@types/mocha": "^10.0.10",
162
- "@types/node": "^18.19.74",
162
+ "@types/node": "^18.19.75",
163
163
  "@types/semver": "^7.5.8",
164
164
  "@types/yargs-parser": "^21.0.3",
165
165
  "@vue/language-server": "^2.2.0",
@@ -201,10 +201,10 @@
201
201
  "pretty-bytes": "^6.1.1",
202
202
  "pretty-ms": "^9.2.0",
203
203
  "requirejs": "^2.3.7",
204
- "rollup": "^4.32.0",
204
+ "rollup": "^4.34.1",
205
205
  "rollup-plugin-license": "^3.5.3",
206
206
  "rollup-plugin-string": "^3.0.0",
207
- "semver": "^7.6.3",
207
+ "semver": "^7.7.1",
208
208
  "shx": "^0.3.4",
209
209
  "signal-exit": "^4.1.0",
210
210
  "source-map": "^0.7.4",
@@ -213,7 +213,7 @@
213
213
  "terser": "^5.37.0",
214
214
  "tslib": "^2.8.1",
215
215
  "typescript": "^5.7.3",
216
- "typescript-eslint": "^8.22.0",
216
+ "typescript-eslint": "^8.23.0",
217
217
  "vite": "^6.0.11",
218
218
  "vitepress": "^1.6.3",
219
219
  "vue": "^3.5.13",
@@ -223,7 +223,7 @@
223
223
  },
224
224
  "overrides": {
225
225
  "axios": "^1.7.9",
226
- "semver": "^7.6.3",
226
+ "semver": "^7.7.1",
227
227
  "readable-stream": "npm:@built-in/readable-stream@1"
228
228
  },
229
229
  "comments": {