rollup 4.46.3 → 4.47.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.46.3
5
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
4
+ Rollup.js v4.47.0
5
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
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.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -27,7 +27,7 @@ function _mergeNamespaces(n, m) {
27
27
  return Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' });
28
28
  }
29
29
 
30
- var version = "4.46.3";
30
+ var version = "4.47.0";
31
31
 
32
32
  // src/vlq.ts
33
33
  var comma = ",".charCodeAt(0);
@@ -11832,6 +11832,8 @@ class BinaryExpression extends NodeBase {
11832
11832
  const [variable] = this.right.variable.context.traceExport(String(leftValue));
11833
11833
  if (variable instanceof ExternalVariable)
11834
11834
  return UnknownValue;
11835
+ if (variable instanceof SyntheticNamedExportVariable)
11836
+ return UnknownValue;
11835
11837
  return !!variable;
11836
11838
  }
11837
11839
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
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.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.d.ts CHANGED
@@ -28,34 +28,34 @@ type PartialNull<T> = {
28
28
  };
29
29
 
30
30
  export interface RollupError extends RollupLog {
31
- name?: string;
32
- stack?: string;
33
- watchFiles?: string[];
31
+ name?: string | undefined;
32
+ stack?: string | undefined;
33
+ watchFiles?: string[] | undefined;
34
34
  }
35
35
 
36
36
  export interface RollupLog {
37
- binding?: string;
38
- cause?: unknown;
39
- code?: string;
40
- exporter?: string;
41
- frame?: string;
42
- hook?: string;
43
- id?: string;
44
- ids?: string[];
37
+ binding?: string | undefined;
38
+ cause?: unknown | undefined;
39
+ code?: string | undefined;
40
+ exporter?: string | undefined;
41
+ frame?: string | undefined;
42
+ hook?: string | undefined;
43
+ id?: string | undefined;
44
+ ids?: string[] | undefined;
45
45
  loc?: {
46
46
  column: number;
47
- file?: string;
47
+ file?: string | undefined;
48
48
  line: number;
49
49
  };
50
50
  message: string;
51
- meta?: any;
52
- names?: string[];
53
- plugin?: string;
54
- pluginCode?: unknown;
55
- pos?: number;
56
- reexporter?: string;
57
- stack?: string;
58
- url?: string;
51
+ meta?: any | undefined;
52
+ names?: string[] | undefined;
53
+ plugin?: string | undefined;
54
+ pluginCode?: unknown | undefined;
55
+ pos?: number | undefined;
56
+ reexporter?: string | undefined;
57
+ stack?: string | undefined;
58
+ url?: string | undefined;
59
59
  }
60
60
 
61
61
  export type LogLevel = 'warn' | 'info' | 'debug';
@@ -67,25 +67,25 @@ export type SourceMapSegment =
67
67
  | [number, number, number, number, number];
68
68
 
69
69
  export interface ExistingDecodedSourceMap {
70
- file?: string;
70
+ file?: string | undefined;
71
71
  readonly mappings: SourceMapSegment[][];
72
72
  names: string[];
73
- sourceRoot?: string;
73
+ sourceRoot?: string | undefined;
74
74
  sources: string[];
75
- sourcesContent?: string[];
75
+ sourcesContent?: string[] | undefined;
76
76
  version: number;
77
- x_google_ignoreList?: number[];
77
+ x_google_ignoreList?: number[] | undefined;
78
78
  }
79
79
 
80
80
  export interface ExistingRawSourceMap {
81
- file?: string;
81
+ file?: string | undefined;
82
82
  mappings: string;
83
83
  names: string[];
84
- sourceRoot?: string;
84
+ sourceRoot?: string | undefined;
85
85
  sources: string[];
86
- sourcesContent?: string[];
86
+ sourcesContent?: string[] | undefined;
87
87
  version: number;
88
- x_google_ignoreList?: number[];
88
+ x_google_ignoreList?: number[] | undefined;
89
89
  }
90
90
 
91
91
  export type DecodedSourceMapOrMissing =
