rolldown 1.0.0-beta.10-commit.87188ed → 1.0.0-beta.10-commit.2c4c2a8

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.
Files changed (33) hide show
  1. package/dist/cli.cjs +2 -2
  2. package/dist/cli.mjs +2 -2
  3. package/dist/config.cjs +2 -2
  4. package/dist/config.d.cts +2 -4
  5. package/dist/config.d.mts +2 -4
  6. package/dist/config.mjs +2 -2
  7. package/dist/experimental-index.cjs +1 -1
  8. package/dist/experimental-index.d.cts +12 -43
  9. package/dist/experimental-index.d.mts +12 -43
  10. package/dist/experimental-index.mjs +1 -1
  11. package/dist/filter-index.d.cts +2 -3
  12. package/dist/filter-index.d.mts +2 -3
  13. package/dist/index.cjs +1 -1
  14. package/dist/index.d.cts +2 -3
  15. package/dist/index.d.mts +2 -3
  16. package/dist/index.mjs +1 -1
  17. package/dist/parallel-plugin-worker.cjs +1 -1
  18. package/dist/parallel-plugin-worker.mjs +1 -1
  19. package/dist/parallel-plugin.d.cts +6 -7
  20. package/dist/parallel-plugin.d.mts +6 -7
  21. package/dist/parse-ast-index.d.cts +2 -2
  22. package/dist/parse-ast-index.d.mts +2 -2
  23. package/dist/shared/{binding.d-BKOi_hD7.d.cts → binding-BYafUgFF.d.cts} +731 -781
  24. package/dist/shared/{binding.d-CcC9cav0.d.mts → binding-Dod8fhx9.d.mts} +731 -781
  25. package/dist/shared/define-config-BetvTt9D.d.cts +1048 -0
  26. package/dist/shared/define-config-CpexVifn.d.mts +1048 -0
  27. package/dist/shared/{load-config-BlFlHlvN.mjs → load-config-CmjIAbYJ.mjs} +1 -1
  28. package/dist/shared/{load-config-KhfLPb5s.cjs → load-config-zuPp_M9H.cjs} +1 -1
  29. package/dist/shared/{src-euELSICh.mjs → src-DZ9wYGiM.mjs} +46 -16
  30. package/dist/shared/{src-BQJWsFLL.cjs → src-ToZqKnE7.cjs} +46 -16
  31. package/package.json +18 -17
  32. package/dist/shared/define-config.d-CZCq3rLo.d.cts +0 -1083
  33. package/dist/shared/define-config.d-OKdRAYhn.d.mts +0 -1083
