rolldown 0.14.0-snapshot-ab438c3-20241121003459 → 0.14.0-snapshot-db4090b-20241123003628

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 (31) hide show
  1. package/dist/cjs/cli.cjs +9 -5
  2. package/dist/cjs/experimental-index.cjs +1 -1
  3. package/dist/cjs/index.cjs +1 -1
  4. package/dist/cjs/parallel-plugin-worker.cjs +1 -1
  5. package/dist/esm/cli.mjs +9 -5
  6. package/dist/esm/experimental-index.mjs +1 -1
  7. package/dist/esm/index.mjs +1 -1
  8. package/dist/esm/parallel-plugin-worker.mjs +1 -1
  9. package/dist/shared/rolldown-binding.wasi.cjs +6 -8
  10. package/dist/shared/{src_index-Yt-qn7mE.cjs → src_index-WgTHG2Z9.cjs} +613 -649
  11. package/dist/shared/{src_index-k_6h6jvv.mjs → src_index-wJBYWP9G.mjs} +613 -649
  12. package/dist/types/binding.d.ts +10 -14
  13. package/dist/types/cli/arguments/schema.d.ts +60 -56
  14. package/dist/types/log/logger.d.ts +3 -3
  15. package/dist/types/options/bindingify-input-options.d.ts +3 -2
  16. package/dist/types/options/input-options.d.ts +128 -120
  17. package/dist/types/options/normalized-input-options.d.ts +1 -10
  18. package/dist/types/options/normalized-output-options.d.ts +1 -15
  19. package/dist/types/options/output-options.d.ts +12 -11
  20. package/dist/types/plugin/plugin-driver.d.ts +2 -3
  21. package/dist/types/treeshake/index.d.ts +0 -4
  22. package/dist/types/treeshake/module-side-effects.d.ts +23 -21
  23. package/dist/types/types/input-options.d.ts +8 -0
  24. package/dist/types/types/output-options.d.ts +12 -1
  25. package/dist/types/utils/error.d.ts +1 -0
  26. package/dist/types/utils/normalize-plugin-option.d.ts +2 -2
  27. package/dist/types/watcher.d.ts +2 -3
  28. package/package.json +15 -15
  29. package/dist/types/utils/normalize-input-options.d.ts +0 -3
  30. package/dist/types/utils/normalize-output-options.d.ts +0 -3
  31. package/dist/types/utils/normalize-tree-shake.d.ts +0 -3
@@ -51,21 +51,22 @@ export declare const inputOptionsSchema: z.ZodObject<{
51
51
  sideEffects: z.ZodBoolean;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  sideEffects: boolean;
54
- test?: RegExp | undefined;
55
54
  external?: boolean | undefined;
55
+ test?: RegExp | undefined;
56
56
  }, {
57
57
  sideEffects: boolean;
58
- test?: RegExp | undefined;
59
58
  external?: boolean | undefined;
59
+ test?: RegExp | undefined;
60
60
  }>, {
61
61
  sideEffects: boolean;
62
- test?: RegExp | undefined;
63
62
  external?: boolean | undefined;
63
+ test?: RegExp | undefined;
64
64
  }, {
65
65
  sideEffects: boolean;
66
- test?: RegExp | undefined;
67
66
  external?: boolean | undefined;
67
+ test?: RegExp | undefined;
68
68
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
69
+ annotations: z.ZodOptional<z.ZodBoolean>;
69
70
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
70
71
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
71
72
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -73,21 +74,22 @@ export declare const inputOptionsSchema: z.ZodObject<{
73
74
  sideEffects: z.ZodBoolean;
74
75
  }, "strip", z.ZodTypeAny, {
75
76
  sideEffects: boolean;
76
- test?: RegExp | undefined;
77
77
  external?: boolean | undefined;
78
+ test?: RegExp | undefined;
78
79
  }, {
79
80
  sideEffects: boolean;
80
- test?: RegExp | undefined;
81
81
  external?: boolean | undefined;
82
+ test?: RegExp | undefined;
82
83
  }>, {
83
84
  sideEffects: boolean;
84
- test?: RegExp | undefined;
85
85
  external?: boolean | undefined;
86
+ test?: RegExp | undefined;
86
87
  }, {
87
88
  sideEffects: boolean;
88
- test?: RegExp | undefined;
89
89
  external?: boolean | undefined;
90
+ test?: RegExp | undefined;
90
91
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
92
+ annotations: z.ZodOptional<z.ZodBoolean>;
91
93
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
92
94
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
93
95
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -95,21 +97,22 @@ export declare const inputOptionsSchema: z.ZodObject<{
95
97
  sideEffects: z.ZodBoolean;
96
98
  }, "strip", z.ZodTypeAny, {
97
99
  sideEffects: boolean;
98
- test?: RegExp | undefined;
99
100
  external?: boolean | undefined;
101
+ test?: RegExp | undefined;
100
102
  }, {
101
103
  sideEffects: boolean;
102
- test?: RegExp | undefined;
103
104
  external?: boolean | undefined;
105
+ test?: RegExp | undefined;
104
106
  }>, {
105
107
  sideEffects: boolean;
106
- test?: RegExp | undefined;
107
108
  external?: boolean | undefined;
109
+ test?: RegExp | undefined;
108
110
  }, {
109
111
  sideEffects: boolean;
110
- test?: RegExp | undefined;
111
112
  external?: boolean | undefined;
113
+ test?: RegExp | undefined;
112
114
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
115
+ annotations: z.ZodOptional<z.ZodBoolean>;
113
116
  }, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
114
117
  logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>;
115
118
  onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>;
@@ -192,7 +195,33 @@ export declare const inputOptionsSchema: z.ZodObject<{
192
195
  }>, z.ZodLiteral<false>]>>;
193
196
  dropLabels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
197
  }, "strict", z.ZodTypeAny, {
198
+ onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
199
+ onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
195
200
  external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined;
201
+ jsx?: {
202
+ development?: boolean | undefined;
203
+ refresh?: boolean | undefined;
204
+ mode?: "classic" | "automatic" | undefined;
205
+ factory?: string | undefined;
206
+ fragment?: string | undefined;
207
+ importSource?: string | undefined;
208
+ jsxImportSource?: string | undefined;
209
+ } | undefined;
210
+ input?: string | string[] | Record<string, string> | undefined;
211
+ resolve?: {
212
+ modules?: string[] | undefined;
213
+ alias?: Record<string, string> | undefined;
214
+ extensionAlias?: Record<string, string[]> | undefined;
215
+ aliasFields?: string[][] | undefined;
216
+ conditionNames?: string[] | undefined;
217
+ exportsFields?: string[][] | undefined;
218
+ extensions?: string[] | undefined;
219
+ mainFields?: string[] | undefined;
220
+ mainFiles?: string[] | undefined;
221
+ symlinks?: boolean | undefined;
222
+ tsconfigFilename?: string | undefined;
223
+ } | undefined;
224
+ logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
196
225
  treeshake?: boolean | z.objectOutputType<{
197
226
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
198
227
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -200,52 +229,51 @@ export declare const inputOptionsSchema: z.ZodObject<{
200
229
  sideEffects: z.ZodBoolean;
201
230
  }, "strip", z.ZodTypeAny, {
202
231
  sideEffects: boolean;
203
- test?: RegExp | undefined;
204
232
  external?: boolean | undefined;
233
+ test?: RegExp | undefined;
205
234
  }, {
206
235
  sideEffects: boolean;
207
- test?: RegExp | undefined;
208
236
  external?: boolean | undefined;
237
+ test?: RegExp | undefined;
209
238
  }>, {
210
239
  sideEffects: boolean;
211
- test?: RegExp | undefined;
212
240
  external?: boolean | undefined;
241
+ test?: RegExp | undefined;
213
242
  }, {
214
243
  sideEffects: boolean;
215
- test?: RegExp | undefined;
216
244
  external?: boolean | undefined;
245
+ test?: RegExp | undefined;
217
246
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
247
+ annotations: z.ZodOptional<z.ZodBoolean>;
218
248
  }, z.ZodTypeAny, "passthrough"> | undefined;
219
- input?: string | string[] | Record<string, string> | undefined;
220
- plugins?: RolldownPluginRec[] | undefined;
221
- resolve?: {
222
- modules?: string[] | undefined;
223
- alias?: Record<string, string> | undefined;
224
- extensionAlias?: Record<string, string[]> | undefined;
225
- aliasFields?: string[][] | undefined;
226
- conditionNames?: string[] | undefined;
227
- exportsFields?: string[][] | undefined;
228
- extensions?: string[] | undefined;
229
- mainFields?: string[] | undefined;
230
- mainFiles?: string[] | undefined;
231
- symlinks?: boolean | undefined;
232
- tsconfigFilename?: string | undefined;
249
+ inject?: Record<string, string | [string, string]> | undefined;
250
+ watch?: false | {
251
+ include?: string | RegExp | (string | RegExp)[] | undefined;
252
+ exclude?: string | RegExp | (string | RegExp)[] | undefined;
253
+ notify?: {
254
+ pollInterval?: number | undefined;
255
+ compareContents?: boolean | undefined;
256
+ } | undefined;
257
+ skipWrite?: boolean | undefined;
258
+ chokidar?: any;
233
259
  } | undefined;
234
- cwd?: string | undefined;
235
- platform?: "node" | "browser" | "neutral" | undefined;
236
- shimMissingExports?: boolean | undefined;
237
- logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
238
- onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
239
- onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
240
- moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
260
+ plugins?: RolldownPluginRec[] | undefined;
241
261
  experimental?: {
242
262
  strictExecutionOrder?: boolean | undefined;
243
263
  disableLiveBindings?: boolean | undefined;
244
264
  enableComposingJsPlugins?: boolean | undefined;
245
265
  } | undefined;
246
- define?: Record<string, string> | undefined;
247
- inject?: Record<string, string | [string, string]> | undefined;
248
266
  profilerNames?: boolean | undefined;
267
+ cwd?: string | undefined;
268
+ platform?: "node" | "browser" | "neutral" | undefined;
269
+ shimMissingExports?: boolean | undefined;
270
+ moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
271
+ define?: Record<string, string> | undefined;
272
+ dropLabels?: string[] | undefined;
273
+ }, {
274
+ onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
275
+ onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
276
+ external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined;
249
277
  jsx?: {
250
278
  development?: boolean | undefined;
251
279
  refresh?: boolean | undefined;
@@ -255,19 +283,21 @@ export declare const inputOptionsSchema: z.ZodObject<{
255
283
  importSource?: string | undefined;
256
284
  jsxImportSource?: string | undefined;
257
285
  } | undefined;
258
- watch?: false | {
259
- include?: string | RegExp | (string | RegExp)[] | undefined;
260
- exclude?: string | RegExp | (string | RegExp)[] | undefined;
261
- notify?: {
262
- pollInterval?: number | undefined;
263
- compareContents?: boolean | undefined;
264
- } | undefined;
265
- skipWrite?: boolean | undefined;
266
- chokidar?: any;
286
+ input?: string | string[] | Record<string, string> | undefined;
287
+ resolve?: {
288
+ modules?: string[] | undefined;
289
+ alias?: Record<string, string> | undefined;
290
+ extensionAlias?: Record<string, string[]> | undefined;
291
+ aliasFields?: string[][] | undefined;
292
+ conditionNames?: string[] | undefined;
293
+ exportsFields?: string[][] | undefined;
294
+ extensions?: string[] | undefined;
295
+ mainFields?: string[] | undefined;
296
+ mainFiles?: string[] | undefined;
297
+ symlinks?: boolean | undefined;
298
+ tsconfigFilename?: string | undefined;
267
299
  } | undefined;
268
- dropLabels?: string[] | undefined;
269
- }, {
270
- external?: string | RegExp | (string | RegExp)[] | ((args_0: string, args_1: string | undefined, args_2: boolean, ...args: unknown[]) => boolean | void | null | undefined) | undefined;
300
+ logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
271
301
  treeshake?: boolean | z.objectInputType<{
272
302
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
273
303
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -275,61 +305,24 @@ export declare const inputOptionsSchema: z.ZodObject<{
275
305
  sideEffects: z.ZodBoolean;
276
306
  }, "strip", z.ZodTypeAny, {
277
307
  sideEffects: boolean;
278
- test?: RegExp | undefined;
279
308
  external?: boolean | undefined;
309
+ test?: RegExp | undefined;
280
310
  }, {
281
311
  sideEffects: boolean;
282
- test?: RegExp | undefined;
283
312
  external?: boolean | undefined;
313
+ test?: RegExp | undefined;
284
314
  }>, {
285
315
  sideEffects: boolean;
286
- test?: RegExp | undefined;
287
316
  external?: boolean | undefined;
317
+ test?: RegExp | undefined;
288
318
  }, {
289
319
  sideEffects: boolean;
290
- test?: RegExp | undefined;
291
320
  external?: boolean | undefined;
321
+ test?: RegExp | undefined;
292
322
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
323
+ annotations: z.ZodOptional<z.ZodBoolean>;
293
324
  }, z.ZodTypeAny, "passthrough"> | undefined;
294
- input?: string | string[] | Record<string, string> | undefined;
295
- plugins?: RolldownPluginRec[] | undefined;
296
- resolve?: {
297
- modules?: string[] | undefined;
298
- alias?: Record<string, string> | undefined;
299
- extensionAlias?: Record<string, string[]> | undefined;
300
- aliasFields?: string[][] | undefined;
301
- conditionNames?: string[] | undefined;
302
- exportsFields?: string[][] | undefined;
303
- extensions?: string[] | undefined;
304
- mainFields?: string[] | undefined;
305
- mainFiles?: string[] | undefined;
306
- symlinks?: boolean | undefined;
307
- tsconfigFilename?: string | undefined;
308
- } | undefined;
309
- cwd?: string | undefined;
310
- platform?: "node" | "browser" | "neutral" | undefined;
311
- shimMissingExports?: boolean | undefined;
312
- logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
313
- onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
314
- onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
315
- moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
316
- experimental?: {
317
- strictExecutionOrder?: boolean | undefined;
318
- disableLiveBindings?: boolean | undefined;
319
- enableComposingJsPlugins?: boolean | undefined;
320
- } | undefined;
321
- define?: Record<string, string> | undefined;
322
325
  inject?: Record<string, string | [string, string]> | undefined;
323
- profilerNames?: boolean | undefined;
324
- jsx?: {
325
- development?: boolean | undefined;
326
- refresh?: boolean | undefined;
327
- mode?: "classic" | "automatic" | undefined;
328
- factory?: string | undefined;
329
- fragment?: string | undefined;
330
- importSource?: string | undefined;
331
- jsxImportSource?: string | undefined;
332
- } | undefined;
333
326
  watch?: false | {
334
327
  include?: string | RegExp | (string | RegExp)[] | undefined;
335
328
  exclude?: string | RegExp | (string | RegExp)[] | undefined;
@@ -340,6 +333,18 @@ export declare const inputOptionsSchema: z.ZodObject<{
340
333
  skipWrite?: boolean | undefined;
341
334
  chokidar?: any;
342
335
  } | undefined;
336
+ plugins?: RolldownPluginRec[] | undefined;
337
+ experimental?: {
338
+ strictExecutionOrder?: boolean | undefined;
339
+ disableLiveBindings?: boolean | undefined;
340
+ enableComposingJsPlugins?: boolean | undefined;
341
+ } | undefined;
342
+ profilerNames?: boolean | undefined;
343
+ cwd?: string | undefined;
344
+ platform?: "node" | "browser" | "neutral" | undefined;
345
+ shimMissingExports?: boolean | undefined;
346
+ moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
347
+ define?: Record<string, string> | undefined;
343
348
  dropLabels?: string[] | undefined;
344
349
  }>;
345
350
  export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extendShape<{
@@ -393,21 +398,22 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
393
398
  sideEffects: z.ZodBoolean;
394
399
  }, "strip", z.ZodTypeAny, {
395
400
  sideEffects: boolean;
396
- test?: RegExp | undefined;
397
401
  external?: boolean | undefined;
402
+ test?: RegExp | undefined;
398
403
  }, {
399
404
  sideEffects: boolean;
400
- test?: RegExp | undefined;
401
405
  external?: boolean | undefined;
406
+ test?: RegExp | undefined;
402
407
  }>, {
403
408
  sideEffects: boolean;
404
- test?: RegExp | undefined;
405
409
  external?: boolean | undefined;
410
+ test?: RegExp | undefined;
406
411
  }, {
407
412
  sideEffects: boolean;
408
- test?: RegExp | undefined;
409
413
  external?: boolean | undefined;
414
+ test?: RegExp | undefined;
410
415
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
416
+ annotations: z.ZodOptional<z.ZodBoolean>;
411
417
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
412
418
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
413
419
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -415,21 +421,22 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
415
421
  sideEffects: z.ZodBoolean;
416
422
  }, "strip", z.ZodTypeAny, {
417
423
  sideEffects: boolean;
418
- test?: RegExp | undefined;
419
424
  external?: boolean | undefined;
425
+ test?: RegExp | undefined;
420
426
  }, {
421
427
  sideEffects: boolean;
422
- test?: RegExp | undefined;
423
428
  external?: boolean | undefined;
429
+ test?: RegExp | undefined;
424
430
  }>, {
425
431
  sideEffects: boolean;
426
- test?: RegExp | undefined;
427
432
  external?: boolean | undefined;
433
+ test?: RegExp | undefined;
428
434
  }, {
429
435
  sideEffects: boolean;
430
- test?: RegExp | undefined;
431
436
  external?: boolean | undefined;
437
+ test?: RegExp | undefined;
432
438
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
439
+ annotations: z.ZodOptional<z.ZodBoolean>;
433
440
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
434
441
  moduleSideEffects: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodArray<z.ZodEffects<z.ZodObject<{
435
442
  test: z.ZodOptional<z.ZodType<RegExp, z.ZodTypeDef, RegExp>>;
@@ -437,21 +444,22 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
437
444
  sideEffects: z.ZodBoolean;
438
445
  }, "strip", z.ZodTypeAny, {
439
446
  sideEffects: boolean;
440
- test?: RegExp | undefined;
441
447
  external?: boolean | undefined;
448
+ test?: RegExp | undefined;
442
449
  }, {
443
450
  sideEffects: boolean;
444
- test?: RegExp | undefined;
445
451
  external?: boolean | undefined;
452
+ test?: RegExp | undefined;
446
453
  }>, {
447
454
  sideEffects: boolean;
448
- test?: RegExp | undefined;
449
455
  external?: boolean | undefined;
456
+ test?: RegExp | undefined;
450
457
  }, {
451
458
  sideEffects: boolean;
452
- test?: RegExp | undefined;
453
459
  external?: boolean | undefined;
460
+ test?: RegExp | undefined;
454
461
  }>, "many">]>, z.ZodLiteral<"no-external">]>>;
462
+ annotations: z.ZodOptional<z.ZodBoolean>;
455
463
  }, z.ZodTypeAny, "passthrough">>, z.ZodBoolean]>>;
456
464
  logLevel: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"silent">]>>;
457
465
  onLog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodAny, z.ZodFunction<z.ZodTuple<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"info">, z.ZodLiteral<"debug">]>, z.ZodLiteral<"warn">]>, z.ZodLiteral<"error">]>, z.ZodUnion<[z.ZodAny, z.ZodString]>], z.ZodUnknown>, z.ZodUnknown>], z.ZodUnknown>, z.ZodUnknown>>;
@@ -537,16 +545,8 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
537
545
  external: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
546
  inject: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
539
547
  treeshake: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
540
- }>, "input" | "plugins" | "resolve" | "onLog" | "onwarn" | "experimental" | "profilerNames" | "watch">, "strict", z.ZodTypeAny, {
548
+ }>, "onLog" | "onwarn" | "input" | "resolve" | "watch" | "plugins" | "experimental" | "profilerNames">, "strict", z.ZodTypeAny, {
541
549
  external?: string[] | undefined;
542
- treeshake?: boolean | undefined;
543
- cwd?: string | undefined;
544
- platform?: "node" | "browser" | "neutral" | undefined;
545
- shimMissingExports?: boolean | undefined;
546
- logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
547
- moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
548
- define?: Record<string, string> | undefined;
549
- inject?: Record<string, string> | undefined;
550
550
  jsx?: {
551
551
  development?: boolean | undefined;
552
552
  refresh?: boolean | undefined;
@@ -556,17 +556,17 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
556
556
  importSource?: string | undefined;
557
557
  jsxImportSource?: string | undefined;
558
558
  } | undefined;
559
- dropLabels?: string[] | undefined;
560
- }, {
561
- external?: string[] | undefined;
559
+ logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
562
560
  treeshake?: boolean | undefined;
561
+ inject?: Record<string, string> | undefined;
563
562
  cwd?: string | undefined;
564
563
  platform?: "node" | "browser" | "neutral" | undefined;
565
564
  shimMissingExports?: boolean | undefined;
566
- logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
567
- moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
565
+ moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
568
566
  define?: Record<string, string> | undefined;
569
- inject?: Record<string, string> | undefined;
567
+ dropLabels?: string[] | undefined;
568
+ }, {
569
+ external?: string[] | undefined;
570
570
  jsx?: {
571
571
  development?: boolean | undefined;
572
572
  refresh?: boolean | undefined;
@@ -576,5 +576,13 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
576
576
  importSource?: string | undefined;
577
577
  jsxImportSource?: string | undefined;
578
578
  } | undefined;
579
+ logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
580
+ treeshake?: boolean | undefined;
581
+ inject?: Record<string, string> | undefined;
582
+ cwd?: string | undefined;
583
+ platform?: "node" | "browser" | "neutral" | undefined;
584
+ shimMissingExports?: boolean | undefined;
585
+ moduleTypes?: Record<string, "base64" | "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
586
+ define?: Record<string, string> | undefined;
579
587
  dropLabels?: string[] | undefined;
580
588
  }>;
@@ -1,12 +1,3 @@
1
- import type { LogLevelOption, RollupLog, NormalizedInputOptions as RollupNormalizedInputOptions } from '../rollup';
2
1
  import type { InputOptions } from '../types/input-options';
3
- import type { RolldownPlugin } from '../plugin';
4
- import type { LogLevel } from '../log/logging';
5
- import { NormalizedTreeshakingOptions } from '../treeshake';
6
- export interface NormalizedInputOptions extends Omit<InputOptions, 'treeshake'> {
7
- input: RollupNormalizedInputOptions['input'];
8
- plugins: RolldownPlugin[];
9
- onLog: (level: LogLevel, log: RollupLog) => void;
10
- logLevel: LogLevelOption;
11
- treeshake?: NormalizedTreeshakingOptions;
2
+ export interface NormalizedInputOptions extends InputOptions {
12
3
  }
@@ -1,18 +1,4 @@
1
- import type { SourcemapIgnoreListOption } from '../rollup';
2
- import type { AddonFunction, OutputOptions } from '../types/output-options';
3
- import type { RolldownPlugin } from '../plugin';
1
+ import type { OutputOptions } from '../types/output-options';
4
2
  export type InternalModuleFormat = 'es' | 'cjs' | 'iife' | 'umd';
5
3
  export interface NormalizedOutputOptions extends OutputOptions {
6
- plugins: RolldownPlugin[];
7
- format: InternalModuleFormat;
8
- exports: 'auto' | 'named' | 'default' | 'none';
9
- sourcemap: boolean | 'inline' | 'hidden';
10
- sourcemapIgnoreList: SourcemapIgnoreListOption;
11
- banner: AddonFunction;
12
- footer: AddonFunction;
13
- intro: AddonFunction;
14
- outro: AddonFunction;
15
- esModule: boolean | 'if-default-prop';
16
- assetFileNames: string;
17
- inlineDynamicImports: boolean;
18
4
  }
@@ -23,7 +23,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
23
23
  cssChunkFileNames: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.ZodType<PreRenderedChunk, z.ZodTypeDef, PreRenderedChunk>], z.ZodUnknown>, z.ZodString>]>>;
24
24
  minify: z.ZodOptional<z.ZodBoolean>;
25
25
  name: z.ZodOptional<z.ZodString>;
26
- globals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
26
+ globals: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodString>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodString>]>>;
27
27
  externalLiveBindings: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
28
28
  inlineDynamicImports: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
29
29
  advancedChunks: z.ZodOptional<z.ZodObject<{
@@ -76,6 +76,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
76
76
  intro: z.ZodOptional<z.ZodString>;
77
77
  outro: z.ZodOptional<z.ZodString>;
78
78
  esModule: z.ZodOptional<z.ZodBoolean>;
79
+ globals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
79
80
  advancedChunks: z.ZodOptional<z.ZodObject<{
80
81
  minSize: z.ZodOptional<z.ZodNumber>;
81
82
  minShareCount: z.ZodOptional<z.ZodNumber>;
@@ -87,14 +88,15 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
87
88
  minShareCount?: number | undefined;
88
89
  }>>;
89
90
  }>, "sourcemapIgnoreList" | "sourcemapPathTransform">, "strict", z.ZodTypeAny, {
90
- footer?: string | undefined;
91
- banner?: string | undefined;
92
- intro?: string | undefined;
93
- outro?: string | undefined;
94
91
  file?: string | undefined;
95
92
  name?: string | undefined;
96
93
  exports?: "auto" | "named" | "default" | "none" | undefined;
94
+ banner?: string | undefined;
95
+ footer?: string | undefined;
96
+ intro?: string | undefined;
97
+ outro?: string | undefined;
97
98
  esModule?: boolean | undefined;
99
+ globals?: Record<string, string> | undefined;
98
100
  advancedChunks?: {
99
101
  minSize?: number | undefined;
100
102
  minShareCount?: number | undefined;
@@ -110,19 +112,19 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
110
112
  cssEntryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
111
113
  cssChunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
112
114
  minify?: boolean | undefined;
113
- globals?: Record<string, string> | undefined;
114
115
  externalLiveBindings?: boolean | undefined;
115
116
  inlineDynamicImports?: boolean | undefined;
116
117
  comments?: "none" | "preserve-legal" | undefined;
117
118
  }, {
118
- footer?: string | undefined;
119
- banner?: string | undefined;
120
- intro?: string | undefined;
121
- outro?: string | undefined;
122
119
  file?: string | undefined;
123
120
  name?: string | undefined;
124
121
  exports?: "auto" | "named" | "default" | "none" | undefined;
122
+ banner?: string | undefined;
123
+ footer?: string | undefined;
124
+ intro?: string | undefined;
125
+ outro?: string | undefined;
125
126
  esModule?: boolean | undefined;
127
+ globals?: Record<string, string> | undefined;
126
128
  advancedChunks?: {
127
129
  minSize?: number | undefined;
128
130
  minShareCount?: number | undefined;
@@ -138,7 +140,6 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
138
140
  cssEntryFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
139
141
  cssChunkFileNames?: string | ((args_0: PreRenderedChunk, ...args: unknown[]) => string) | undefined;
140
142
  minify?: boolean | undefined;
141
- globals?: Record<string, string> | undefined;
142
143
  externalLiveBindings?: boolean | undefined;
143
144
  inlineDynamicImports?: boolean | undefined;
144
145
  comments?: "none" | "preserve-legal" | undefined;
@@ -1,9 +1,8 @@
1
1
  import { Plugin, RolldownPluginRec } from './';
2
- import { NormalizedInputOptions } from '../options/normalized-input-options';
3
- import { InputOptions, OutputOptions } from '..';
2
+ import { InputOptions, OutputOptions, RolldownPlugin } from '..';
4
3
  export declare class PluginDriver {
5
4
  callOptionsHook(inputOptions: InputOptions): Promise<InputOptions>;
6
- callOutputOptionsHook(inputOptions: NormalizedInputOptions, outputOptions: OutputOptions): OutputOptions;
5
+ callOutputOptionsHook(rawPlugins: RolldownPlugin[], outputOptions: OutputOptions): OutputOptions;
7
6
  }
8
7
  export declare function getObjectPlugins(plugins: RolldownPluginRec[]): Plugin[];
9
8
  export declare function getSortedPlugins(hookName: 'options' | 'outputOptions' | 'onLog', plugins: readonly Plugin[]): Plugin[];
@@ -1,5 +1 @@
1
- import { ModuleSideEffectsRule } from './module-side-effects';
2
- export interface NormalizedTreeshakingOptions {
3
- moduleSideEffects: boolean | ModuleSideEffectsRule[];
4
- }
5
1
  export * from './module-side-effects';