@@ -93,16 +93,16 @@ export type DecodedSourceMapOrMissing =
93
93
  missing: true;
94
94
  plugin: string;
95
95
  }
96
- | (ExistingDecodedSourceMap & { missing?: false });
96
+ | (ExistingDecodedSourceMap & { missing?: false | undefined });
97
97
 
98
98
  export interface SourceMap {
99
99
  file: string;
100
100
  mappings: string;
101
101
  names: string[];
102
102
  sources: string[];
103
- sourcesContent?: string[];
103
+ sourcesContent?: string[] | undefined;
104
104
  version: number;
105
- debugId?: string;
105
+ debugId?: string | undefined;
106
106
  toString(): string;
107
107
  toUrl(): string;
108
108
  }
@@ -117,13 +117,13 @@ interface ModuleOptions {
117
117
  }
118
118
 
119
119
  export interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
120
- ast?: ProgramNode;
120
+ ast?: ProgramNode | undefined;
121
121
  code: string;
122
- map?: SourceMapInput;
122
+ map?: SourceMapInput | undefined;
123
123
  }
124
124
 
125
125
  export interface TransformModuleJSON {
126
- ast?: ProgramNode;
126
+ ast?: ProgramNode | undefined;
127
127
  code: string;
128
128
  // note if plugins use new this.cache to opt-out auto transform cache
129
129
  customTransformCache: boolean;
@@ -159,30 +159,30 @@ export interface MinimalPluginContext {
159
159
  }
160
160
 
161
161
  export interface EmittedAsset {
162
- fileName?: string;
163
- name?: string;
164
- needsCodeReference?: boolean;
165
- originalFileName?: string | null;
166
- source?: string | Uint8Array;
162
+ fileName?: string | undefined;
163
+ name?: string | undefined;
164
+ needsCodeReference?: boolean | undefined;
165
+ originalFileName?: string | null | undefined;
166
+ source?: string | Uint8Array | undefined;
167
167
  type: 'asset';
168
168
  }
169
169
 
170
170
  export interface EmittedChunk {
171
- fileName?: string;
171
+ fileName?: string | undefined;
172
172
  id: string;
173
- implicitlyLoadedAfterOneOf?: string[];
174
- importer?: string;
175
- name?: string;
176
- preserveSignature?: PreserveEntrySignaturesOption;
173
+ implicitlyLoadedAfterOneOf?: string[] | undefined;
174
+ importer?: string | undefined;
175
+ name?: string | undefined;
176
+ preserveSignature?: PreserveEntrySignaturesOption | undefined;
177
177
  type: 'chunk';
178
178
  }
179
179
 
180
180
  export interface EmittedPrebuiltChunk {
181
181
  code: string;
182
- exports?: string[];
182
+ exports?: string[] | undefined;
183
183
  fileName: string;
184
- map?: SourceMap;
185
- sourcemapFileName?: string;
184
+ map?: SourceMap | undefined;
185
+ sourcemapFileName?: string | undefined;
186
186
  type: 'prebuilt-chunk';
187
187
  }
188
188
 
@@ -278,13 +278,13 @@ export type StringOrRegExp = string | RegExp;
278
278
  export type StringFilter<Value = StringOrRegExp> =
279
279
  | MaybeArray<Value>
280
280
  | {
281
- include?: MaybeArray<Value>;
282
- exclude?: MaybeArray<Value>;
281
+ include?: MaybeArray<Value> | undefined;
282
+ exclude?: MaybeArray<Value> | undefined;
283
283
  };
284
284
 
285
285
  export interface HookFilter {
286
- id?: StringFilter;
287
- code?: StringFilter;
286
+ id?: StringFilter | undefined;
287
+ code?: StringFilter | undefined;
288
288
  }
289
289
 
290
290
  export interface ResolvedId extends ModuleOptions {
@@ -296,9 +296,9 @@ export interface ResolvedId extends ModuleOptions {
296
296
  export type ResolvedIdMap = Record<string, ResolvedId>;
297
297
 
298
298
  export interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
299
- external?: boolean | 'absolute' | 'relative';
299
+ external?: boolean | 'absolute' | 'relative' | undefined;
300
300
  id: string;
301
- resolvedBy?: string;
301
+ resolvedBy?: string | undefined;
302
302
  }
303
303
 
304
304
  export type ResolveIdResult = string | NullValue | false | PartialResolvedId;
@@ -542,11 +542,11 @@ type MakeAsync<Function_> = Function_ extends (
542
542
  export type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
543
543
 
544
544
  export type HookFilterExtension<K extends keyof FunctionPluginHooks> = K extends 'transform'
545
- ? { filter?: HookFilter }
545
+ ? { filter?: HookFilter | undefined }
546
546
  : K extends 'load'
547
- ? { filter?: Pick<HookFilter, 'id'> }
547
+ ? { filter?: Pick<HookFilter, 'id'> | undefined }
548
548
  : K extends 'resolveId'
549
- ? { filter?: { id?: StringFilter<RegExp> } }
549
+ ? { filter?: { id?: StringFilter<RegExp> | undefined } } | undefined
550
550
  : // eslint-disable-next-line @typescript-eslint/no-empty-object-type
551
551
  {};
552
552
 
@@ -561,14 +561,14 @@ export type PluginHooks = {
561
561
  export interface OutputPlugin
562
562
  extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,
563
563
  Partial<Record<AddonHooks, ObjectHook<AddonHook>>> {
564
- cacheKey?: string;
564
+ cacheKey?: string | undefined;
565
565
  name: string;
566
- version?: string;
566
+ version?: string | undefined;
567
567
  }
568
568
 
569
569
  export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
570
570
  // for inter-plugin communication
571
- api?: A;
571
+ api?: A | undefined;
572
572
  }
573
573
 
574
574
  export type JsxPreset = 'react' | 'react-jsx' | 'preserve' | 'preserve-react';
@@ -600,7 +600,7 @@ interface NormalizedJsxAutomaticOptions {
600
600
  }
601
601
 
602
602
  export type JsxOptions = Partial<NormalizedJsxOptions> & {
603
- preset?: JsxPreset;
603
+ preset?: JsxPreset | undefined;
604
604
  };
605
605
 
606
606
  export type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
@@ -617,8 +617,8 @@ export interface NormalizedTreeshakingOptions {
617
617
 
618
618
  export interface TreeshakingOptions
619
619
  extends Partial<Omit<NormalizedTreeshakingOptions, 'moduleSideEffects'>> {
620
- moduleSideEffects?: ModuleSideEffectsOption;
621
- preset?: TreeshakingPreset;
620
+ moduleSideEffects?: ModuleSideEffectsOption | undefined;
621
+ preset?: TreeshakingPreset | undefined;
622
622
  }
623
623
 
624
624
  interface ManualChunkMeta {
@@ -667,28 +667,28 @@ export type SourcemapIgnoreListOption = (
667
667
  export type InputPluginOption = MaybePromise<Plugin | NullValue | false | InputPluginOption[]>;
668
668
 
669
669
  export interface InputOptions {
670
- cache?: boolean | RollupCache;
671
- context?: string;
672
- experimentalCacheExpiry?: number;
673
- experimentalLogSideEffects?: boolean;
674
- external?: ExternalOption;
675
- fs?: RollupFsModule;
676
- input?: InputOption;
677
- jsx?: false | JsxPreset | JsxOptions;
678
- logLevel?: LogLevelOption;
679
- makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource';
680
- maxParallelFileOps?: number;
681
- moduleContext?: ((id: string) => string | NullValue) | Record<string, string>;
682
- onLog?: LogHandlerWithDefault;
683
- onwarn?: WarningHandlerWithDefault;
684
- perf?: boolean;
685
- plugins?: InputPluginOption;
686
- preserveEntrySignatures?: PreserveEntrySignaturesOption;
687
- preserveSymlinks?: boolean;
688
- shimMissingExports?: boolean;
689
- strictDeprecations?: boolean;
690
- treeshake?: boolean | TreeshakingPreset | TreeshakingOptions;
691
- watch?: WatcherOptions | false;
670
+ cache?: boolean | RollupCache | undefined;
671
+ context?: string | undefined;
672
+ experimentalCacheExpiry?: number | undefined;
673
+ experimentalLogSideEffects?: boolean | undefined;
674
+ external?: ExternalOption | undefined;
675
+ fs?: RollupFsModule | undefined;
676
+ input?: InputOption | undefined;
677
+ jsx?: false | JsxPreset | JsxOptions | undefined;
678
+ logLevel?: LogLevelOption | undefined;
679
+ makeAbsoluteExternalsRelative?: boolean | 'ifRelativeSource' | undefined;
680
+ maxParallelFileOps?: number | undefined;
681
+ moduleContext?: ((id: string) => string | NullValue) | Record<string, string> | undefined;
682
+ onLog?: LogHandlerWithDefault | undefined;
683
+ onwarn?: WarningHandlerWithDefault | undefined;
684
+ perf?: boolean | undefined;
685
+ plugins?: InputPluginOption | undefined;
686
+ preserveEntrySignatures?: PreserveEntrySignaturesOption | undefined;
687
+ preserveSymlinks?: boolean | undefined;
688
+ shimMissingExports?: boolean | undefined;
689
+ strictDeprecations?: boolean | undefined;
690
+ treeshake?: boolean | TreeshakingPreset | TreeshakingOptions | undefined;
691
+ watch?: WatcherOptions | false | undefined;
692
692
  }
693
693
 
694
694
  export interface InputOptionsWithPlugins extends InputOptions {
@@ -734,7 +734,7 @@ interface NormalizedGeneratedCodeOptions {
734
734
  }
735
735
 
736
736
  interface GeneratedCodeOptions extends Partial<NormalizedGeneratedCodeOptions> {
737
- preset?: GeneratedCodePreset;
737
+ preset?: GeneratedCodePreset | undefined;
738
738
  }
739
739
 
740
740
  export type OptionsPaths = Record<string, string> | ((id: string) => string);
@@ -745,27 +745,27 @@ export type GetInterop = (id: string | null) => InteropType;
745
745
 
746
746
  export type AmdOptions = (
747
747
  | {
748
- autoId?: false;
748
+ autoId?: false | undefined;
749
749
  id: string;
750
750
  }
751
751
  | {
752
752
  autoId: true;
753
- basePath?: string;
754
- id?: undefined;
753
+ basePath?: string | undefined;
754
+ id?: undefined | undefined;
755
755
  }
756
756
  | {
757
- autoId?: false;
758
- id?: undefined;
757
+ autoId?: false | undefined;
758
+ id?: undefined | undefined;
759
759
  }
760
760
  ) & {
761
- define?: string;
762
- forceJsExtensionForImports?: boolean;
761
+ define?: string | undefined;
762
+ forceJsExtensionForImports?: boolean | undefined;
763
763
  };
764
764
 
765
765
  export type NormalizedAmdOptions = (
766
766
  | {
767
767
  autoId: false;
768
- id?: string;
768
+ id?: string | undefined;
769
769
  }
770
770
  | {
771
771
  autoId: true;
@@ -783,60 +783,60 @@ type OutputPluginOption = MaybePromise<OutputPlugin | NullValue | false | Output
783
783
  type HashCharacters = 'base64' | 'base36' | 'hex';
784
784
 
785
785
  export interface OutputOptions {
786
- amd?: AmdOptions;
787
- assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
788
- banner?: string | AddonFunction;
789
- chunkFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
790
- compact?: boolean;
786
+ amd?: AmdOptions | undefined;
787
+ assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string) | undefined;
788
+ banner?: string | AddonFunction | undefined;
789
+ chunkFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
790
+ compact?: boolean | undefined;
791
791
  // only required for bundle.write
792
- dir?: string;
793
- dynamicImportInCjs?: boolean;
794
- entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
795
- esModule?: boolean | 'if-default-prop';
796
- experimentalMinChunkSize?: number;
797
- exports?: 'default' | 'named' | 'none' | 'auto';
798
- extend?: boolean;
792
+ dir?: string | undefined;
793
+ dynamicImportInCjs?: boolean | undefined;
794
+ entryFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
795
+ esModule?: boolean | 'if-default-prop' | undefined;
796
+ experimentalMinChunkSize?: number | undefined;
797
+ exports?: 'default' | 'named' | 'none' | 'auto' | undefined;
798
+ extend?: boolean | undefined;
799
799
  /** @deprecated Use "externalImportAttributes" instead. */
800
- externalImportAssertions?: boolean;
801
- externalImportAttributes?: boolean;
802
- externalLiveBindings?: boolean;
800
+ externalImportAssertions?: boolean | undefined;
801
+ externalImportAttributes?: boolean | undefined;
802
+ externalLiveBindings?: boolean | undefined;
803
803
  // only required for bundle.write
804
- file?: string;
805
- footer?: string | AddonFunction;
806
- format?: ModuleFormat;
807
- freeze?: boolean;
808
- generatedCode?: GeneratedCodePreset | GeneratedCodeOptions;
809
- globals?: GlobalsOption;
810
- hashCharacters?: HashCharacters;
811
- hoistTransitiveImports?: boolean;
812
- importAttributesKey?: ImportAttributesKey;
813
- indent?: string | boolean;
814
- inlineDynamicImports?: boolean;
815
- interop?: InteropType | GetInterop;
816
- intro?: string | AddonFunction;
817
- manualChunks?: ManualChunksOption;
818
- minifyInternalExports?: boolean;
819
- name?: string;
820
- noConflict?: boolean;
821
- outro?: string | AddonFunction;
822
- paths?: OptionsPaths;
823
- plugins?: OutputPluginOption;
824
- preserveModules?: boolean;
825
- preserveModulesRoot?: string;
826
- reexportProtoFromExternal?: boolean;
827
- sanitizeFileName?: boolean | ((fileName: string) => string);
828
- sourcemap?: boolean | 'inline' | 'hidden';
829
- sourcemapBaseUrl?: string;
830
- sourcemapExcludeSources?: boolean;
831
- sourcemapFile?: string;
832
- sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string);
833
- sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
834
- sourcemapPathTransform?: SourcemapPathTransformOption;
835
- sourcemapDebugIds?: boolean;
836
- strict?: boolean;
837
- systemNullSetters?: boolean;
838
- validate?: boolean;
839
- virtualDirname?: string;
804
+ file?: string | undefined;
805
+ footer?: string | AddonFunction | undefined;
806
+ format?: ModuleFormat | undefined;
807
+ freeze?: boolean | undefined;
808
+ generatedCode?: GeneratedCodePreset | GeneratedCodeOptions | undefined;
809
+ globals?: GlobalsOption | undefined;
810
+ hashCharacters?: HashCharacters | undefined;
811
+ hoistTransitiveImports?: boolean | undefined;
812
+ importAttributesKey?: ImportAttributesKey | undefined;
813
+ indent?: string | boolean | undefined;
814
+ inlineDynamicImports?: boolean | undefined;
815
+ interop?: InteropType | GetInterop | undefined;
816
+ intro?: string | AddonFunction | undefined;
817
+ manualChunks?: ManualChunksOption | undefined;
818
+ minifyInternalExports?: boolean | undefined;
819
+ name?: string | undefined;
820
+ noConflict?: boolean | undefined;
821
+ outro?: string | AddonFunction | undefined;
822
+ paths?: OptionsPaths | undefined;
823
+ plugins?: OutputPluginOption | undefined;
824
+ preserveModules?: boolean | undefined;
825
+ preserveModulesRoot?: string | undefined;
826
+ reexportProtoFromExternal?: boolean | undefined;
827
+ sanitizeFileName?: boolean | ((fileName: string) => string) | undefined;
828
+ sourcemap?: boolean | 'inline' | 'hidden' | undefined;
829
+ sourcemapBaseUrl?: string | undefined;
830
+ sourcemapExcludeSources?: boolean | undefined;
831
+ sourcemapFile?: string | undefined;
832
+ sourcemapFileNames?: string | ((chunkInfo: PreRenderedChunk) => string) | undefined;
833
+ sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption | undefined;
834
+ sourcemapPathTransform?: SourcemapPathTransformOption | undefined;
835
+ sourcemapDebugIds?: boolean | undefined;
836
+ strict?: boolean | undefined;
837
+ systemNullSetters?: boolean | undefined;
838
+ validate?: boolean | undefined;
839
+ virtualDirname?: string | undefined;
840
840
  }
841
841
 
842
842
  export interface NormalizedOutputOptions {
@@ -970,14 +970,14 @@ export interface RollupBuild {
970
970
  closed: boolean;
971
971
  [Symbol.asyncDispose](): Promise<void>;
972
972
  generate: (outputOptions: OutputOptions) => Promise<RollupOutput>;
973
- getTimings?: () => SerializedTimings;
973
+ getTimings?: (() => SerializedTimings) | undefined;
974
974
  watchFiles: string[];
975
975
  write: (options: OutputOptions) => Promise<RollupOutput>;
976
976
  }
977
977
 
978
978
  export interface RollupOptions extends InputOptions {
979
979
  // This is included for compatibility with config files but ignored by rollup.rollup
980
- output?: OutputOptions | OutputOptions[];
980
+ output?: OutputOptions | OutputOptions[] | undefined;
981
981
  }
982
982
 
983
983
  export interface MergedRollupOptions extends InputOptionsWithPlugins {
@@ -987,44 +987,45 @@ export interface MergedRollupOptions extends InputOptionsWithPlugins {
987
987
  export function rollup(options: RollupOptions): Promise<RollupBuild>;
988
988
 
989
989
  export interface ChokidarOptions {
990
- alwaysStat?: boolean;
991
- atomic?: boolean | number;
990
+ alwaysStat?: boolean | undefined;
991
+ atomic?: boolean | number | undefined;
992
992
  awaitWriteFinish?:
993
993
  | {
994
- pollInterval?: number;
995
- stabilityThreshold?: number;
994
+ pollInterval?: number | undefined;
995
+ stabilityThreshold?: number | undefined;
996
996
  }
997
- | boolean;
998
- binaryInterval?: number;
999
- cwd?: string;
1000
- depth?: number;
1001
- disableGlobbing?: boolean;
1002
- followSymlinks?: boolean;
1003
- ignoreInitial?: boolean;
1004
- ignorePermissionErrors?: boolean;
1005
- ignored?: any;
1006
- interval?: number;
1007
- persistent?: boolean;
1008
- useFsEvents?: boolean;
1009
- usePolling?: boolean;
997
+ | boolean
998
+ | undefined;
999
+ binaryInterval?: number | undefined;
1000
+ cwd?: string | undefined;
1001
+ depth?: number | undefined;
1002
+ disableGlobbing?: boolean | undefined;
1003
+ followSymlinks?: boolean | undefined;
1004
+ ignoreInitial?: boolean | undefined;
1005
+ ignorePermissionErrors?: boolean | undefined;
1006
+ ignored?: any | undefined;
1007
+ interval?: number | undefined;
1008
+ persistent?: boolean | undefined;
1009
+ useFsEvents?: boolean | undefined;
1010
+ usePolling?: boolean | undefined;
1010
1011
  }
1011
1012
 
1012
1013
  export type RollupWatchHooks = 'onError' | 'onStart' | 'onBundleStart' | 'onBundleEnd' | 'onEnd';
1013
1014
 
1014
1015
  export interface WatcherOptions {
1015
- allowInputInsideOutputPath?: boolean;
1016
- buildDelay?: number;
1017
- chokidar?: ChokidarOptions;
1018
- clearScreen?: boolean;
1019
- exclude?: string | RegExp | (string | RegExp)[];
1020
- include?: string | RegExp | (string | RegExp)[];
1021
- skipWrite?: boolean;
1022
- onInvalidate?: (id: string) => void;
1016
+ allowInputInsideOutputPath?: boolean | undefined;
1017
+ buildDelay?: number | undefined;
1018
+ chokidar?: ChokidarOptions | undefined;
1019
+ clearScreen?: boolean | undefined;
1020
+ exclude?: string | RegExp | (string | RegExp)[] | undefined;
1021
+ include?: string | RegExp | (string | RegExp)[] | undefined;
1022
+ skipWrite?: boolean | undefined;
1023
+ onInvalidate?: ((id: string) => void) | undefined;
1023
1024
  }
1024
1025
 
1025
1026
  export interface RollupWatchOptions extends InputOptions {
1026
- output?: OutputOptions | OutputOptions[];
1027
- watch?: WatcherOptions | false;
1027
+ output?: OutputOptions | OutputOptions[] | undefined;
1028
+ watch?: WatcherOptions | false | undefined;
1028
1029
  }
1029
1030
 
1030
1031
  export type AwaitedEventListener<
@@ -1062,11 +1063,11 @@ export interface AwaitingEventEmitter<T extends Record<string, (...parameters: a
1062
1063
 
1063
1064
  export type RollupWatcherEvent =
1064
1065
  | { code: 'START' }
1065
- | { code: 'BUNDLE_START'; input?: InputOption; output: readonly string[] }
1066
+ | { code: 'BUNDLE_START'; input?: InputOption | undefined; output: readonly string[] }
1066
1067
  | {
1067
1068
  code: 'BUNDLE_END';
1068
1069
  duration: number;
1069
- input?: InputOption;
1070
+ input?: InputOption | undefined;
1070
1071
  output: readonly string[];
1071
1072
  result: RollupBuild;
1072
1073
  }
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -42,7 +42,7 @@ function _mergeNamespaces(n, m) {
42
42
 
43
43
  const promises__namespace = /*#__PURE__*/_interopNamespaceDefault(promises);
44
44
 
45
- var version = "4.46.3";
45
+ var version = "4.47.0";
46
46
 
47
47
  function ensureArray$1(items) {
48
48
  if (Array.isArray(items)) {
@@ -13441,6 +13441,8 @@ class BinaryExpression extends NodeBase {
13441
13441
  const [variable] = this.right.variable.context.traceExport(String(leftValue));
13442
13442
  if (variable instanceof ExternalVariable)
13443
13443
  return UnknownValue;
13444
+ if (variable instanceof SyntheticNamedExportVariable)
13445
+ return UnknownValue;
13444
13446
  return !!variable;
13445
13447
  }
13446
13448
  const rightValue = this.right.getLiteralValueAtPath(EMPTY_PATH, recursionTracker, origin);
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.46.3
4
- Mon, 18 Aug 2025 05:58:14 GMT - commit f74df5e171bf9ba0e281e09be9de041afa2f4f12
3
+ Rollup.js v4.47.0
4
+ Thu, 21 Aug 2025 05:42:30 GMT - commit 4a5d2da37018c4d0666fd0c9cda4071f2d1b7090
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.46.3",
3
+ "version": "4.47.0",
4
4
  "description": "Next-generation ES module bundler",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -37,8 +37,8 @@
37
37
  "scripts": {
38
38
  "build": "concurrently -c green,blue \"npm run build:wasm\" \"npm:build:ast-converters\" && concurrently -c green,blue \"npm run build:napi -- --release\" \"npm:build:js\" && npm run build:copy-native",
39
39
  "build:quick": "concurrently -c green,blue 'npm:build:napi' 'npm:build:cjs' && npm run build:copy-native",
40
- "build:napi": "napi build --platform --dts native.d.ts --no-js --output-dir . --manifest-path rust/bindings_napi/Cargo.toml",
41
- "build:wasm": "cross-env RUSTFLAGS=\"-C opt-level=z\" wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
40
+ "build:napi": "napi build --cwd rust/bindings_napi --platform --dts ../../native.d.ts --no-js --output-dir ../.. --package-json-path ../../package.json",
41
+ "build:wasm": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm --target web --no-pack && shx rm wasm/.gitignore",
42
42
  "build:wasm:node": "wasm-pack build rust/bindings_wasm --out-dir ../../wasm-node --target nodejs --no-pack && shx rm wasm-node/.gitignore",
43
43
  "update:napi": "npm run build:napi && npm run build:copy-native",
44
44
  "build:js": "rollup --config rollup.config.ts --configPlugin typescript --forceExit",
@@ -104,26 +104,26 @@
104
104
  "homepage": "https://rollupjs.org/",
105
105
  "optionalDependencies": {
106
106
  "fsevents": "~2.3.2",
107
- "@rollup/rollup-darwin-arm64": "4.46.3",
108
- "@rollup/rollup-android-arm64": "4.46.3",
109
- "@rollup/rollup-win32-arm64-msvc": "4.46.3",
110
- "@rollup/rollup-freebsd-arm64": "4.46.3",
111
- "@rollup/rollup-linux-arm64-gnu": "4.46.3",
112
- "@rollup/rollup-linux-arm64-musl": "4.46.3",
113
- "@rollup/rollup-android-arm-eabi": "4.46.3",
114
- "@rollup/rollup-linux-arm-gnueabihf": "4.46.3",
115
- "@rollup/rollup-linux-arm-musleabihf": "4.46.3",
116
- "@rollup/rollup-win32-ia32-msvc": "4.46.3",
117
- "@rollup/rollup-linux-loongarch64-gnu": "4.46.3",
118
- "@rollup/rollup-linux-riscv64-gnu": "4.46.3",
119
- "@rollup/rollup-linux-riscv64-musl": "4.46.3",
120
- "@rollup/rollup-linux-ppc64-gnu": "4.46.3",
121
- "@rollup/rollup-linux-s390x-gnu": "4.46.3",
122
- "@rollup/rollup-darwin-x64": "4.46.3",
123
- "@rollup/rollup-win32-x64-msvc": "4.46.3",
124
- "@rollup/rollup-freebsd-x64": "4.46.3",
125
- "@rollup/rollup-linux-x64-gnu": "4.46.3",
126
- "@rollup/rollup-linux-x64-musl": "4.46.3"
107
+ "@rollup/rollup-darwin-arm64": "4.47.0",
108
+ "@rollup/rollup-android-arm64": "4.47.0",
109
+ "@rollup/rollup-win32-arm64-msvc": "4.47.0",
110
+ "@rollup/rollup-freebsd-arm64": "4.47.0",
111
+ "@rollup/rollup-linux-arm64-gnu": "4.47.0",
112
+ "@rollup/rollup-linux-arm64-musl": "4.47.0",
113
+ "@rollup/rollup-android-arm-eabi": "4.47.0",
114
+ "@rollup/rollup-linux-arm-gnueabihf": "4.47.0",
115
+ "@rollup/rollup-linux-arm-musleabihf": "4.47.0",
116
+ "@rollup/rollup-win32-ia32-msvc": "4.47.0",
117
+ "@rollup/rollup-linux-loongarch64-gnu": "4.47.0",
118
+ "@rollup/rollup-linux-riscv64-gnu": "4.47.0",
119
+ "@rollup/rollup-linux-riscv64-musl": "4.47.0",
120
+ "@rollup/rollup-linux-ppc64-gnu": "4.47.0",
121
+ "@rollup/rollup-linux-s390x-gnu": "4.47.0",
122
+ "@rollup/rollup-darwin-x64": "4.47.0",
123
+ "@rollup/rollup-win32-x64-msvc": "4.47.0",
124
+ "@rollup/rollup-freebsd-x64": "4.47.0",
125
+ "@rollup/rollup-linux-x64-gnu": "4.47.0",
126
+ "@rollup/rollup-linux-x64-musl": "4.47.0"
127
127
  },
128
128
  "dependencies": {
129
129
  "@types/estree": "1.0.8"