@@ -1,1083 +0,0 @@
1
- import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BKOi_hD7.cjs";
2
- import { Program } from "@oxc-project/types";
3
- import { TopLevelFilterExpression } from "@rolldown/pluginutils";
4
-
5
- //#region src/log/logging.d.ts
6
- type LogLevel = "info" | "debug" | "warn";
7
- type LogLevelOption = LogLevel | "silent";
8
- type LogLevelWithError = LogLevel | "error";
9
- interface RollupLog {
10
- binding?: string;
11
- cause?: unknown;
12
- code?: string;
13
- exporter?: string;
14
- frame?: string;
15
- hook?: string;
16
- id?: string;
17
- ids?: string[];
18
- loc?: {
19
- column: number
20
- file?: string
21
- line: number
22
- };
23
- message: string;
24
- meta?: any;
25
- names?: string[];
26
- plugin?: string;
27
- pluginCode?: unknown;
28
- pos?: number;
29
- reexporter?: string;
30
- stack?: string;
31
- url?: string;
32
- }
33
- type RollupLogWithString = RollupLog | string;
34
- interface RollupError extends RollupLog {
35
- name?: string;
36
- stack?: string;
37
- watchFiles?: string[];
38
- }
39
- type LogOrStringHandler = (level: LogLevelWithError, log: RollupLogWithString) => void;
40
-
41
- //#endregion
42
- //#region src/types/misc.d.ts
43
- type SourcemapPathTransformOption = (relativeSourcePath: string, sourcemapPath: string) => string;
44
- type SourcemapIgnoreListOption = (relativeSourcePath: string, sourcemapPath: string) => boolean;
45
-
46
- //#endregion
47
- //#region src/utils/asset-source.d.ts
48
- type AssetSource = string | Uint8Array;
49
-
50
- //#endregion
51
- //#region src/types/rolldown-output.d.ts
52
- interface OutputAsset {
53
- type: "asset";
54
- fileName: string;
55
- /** @deprecated Use "originalFileNames" instead. */
56
- originalFileName: string | null;
57
- originalFileNames: string[];
58
- source: AssetSource;
59
- /** @deprecated Use "names" instead. */
60
- name: string | undefined;
61
- names: string[];
62
- }
63
- interface SourceMap {
64
- file: string;
65
- mappings: string;
66
- names: string[];
67
- sources: string[];
68
- sourcesContent: string[];
69
- version: number;
70
- debugId?: string;
71
- x_google_ignoreList?: number[];
72
- toString(): string;
73
- toUrl(): string;
74
- }
75
- interface RenderedModule {
76
- readonly code: string | null;
77
- renderedLength: number;
78
- renderedExports: string[];
79
- }
80
- interface RenderedChunk extends Omit<BindingRenderedChunk, "modules"> {
81
- type: "chunk";
82
- modules: {
83
- [id: string]: RenderedModule
84
- };
85
- name: string;
86
- isEntry: boolean;
87
- isDynamicEntry: boolean;
88
- facadeModuleId: string | null;
89
- moduleIds: Array<string>;
90
- exports: Array<string>;
91
- fileName: string;
92
- imports: Array<string>;
93
- dynamicImports: Array<string>;
94
- }
95
- interface OutputChunk {
96
- type: "chunk";
97
- code: string;
98
- name: string;
99
- isEntry: boolean;
100
- exports: string[];
101
- fileName: string;
102
- modules: {
103
- [id: string]: RenderedModule
104
- };
105
- imports: string[];
106
- dynamicImports: string[];
107
- facadeModuleId: string | null;
108
- isDynamicEntry: boolean;
109
- moduleIds: string[];
110
- map: SourceMap | null;
111
- sourcemapFileName: string | null;
112
- preliminaryFileName: string;
113
- }
114
- interface RolldownOutput {
115
- output: [OutputChunk, ...(OutputChunk | OutputAsset)[]];
116
- }
117
-
118
- //#endregion
119
- //#region src/types/utils.d.ts
120
- type MaybePromise<T> = T | Promise<T>;
121
- type NullValue<T = void> = T | undefined | null | void;
122
- type PartialNull<T> = { [P in keyof T] : T[P] | null };
123
- type MakeAsync<Function_> = Function_ extends (this: infer This, ...parameters: infer Arguments) => infer Return ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
124
- type MaybeArray<T> = T | T[];
125
- type StringOrRegExp = string | RegExp;
126
-
127
- //#endregion
128
- //#region src/options/output-options.d.ts
129
- type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | "experimental-app";
130
- type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
131
- type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
132
- interface PreRenderedAsset {
133
- names: string[];
134
- originalFileNames: string[];
135
- source: string | Uint8Array;
136
- type: "asset";
137
- }
138
- type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
139
- type GlobalsFunction = (name: string) => string;
140
- type MinifyOptions = BindingMinifyOptions;
141
- interface OutputOptions {
142
- dir?: string;
143
- file?: string;
144
- exports?: "auto" | "named" | "default" | "none";
145
- hashCharacters?: "base64" | "base36" | "hex";
146
- /**
147
- * Expected format of generated code.
148
- * - `'es'`, `'esm'` and `'module'` are the same format, all stand for ES module.
149
- * - `'cjs'` and `'commonjs'` are the same format, all stand for CommonJS module.
150
- * - `'iife'` stands for [Immediately Invoked Function Expression](https://developer.mozilla.org/en-US/docs/Glossary/IIFE).
151
- * - `'umd'` stands for [Universal Module Definition](https://github.com/umdjs/umd).
152
- *
153
- * @default 'esm'
154
- */
155
- format?: ModuleFormat;
156
- sourcemap?: boolean | "inline" | "hidden";
157
- sourcemapDebugIds?: boolean;
158
- sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
159
- sourcemapPathTransform?: SourcemapPathTransformOption;
160
- banner?: string | AddonFunction;
161
- footer?: string | AddonFunction;
162
- intro?: string | AddonFunction;
163
- outro?: string | AddonFunction;
164
- extend?: boolean;
165
- esModule?: boolean | "if-default-prop";
166
- assetFileNames?: string | AssetFileNamesFunction;
167
- entryFileNames?: string | ChunkFileNamesFunction;
168
- chunkFileNames?: string | ChunkFileNamesFunction;
169
- cssEntryFileNames?: string | ChunkFileNamesFunction;
170
- cssChunkFileNames?: string | ChunkFileNamesFunction;
171
- sanitizeFileName?: boolean | ((name: string) => string);
172
- minify?: boolean | "dce-only" | MinifyOptions;
173
- name?: string;
174
- globals?: Record<string, string> | GlobalsFunction;
175
- externalLiveBindings?: boolean;
176
- inlineDynamicImports?: boolean;
177
- /**
178
- * Allows you to do advanced chunking. Use it to reduce the number of common chunks or split out a chunk that hardly changes to obtain better caching.
179
- */
180
- advancedChunks?: {
181
- /**
182
- * - Type: `number`
183
- *
184
- * Global fallback of [`{group}.minSize`](#advancedchunks-groups-minsize), if it's not specified in the group.
185
- */
186
- minSize?: number
187
- /**
188
- * - Type: `number`
189
- *
190
- * Global fallback of [`{group}.maxSize`](#advancedchunks-groups-maxsize), if it's not specified in the group.
191
- */
192
- maxSize?: number
193
- /**
194
- * - Type: `number`
195
- *
196
- * Global fallback of [`{group}.maxModuleSize`](#advancedchunks-groups-maxmodulesize), if it's not specified in the group.
197
- */
198
- maxModuleSize?: number
199
- /**
200
- * - Type: `number`
201
- *
202
- * Global fallback of [`{group}.minModuleSize`](#advancedchunks-groups-minmodulesize), if it's not specified in the group.
203
- */
204
- minModuleSize?: number
205
- /**
206
- * - Type: `number`
207
- *
208
- * Global fallback of [`{group}.minShareCount`](#advancedchunks-groups-minsharecount), if it's not specified in the group.
209
- */
210
- minShareCount?: number
211
- /**
212
- * Groups to be used for advanced chunking.
213
- */
214
- groups?: {
215
- /**
216
- * - Type: `string`
217
- *
218
- * Name of the group. It will be also used as the name of the chunk and replaced the `[name]` placeholder in the `chunkFileNames` option.
219
- */
220
- name: string
221
- /**
222
- * - Type: `string | RegExp | ((id: string) => boolean | undefined | void);`
223
- *
224
- * Controls which modules are captured in this group.
225
- *
226
- * If `test` is a string, the module whose id contains the string will be captured.
227
- * If `test` is a regular expression, the module whose id matches the regular expression will be captured.
228
- * If `test` is a function, modules for which `test(id)` returns `true` will be captured.
229
- * if `test` is empty, any module will be considered as matched.
230
- */
231
- test?: StringOrRegExp | ((id: string) => boolean | undefined | void)
232
- /**
233
- * - Type: `number`
234
- *
235
- * Priority of the group. Group with higher priority will be chosen first to match modules and create chunks. When converting the group to a chunk, modules of that group will be removed from other groups.
236
- *
237
- * If two groups have the same priority, the group whose index is smaller will be chosen.
238
- */
239
- priority?: number
240
- /**
241
- * - Type: `number`
242
- * - Default: `0`
243
- *
244
- * Minimum size of the desired chunk. If accumulated size of captured modules is smaller than this value, this group will be ignored.
245
- */
246
- minSize?: number
247
- /**
248
- * - Type: `number`
249
- * - Default: `1`
250
- *
251
- * Controls if a module should be captured based on how many entry chunks reference it.
252
- */
253
- minShareCount?: number
254
- /**
255
- * - Type: `number`
256
- * - Default: `Infinity`
257
- *
258
- * If final size of this group is larger than this value, this group will be spit into multiple groups that each has size closed to this value.
259
- */
260
- maxSize?: number
261
- /**
262
- * - Type: `number`
263
- * - Default: `Infinity`
264
- *
265
- * Controls a module could only be captured if its size is smaller or equal than this value.
266
- */
267
- maxModuleSize?: number
268
- /**
269
- * - Type: `number`
270
- * - Default: `0`
271
- *
272
- * Controls a module could only be captured if its size is larger or equal than this value.
273
- */
274
- minModuleSize?: number
275
- }[]
276
- };
277
- /**
278
- * Control comments in the output.
279
- *
280
- * - `none`: no comments
281
- * - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
282
- */
283
- legalComments?: "none" | "inline";
284
- plugins?: RolldownOutputPluginOption;
285
- polyfillRequire?: boolean;
286
- hoistTransitiveImports?: false;
287
- preserveModules?: boolean;
288
- virtualDirname?: string;
289
- preserveModulesRoot?: string;
290
- }
291
-
292
- //#endregion
293
- //#region src/api/build.d.ts
294
- interface BuildOptions extends InputOptions {
295
- /**
296
- * Write the output to the file system
297
- *
298
- * @default true
299
- */
300
- write?: boolean;
301
- output?: OutputOptions;
302
- }
303
- declare function build(options: BuildOptions): Promise<RolldownOutput>;
304
- /**
305
- * Build multiple outputs __sequentially__.
306
- */
307
- /**
308
- * Build multiple outputs __sequentially__.
309
- */
310
- declare function build(options: BuildOptions[]): Promise<RolldownOutput[]>;
311
-
312
- //#endregion
313
- //#region src/api/rolldown/rolldown-build.d.ts
314
- declare class RolldownBuild {
315
- #private;
316
- constructor(inputOptions: InputOptions);
317
- get closed(): boolean;
318
- generate(outputOptions?: OutputOptions): Promise<RolldownOutput>;
319
- write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
320
- close(): Promise<void>;
321
- [Symbol.asyncDispose](): Promise<void>;
322
- generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
323
- hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
324
- get watchFiles(): Promise<string[]>;
325
- }
326
-
327
- //#endregion
328
- //#region src/api/rolldown/index.d.ts
329
- declare const rolldown: (input: InputOptions) => Promise<RolldownBuild>;
330
-
331
- //#endregion
332
- //#region src/options/watch-options.d.ts
333
- interface WatchOptions extends InputOptions {
334
- output?: OutputOptions | OutputOptions[];
335
- }
336
-
337
- //#endregion
338
- //#region src/api/watch/watch-emitter.d.ts
339
- type WatcherEvent = "close" | "event" | "restart" | "change";
340
- type ChangeEvent$1 = "create" | "update" | "delete";
341
- type RolldownWatchBuild = Bundler;
342
- type RolldownWatcherEvent = {
343
- code: "START"
344
- } | {
345
- code: "BUNDLE_START"
346
- } | {
347
- code: "BUNDLE_END"
348
- duration: number
349
- output: readonly string[]
350
- result: RolldownWatchBuild
351
- } | {
352
- code: "END"
353
- } | {
354
- code: "ERROR"
355
- error: Error
356
- result: RolldownWatchBuild
357
- };
358
- declare class WatcherEmitter {
359
- listeners: Map<WatcherEvent, Array<(...parameters: any[]) => MaybePromise<void>>>;
360
- timer: any;
361
- constructor();
362
- on(event: "change", listener: (id: string, change: {
363
- event: ChangeEvent$1
364
- }) => MaybePromise<void>): this;
365
- on(event: "event", listener: (data: RolldownWatcherEvent) => MaybePromise<void>): this;
366
- on(event: "restart" | "close", listener: () => MaybePromise<void>): this;
367
- off(event: WatcherEvent, listener: (...parameters: any[]) => MaybePromise<void>): this;
368
- onEvent(event: BindingWatcherEvent): Promise<void>;
369
- close(): Promise<void>;
370
- }
371
- type RolldownWatcher = WatcherEmitter;
372
-
373
- //#endregion
374
- //#region src/api/watch/index.d.ts
375
- declare const watch: (input: WatchOptions | WatchOptions[]) => RolldownWatcher;
376
-
377
- //#endregion
378
- //#region src/log/log-handler.d.ts
379
- type LoggingFunction = (log: RollupLog | string | (() => RollupLog | string)) => void;
380
- type LoggingFunctionWithPosition = (log: RollupLog | string | (() => RollupLog | string), pos?: number | {
381
- column: number
382
- line: number
383
- }) => void;
384
- type WarningHandlerWithDefault = (warning: RollupLog, defaultHandler: LoggingFunction) => void;
385
-
386
- //#endregion
387
- //#region src/options/normalized-input-options.d.ts
388
- interface NormalizedInputOptions {
389
- input: string[] | Record<string, string>;
390
- cwd: string | undefined;
391
- platform: InputOptions["platform"];
392
- shimMissingExports: boolean;
393
- }
394
-
395
- //#endregion
396
- //#region src/options/normalized-output-options.d.ts
397
- type InternalModuleFormat = "es" | "cjs" | "iife" | "umd" | "app";
398
- interface NormalizedOutputOptions {
399
- name: string | undefined;
400
- file: string | undefined;
401
- dir: string | undefined;
402
- entryFileNames: string | ChunkFileNamesFunction;
403
- chunkFileNames: string | ChunkFileNamesFunction;
404
- assetFileNames: string | AssetFileNamesFunction;
405
- format: InternalModuleFormat;
406
- exports: NonNullable<OutputOptions["exports"]>;
407
- sourcemap: boolean | "inline" | "hidden";
408
- cssEntryFileNames: string | ChunkFileNamesFunction;
409
- cssChunkFileNames: string | ChunkFileNamesFunction;
410
- inlineDynamicImports: boolean;
411
- externalLiveBindings: boolean;
412
- banner: AddonFunction;
413
- footer: AddonFunction;
414
- intro: AddonFunction;
415
- outro: AddonFunction;
416
- esModule: boolean | "if-default-prop";
417
- extend: boolean;
418
- globals: Record<string, string> | GlobalsFunction;
419
- hashCharacters: "base64" | "base36" | "hex";
420
- sourcemapDebugIds: boolean;
421
- sourcemapIgnoreList: SourcemapIgnoreListOption;
422
- sourcemapPathTransform: SourcemapPathTransformOption | undefined;
423
- minify: false | BindingMinifyOptions;
424
- legalComments: "none" | "inline";
425
- polyfillRequire: boolean;
426
- plugins: RolldownPlugin[];
427
- preserveModules: boolean;
428
- virtualDirname: string;
429
- preserveModulesRoot?: string;
430
- }
431
-
432
- //#endregion
433
- //#region src/plugin/hook-filter.d.ts
434
- type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
435
- include?: MaybeArray<Value>
436
- exclude?: MaybeArray<Value>
437
- };
438
- interface FormalModuleTypeFilter {
439
- include?: ModuleType[];
440
- }
441
- type ModuleTypeFilter = ModuleType[] | FormalModuleTypeFilter;
442
- interface HookFilter {
443
- /**
444
- * This filter is used to do a pre-test to determine whether the hook should be called.
445
- *
446
- * @example
447
- * Include all `id`s that contain `node_modules` in the path.
448
- * ```js
449
- * { id: '**'+'/node_modules/**' }
450
- * ```
451
- * @example
452
- * Include all `id`s that contain `node_modules` or `src` in the path.
453
- * ```js
454
- * { id: ['**'+'/node_modules/**', '**'+'/src/**'] }
455
- * ```
456
- * @example
457
- * Include all `id`s that start with `http`
458
- * ```js
459
- * { id: /^http/ }
460
- * ```
461
- * @example
462
- * Exclude all `id`s that contain `node_modules` in the path.
463
- * ```js
464
- * { id: { exclude: '**'+'/node_modules/**' } }
465
- * ```
466
- * @example
467
- * Formal pattern to define includes and excludes.
468
- * ```
469
- * { id : {
470
- * include: ['**'+'/foo/**', /bar/],
471
- * exclude: ['**'+'/baz/**', /qux/]
472
- * }}
473
- * ```
474
- */
475
- id?: GeneralHookFilter;
476
- moduleType?: ModuleTypeFilter;
477
- code?: GeneralHookFilter;
478
- }
479
- type TUnionWithTopLevelFilterExpressionArray<T> = T | TopLevelFilterExpression[];
480
-
481
- //#endregion
482
- //#region src/plugin/minimal-plugin-context.d.ts
483
- interface PluginContextMeta {
484
- rollupVersion: string;
485
- rolldownVersion: string;
486
- watchMode: boolean;
487
- }
488
- interface MinimalPluginContext {
489
- readonly pluginName: string;
490
- error: (e: RollupError | string) => never;
491
- info: LoggingFunction;
492
- warn: LoggingFunction;
493
- debug: LoggingFunction;
494
- meta: PluginContextMeta;
495
- }
496
-
497
- //#endregion
498
- //#region src/plugin/parallel-plugin.d.ts
499
- type ParallelPlugin = {
500
- /** @internal */
501
- _parallel: {
502
- fileUrl: string
503
- options: unknown
504
- }
505
- };
506
- type DefineParallelPluginResult<Options> = (options: Options) => ParallelPlugin;
507
- declare function defineParallelPlugin<Options>(pluginPath: string): DefineParallelPluginResult<Options>;
508
-
509
- //#endregion
510
- //#region src/types/module-info.d.ts
511
- interface ModuleInfo extends ModuleOptions {
512
- /**
513
- * Unsupported at rolldown
514
- */
515
- ast: any;
516
- code: string | null;
517
- id: string;
518
- importers: string[];
519
- dynamicImporters: string[];
520
- importedIds: string[];
521
- dynamicallyImportedIds: string[];
522
- exports: string[];
523
- isEntry: boolean;
524
- }
525
-
526
- //#endregion
527
- //#region src/plugin/plugin-context.d.ts
528
- interface EmittedAsset {
529
- type: "asset";
530
- name?: string;
531
- fileName?: string;
532
- originalFileName?: string | null;
533
- source: AssetSource;
534
- }
535
- interface EmittedChunk {
536
- type: "chunk";
537
- name?: string;
538
- fileName?: string;
539
- id: string;
540
- importer?: string;
541
- }
542
- type EmittedFile = EmittedAsset | EmittedChunk;
543
- interface PluginContextResolveOptions {
544
- skipSelf?: boolean;
545
- custom?: CustomPluginOptions;
546
- }
547
- type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
548
- interface PluginContext extends MinimalPluginContext {
549
- emitFile(file: EmittedFile): string;
550
- getFileName(referenceId: string): string;
551
- getModuleIds(): IterableIterator<string>;
552
- getModuleInfo: GetModuleInfo;
553
- addWatchFile(id: string): void;
554
- load(options: {
555
- id: string
556
- resolveDependencies?: boolean
557
- } & Partial<PartialNull<ModuleOptions>>): Promise<ModuleInfo>;
558
- parse(input: string, options?: ParserOptions | undefined | null): Program;
559
- resolve(source: string, importer?: string, options?: PluginContextResolveOptions): Promise<ResolvedId | null>;
560
- }
561
-
562
- //#endregion
563
- //#region src/plugin/transform-plugin-context.d.ts
564
- interface TransformPluginContext extends PluginContext {
565
- debug: LoggingFunctionWithPosition;
566
- info: LoggingFunctionWithPosition;
567
- warn: LoggingFunctionWithPosition;
568
- error(e: RollupError | string, pos?: number | {
569
- column: number
570
- line: number
571
- }): never;
572
- getCombinedSourcemap(): SourceMap;
573
- }
574
-
575
- //#endregion
576
- //#region src/types/module-side-effects.d.ts
577
- interface ModuleSideEffectsRule {
578
- test?: RegExp;
579
- external?: boolean;
580
- sideEffects: boolean;
581
- }
582
- type ModuleSideEffectsOption = boolean | ModuleSideEffectsRule[] | ((id: string, isResolved: boolean) => boolean | undefined) | "no-external";
583
- type TreeshakingOptions = {
584
- moduleSideEffects?: ModuleSideEffectsOption
585
- annotations?: boolean
586
- manualPureFunctions?: string[]
587
- unknownGlobalSideEffects?: boolean
588
- } | boolean;
589
-
590
- //#endregion
591
- //#region src/types/output-bundle.d.ts
592
- interface OutputBundle {
593
- [fileName: string]: OutputAsset | OutputChunk;
594
- }
595
-
596
- //#endregion
597
- //#region src/types/sourcemap.d.ts
598
- interface ExistingRawSourceMap {
599
- file?: string | null;
600
- mappings: string;
601
- names?: string[];
602
- sources?: (string | null)[];
603
- sourcesContent?: (string | null)[];
604
- sourceRoot?: string;
605
- version?: number;
606
- x_google_ignoreList?: number[];
607
- }
608
- type SourceMapInput = ExistingRawSourceMap | string | null;
609
-
610
- //#endregion
611
- //#region src/index.d.ts
612
- declare const VERSION: string;
613
-
614
- //#endregion
615
- //#region src/builtin-plugin/constructors.d.ts
616
- declare class BuiltinPlugin {
617
- name: BindingBuiltinPluginName;
618
- _options?: unknown;
619
- constructor(name: BindingBuiltinPluginName, _options?: unknown);
620
- }
621
- declare function modulePreloadPolyfillPlugin(): BuiltinPlugin;
622
- declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
623
- declare function importGlobPlugin(config?: BindingImportGlobPluginConfig): BuiltinPlugin;
624
- declare function reporterPlugin(config?: BindingReporterPluginConfig): BuiltinPlugin;
625
- declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
626
- declare function wasmHelperPlugin(): BuiltinPlugin;
627
- declare function wasmFallbackPlugin(): BuiltinPlugin;
628
- declare function loadFallbackPlugin(): BuiltinPlugin;
629
- declare function jsonPlugin(config?: BindingJsonPluginConfig): BuiltinPlugin;
630
- declare function buildImportAnalysisPlugin(config: BindingBuildImportAnalysisPluginConfig): BuiltinPlugin;
631
- declare function viteResolvePlugin(config: BindingViteResolvePluginConfig): BuiltinPlugin;
632
- type ModuleFederationPluginOption = Omit<BindingModuleFederationPluginOption, "remotes"> & {
633
- remotes?: Record<string, string | BindingRemote>
634
- manifest?: boolean | BindingMfManifest
635
- };
636
- declare function moduleFederationPlugin(config: ModuleFederationPluginOption): BuiltinPlugin;
637
- declare function isolatedDeclarationPlugin(config?: BindingIsolatedDeclarationPluginConfig): BuiltinPlugin;
638
- declare function assetPlugin(config?: BindingAssetPluginConfig): BuiltinPlugin;
639
- declare function webWorkerPostPlugin(): BuiltinPlugin;
640
-
641
- //#endregion
642
- //#region src/constants/plugin.d.ts
643
- declare const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES: readonly ["options", "buildStart", "resolveId", "load", "transform", "moduleParsed", "buildEnd", "onLog", "resolveDynamicImport", "closeBundle", "closeWatcher", "watchChange"];
644
- declare const ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES: readonly ["augmentChunkHash", "outputOptions", "renderChunk", "renderStart", "renderError", "writeBundle", "generateBundle"];
645
- declare const ENUMERATED_PLUGIN_HOOK_NAMES: [...typeof ENUMERATED_INPUT_PLUGIN_HOOK_NAMES, ...typeof ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES, "footer", "banner", "intro", "outro"];
646
- type EnumeratedPluginHookNames = typeof ENUMERATED_PLUGIN_HOOK_NAMES;
647
- /**
648
- * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
649
- */
650
- /**
651
- * Names of all hooks in a `Plugin` object. Does not include `name` and `api`, since they are not hooks.
652
- */
653
- type PluginHookNames = EnumeratedPluginHookNames[number];
654
- /**
655
- * Names of all defined hooks. It's like
656
- * ```ts
657
- * type DefinedHookNames = {
658
- * options: 'options',
659
- * buildStart: 'buildStart',
660
- * ...
661
- * }
662
- * ```
663
- */
664
- /**
665
- * Names of all defined hooks. It's like
666
- * ```ts
667
- * type DefinedHookNames = {
668
- * options: 'options',
669
- * buildStart: 'buildStart',
670
- * ...
671
- * }
672
- * ```
673
- */
674
- type DefinedHookNames = { readonly [K in PluginHookNames] : K };
675
- /**
676
- * Names of all defined hooks. It's like
677
- * ```js
678
- * const DEFINED_HOOK_NAMES ={
679
- * options: 'options',
680
- * buildStart: 'buildStart',
681
- * ...
682
- * }
683
- * ```
684
- */
685
- /**
686
- * Names of all defined hooks. It's like
687
- * ```js
688
- * const DEFINED_HOOK_NAMES ={
689
- * options: 'options',
690
- * buildStart: 'buildStart',
691
- * ...
692
- * }
693
- * ```
694
- */
695
- declare const DEFINED_HOOK_NAMES: DefinedHookNames;
696
-
697
- //#endregion
698
- //#region src/plugin/with-filter.d.ts
699
- type OverrideFilterObject = {
700
- transform?: HookFilterExtension<"transform">["filter"]
701
- resolveId?: HookFilterExtension<"resolveId">["filter"]
702
- load?: HookFilterExtension<"load">["filter"]
703
- pluginNamePattern?: StringOrRegExp[]
704
- };
705
- declare function withFilter<
706
- A,
707
- T extends RolldownPluginOption<A>
708
- >(pluginOption: T, filterObject: OverrideFilterObject | OverrideFilterObject[]): T;
709
-
710
- //#endregion
711
- //#region src/plugin/index.d.ts
712
- type ModuleSideEffects = boolean | "no-treeshake" | null;
713
- type ModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
714
- type ImportKind = BindingHookResolveIdExtraArgs["kind"];
715
- interface CustomPluginOptions {
716
- [plugin: string]: any;
717
- }
718
- interface ModuleOptions {
719
- moduleSideEffects: ModuleSideEffects;
720
- meta: CustomPluginOptions;
721
- invalidate?: boolean;
722
- }
723
- interface ResolvedId extends ModuleOptions {
724
- external: boolean | "absolute";
725
- id: string;
726
- }
727
- interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
728
- external?: boolean | "absolute" | "relative";
729
- id: string;
730
- }
731
- interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
732
- code: string;
733
- map?: SourceMapInput;
734
- moduleType?: ModuleType;
735
- }
736
- interface ResolveIdExtraOptions {
737
- custom?: CustomPluginOptions;
738
- isEntry: boolean;
739
- kind: BindingHookResolveIdExtraArgs["kind"];
740
- }
741
- type ResolveIdResult = string | NullValue | false | PartialResolvedId;
742
- type LoadResult = NullValue | string | SourceDescription;
743
- type TransformResult = NullValue | string | Partial<SourceDescription>;
744
- type RenderedChunkMeta = {
745
- chunks: Record<string, RenderedChunk>
746
- };
747
- interface FunctionPluginHooks {
748
- [DEFINED_HOOK_NAMES.onLog]: (this: MinimalPluginContext, level: LogLevel, log: RollupLog) => NullValue | boolean;
749
- [DEFINED_HOOK_NAMES.options]: (this: MinimalPluginContext, options: InputOptions) => NullValue | InputOptions;
750
- [DEFINED_HOOK_NAMES.outputOptions]: (this: MinimalPluginContext, options: OutputOptions) => NullValue | OutputOptions;
751
- [DEFINED_HOOK_NAMES.buildStart]: (this: PluginContext, options: NormalizedInputOptions) => void;
752
- [DEFINED_HOOK_NAMES.resolveId]: (this: PluginContext, source: string, importer: string | undefined, extraOptions: ResolveIdExtraOptions) => ResolveIdResult;
753
- /**
754
- * @deprecated
755
- * This hook is only for rollup plugin compatibility. Please use `resolveId` instead.
756
- */
757
- [DEFINED_HOOK_NAMES.resolveDynamicImport]: (this: PluginContext, source: string, importer: string | undefined) => ResolveIdResult;
758
- [DEFINED_HOOK_NAMES.load]: (this: PluginContext, id: string) => MaybePromise<LoadResult>;
759
- [DEFINED_HOOK_NAMES.transform]: (this: TransformPluginContext, code: string, id: string, meta: BindingTransformHookExtraArgs & {
760
- moduleType: ModuleType
761
- }) => TransformResult;
762
- [DEFINED_HOOK_NAMES.moduleParsed]: (this: PluginContext, moduleInfo: ModuleInfo) => void;
763
- [DEFINED_HOOK_NAMES.buildEnd]: (this: PluginContext, err?: Error) => void;
764
- [DEFINED_HOOK_NAMES.renderStart]: (this: PluginContext, outputOptions: NormalizedOutputOptions, inputOptions: NormalizedInputOptions) => void;
765
- [DEFINED_HOOK_NAMES.renderChunk]: (this: PluginContext, code: string, chunk: RenderedChunk, outputOptions: NormalizedOutputOptions, meta: RenderedChunkMeta) => NullValue | string | {
766
- code: string
767
- map?: SourceMapInput
768
- };
769
- [DEFINED_HOOK_NAMES.augmentChunkHash]: (this: PluginContext, chunk: RenderedChunk) => string | void;
770
- [DEFINED_HOOK_NAMES.renderError]: (this: PluginContext, error: Error) => void;
771
- [DEFINED_HOOK_NAMES.generateBundle]: (this: PluginContext, outputOptions: NormalizedOutputOptions, bundle: OutputBundle, isWrite: boolean) => void;
772
- [DEFINED_HOOK_NAMES.writeBundle]: (this: PluginContext, outputOptions: NormalizedOutputOptions, bundle: OutputBundle) => void;
773
- [DEFINED_HOOK_NAMES.closeBundle]: (this: PluginContext) => void;
774
- [DEFINED_HOOK_NAMES.watchChange]: (this: PluginContext, id: string, event: {
775
- event: ChangeEvent
776
- }) => void;
777
- [DEFINED_HOOK_NAMES.closeWatcher]: (this: PluginContext) => void;
778
- }
779
- type ChangeEvent = "create" | "update" | "delete";
780
- type PluginOrder = "pre" | "post" | null;
781
- type ObjectHookMeta = {
782
- order?: PluginOrder
783
- };
784
- type ObjectHook<
785
- T,
786
- O = {}
787
- > = T | ({
788
- handler: T
789
- } & ObjectHookMeta & O);
790
- type SyncPluginHooks = DefinedHookNames["augmentChunkHash" | "onLog" | "outputOptions"];
791
- type AsyncPluginHooks = Exclude<keyof FunctionPluginHooks, SyncPluginHooks>;
792
- type FirstPluginHooks = DefinedHookNames["load" | "resolveDynamicImport" | "resolveId"];
793
- type SequentialPluginHooks = DefinedHookNames["augmentChunkHash" | "generateBundle" | "onLog" | "options" | "outputOptions" | "renderChunk" | "transform"];
794
- type AddonHooks = DefinedHookNames["banner" | "footer" | "intro" | "outro"];
795
- type OutputPluginHooks = DefinedHookNames["augmentChunkHash" | "generateBundle" | "outputOptions" | "renderChunk" | "renderError" | "renderStart" | "writeBundle"];
796
- type ParallelPluginHooks = Exclude<keyof FunctionPluginHooks | AddonHooks, FirstPluginHooks | SequentialPluginHooks>;
797
- type HookFilterExtension<K extends keyof FunctionPluginHooks> = K extends "transform" ? {
798
- filter?: TUnionWithTopLevelFilterExpressionArray<HookFilter>
799
- } : K extends "load" ? {
800
- filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "id">>
801
- } : K extends "resolveId" ? {
802
- filter?: TUnionWithTopLevelFilterExpressionArray<{
803
- id?: GeneralHookFilter<RegExp>
804
- }>
805
- } : K extends "renderChunk" ? {
806
- filter?: TUnionWithTopLevelFilterExpressionArray<Pick<HookFilter, "code">>
807
- } : {};
808
- type PluginHooks = { [K in keyof FunctionPluginHooks] : ObjectHook<K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K], HookFilterExtension<K> & (K extends ParallelPluginHooks ? {
809
- /**
810
- * @deprecated
811
- * this is only for rollup Plugin type compatibility.
812
- * hooks always work as `sequential: true`.
813
- */
814
- sequential?: boolean
815
- } : {})> };
816
- type AddonHookFunction = (this: PluginContext, chunk: RenderedChunk) => string | Promise<string>;
817
- type AddonHook = string | AddonHookFunction;
818
- interface OutputPlugin extends Partial<{ [K in OutputPluginHooks] : PluginHooks[K] }>, Partial<{ [K in AddonHooks] : ObjectHook<AddonHook> }> {
819
- name: string;
820
- }
821
- interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
822
- api?: A;
823
- }
824
- type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
825
- type RolldownPluginOption<A = any> = MaybePromise<NullValue<RolldownPlugin<A>> | {
826
- name: string
827
- } | false | RolldownPluginOption[]>;
828
- type RolldownOutputPlugin = OutputPlugin | BuiltinPlugin;
829
- type RolldownOutputPluginOption = MaybePromise<NullValue<RolldownOutputPlugin> | {
830
- name: string
831
- } | false | RolldownOutputPluginOption[]>;
832
-
833
- //#endregion
834
- //#region src/options/generated/checks-options.d.ts
835
- interface ChecksOptions {
836
- /**
837
- * Whether to emit warning when detecting circular dependency
838
- * @default false
839
- */
840
- circularDependency?: boolean;
841
- /**
842
- * Whether to emit warning when detecting eval
843
- * @default true
844
- */
845
- eval?: boolean;
846
- /**
847
- * Whether to emit warning when detecting missing global name
848
- * @default true
849
- */
850
- missingGlobalName?: boolean;
851
- /**
852
- * Whether to emit warning when detecting missing name option for iife export
853
- * @default true
854
- */
855
- missingNameOptionForIifeExport?: boolean;
856
- /**
857
- * Whether to emit warning when detecting mixed export
858
- * @default true
859
- */
860
- mixedExport?: boolean;
861
- /**
862
- * Whether to emit warning when detecting unresolved entry
863
- * @default true
864
- */
865
- unresolvedEntry?: boolean;
866
- /**
867
- * Whether to emit warning when detecting unresolved import
868
- * @default true
869
- */
870
- unresolvedImport?: boolean;
871
- /**
872
- * Whether to emit warning when detecting filename conflict
873
- * @default true
874
- */
875
- filenameConflict?: boolean;
876
- /**
877
- * Whether to emit warning when detecting common js variable in esm
878
- * @default true
879
- */
880
- commonJsVariableInEsm?: boolean;
881
- /**
882
- * Whether to emit warning when detecting import is undefined
883
- * @default true
884
- */
885
- importIsUndefined?: boolean;
886
- /**
887
- * Whether to emit warning when detecting configuration field conflict
888
- * @default true
889
- */
890
- configurationFieldConflict?: boolean;
891
- }
892
-
893
- //#endregion
894
- //#region src/options/input-options.d.ts
895
- type InputOption = string | string[] | Record<string, string>;
896
- type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject">;
897
- type ExternalOption = StringOrRegExp | StringOrRegExp[] | ((id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>);
898
- type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset">;
899
- interface WatcherOptions {
900
- skipWrite?: boolean;
901
- buildDelay?: number;
902
- notify?: {
903
- pollInterval?: number
904
- compareContents?: boolean
905
- };
906
- include?: StringOrRegExp | StringOrRegExp[];
907
- exclude?: StringOrRegExp | StringOrRegExp[];
908
- }
909
- type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
910
- type HmrOptions = boolean | {
911
- host?: string
912
- port?: number
913
- implement?: string
914
- };
915
- interface InputOptions {
916
- input?: InputOption;
917
- plugins?: RolldownPluginOption;
918
- external?: ExternalOption;
919
- resolve?: {
920
- /**
921
- * > [!WARNING]
922
- * > `resolve.alias` will not call `resolveId` hooks of other plugin.
923
- * > If you want to call `resolveId` hooks of other plugin, use `aliasPlugin` from `rolldown/experimental` instead.
924
- * > You could find more discussion in [this issue](https://github.com/rolldown/rolldown/issues/3615)
925
- */
926
- alias?: Record<string, string[] | string>
927
- aliasFields?: string[][]
928
- conditionNames?: string[]
929
- /**
930
- * Map of extensions to alternative extensions.
931
- *
932
- * With writing `import './foo.js'` in a file, you want to resolve it to `foo.ts` instead of `foo.js`.
933
- * You can achieve this by setting: `extensionAlias: { '.js': ['.ts', '.js'] }`.
934
- */
935
- extensionAlias?: Record<string, string[]>
936
- exportsFields?: string[][]
937
- extensions?: string[]
938
- mainFields?: string[]
939
- mainFiles?: string[]
940
- modules?: string[]
941
- symlinks?: boolean
942
- tsconfigFilename?: string
943
- };
944
- cwd?: string;
945
- /**
946
- * Expected platform where the code run.
947
- *
948
- * @default
949
- * - 'node' if the format is 'cjs'
950
- * - 'browser' for other formats
951
- */
952
- platform?: "node" | "browser" | "neutral";
953
- shimMissingExports?: boolean;
954
- treeshake?: boolean | TreeshakingOptions;
955
- logLevel?: LogLevelOption;
956
- onLog?: (level: LogLevel, log: RollupLog, defaultHandler: LogOrStringHandler) => void;
957
- onwarn?: (warning: RollupLog, defaultHandler: (warning: RollupLogWithString | (() => RollupLogWithString)) => void) => void;
958
- moduleTypes?: ModuleTypes;
959
- experimental?: {
960
- enableComposingJsPlugins?: boolean
961
- strictExecutionOrder?: boolean
962
- disableLiveBindings?: boolean
963
- viteMode?: boolean
964
- resolveNewUrlToAsset?: boolean
965
- hmr?: HmrOptions
966
- attachDebugInfo?: boolean
967
- };
968
- /**
969
- * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
970
- *
971
- * # Examples
972
- *
973
- * - Replace the global variable `IS_PROD` with `true`
974
- *
975
- * ```js rolldown.config.js
976
- * export default defineConfig({ define: { IS_PROD: 'true' // or JSON.stringify(true) } })
977
- * ```
978
- *
979
- * Result:
980
- *
981
- * ```js
982
- * // Input
983
- * if (IS_PROD) {
984
- * console.log('Production mode')
985
- * }
986
- *
987
- * // After bundling
988
- * if (true) {
989
- * console.log('Production mode')
990
- * }
991
- * ```
992
- *
993
- * - Replace the property accessor `process.env.NODE_ENV` with `'production'`
994
- *
995
- * ```js rolldown.config.js
996
- * export default defineConfig({ define: { 'process.env.NODE_ENV': "'production'" } })
997
- * ```
998
- *
999
- * Result:
1000
- *
1001
- * ```js
1002
- * // Input
1003
- * if (process.env.NODE_ENV === 'production') {
1004
- * console.log('Production mode')
1005
- * }
1006
- *
1007
- * // After bundling
1008
- * if ('production' === 'production') {
1009
- * console.log('Production mode')
1010
- * }
1011
- *
1012
- * ```
1013
- */
1014
- define?: Record<string, string>;
1015
- /**
1016
- * Inject import statements on demand.
1017
- *
1018
- * ## Supported patterns
1019
- * ```js
1020
- * {
1021
- * // import { Promise } from 'es6-promise'
1022
- * Promise: ['es6-promise', 'Promise'],
1023
- *
1024
- * // import { Promise as P } from 'es6-promise'
1025
- * P: ['es6-promise', 'Promise'],
1026
- *
1027
- * // import $ from 'jquery'
1028
- * $: 'jquery',
1029
- *
1030
- * // import * as fs from 'node:fs'
1031
- * fs: ['node:fs', '*'],
1032
- *
1033
- * // Inject shims for property access pattern
1034
- * 'Object.assign': path.resolve( 'src/helpers/object-assign.js' ),
1035
- * }
1036
- * ```
1037
- */
1038
- inject?: Record<string, string | [string, string]>;
1039
- profilerNames?: boolean;
1040
- /**
1041
- * - `false` disables the JSX parser, resulting in a syntax error if JSX syntax is used.
1042
- * - `"preserve"` disables the JSX transformer, preserving the original JSX syntax in the output.
1043
- * - `"react"` enables the `classic` JSX transformer.
1044
- * - `"react-jsx"` enables the `automatic` JSX transformer.
1045
- *
1046
- * @default runtime = "automatic"
1047
- */
1048
- jsx?: false | "react" | "react-jsx" | "preserve";
1049
- transform?: OxcTransformOption;
1050
- watch?: WatcherOptions | false;
1051
- dropLabels?: string[];
1052
- keepNames?: boolean;
1053
- checks?: ChecksOptions;
1054
- makeAbsoluteExternalsRelative?: MakeAbsoluteExternalsRelative;
1055
- debug?: {
1056
- sessionId?: string
1057
- };
1058
- }
1059
-
1060
- //#endregion
1061
- //#region src/types/rolldown-options.d.ts
1062
- interface RolldownOptions extends InputOptions {
1063
- output?: OutputOptions | OutputOptions[];
1064
- }
1065
-
1066
- //#endregion
1067
- //#region src/types/config-export.d.ts
1068
- /**
1069
- * Type for `default export` of `rolldown.config.js` file.
1070
- */
1071
- /**
1072
- * Type for `default export` of `rolldown.config.js` file.
1073
- */
1074
- type ConfigExport = RolldownOptions | RolldownOptions[];
1075
-
1076
- //#endregion
1077
- //#region src/utils/define-config.d.ts
1078
- declare function defineConfig(config: RolldownOptions): RolldownOptions;
1079
- declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
1080
- declare function defineConfig(config: ConfigExport): ConfigExport;
1081
-
1082
- //#endregion
1083
- export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };