@rollipop/rolldown 1.0.8 → 1.0.10

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 (40) hide show
  1. package/dist/cli.mjs +7 -7
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +3 -3
  4. package/dist/experimental-index.d.mts +21 -4
  5. package/dist/experimental-index.mjs +14 -9
  6. package/dist/filter-index.d.mts +1 -1
  7. package/dist/filter-index.mjs +1 -1
  8. package/dist/get-log-filter.d.mts +3 -3
  9. package/dist/index.d.mts +4 -4
  10. package/dist/index.mjs +5 -5
  11. package/dist/parallel-plugin-worker.mjs +2 -2
  12. package/dist/parallel-plugin.d.mts +1 -1
  13. package/dist/parse-ast-index.d.mts +1 -1
  14. package/dist/parse-ast-index.mjs +2 -2
  15. package/dist/plugins-index.d.mts +3 -3
  16. package/dist/plugins-index.mjs +2 -2
  17. package/dist/shared/{binding-ZOgiGt4C.mjs → binding-CcS-e42X.mjs} +27 -26
  18. package/dist/shared/{binding-BAK1LNST.d.mts → binding-DH6N8z26.d.mts} +32 -3
  19. package/dist/shared/{bindingify-input-options-cmklTSap.mjs → bindingify-input-options-CI-2hKAx.mjs} +31 -15
  20. package/dist/shared/{constructors-CAy2ANVb.d.mts → constructors-DHgqGLqV.d.mts} +2 -2
  21. package/dist/shared/{constructors-D_Lvb0Nx.mjs → constructors-JUr2c3nY.mjs} +1 -1
  22. package/dist/shared/{define-config--ZeBGjK8.d.mts → define-config-CeNECOFF.d.mts} +71 -16
  23. package/dist/shared/{error-ChzJgXDI.mjs → error-Nb-nFm4f.mjs} +1 -1
  24. package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
  25. package/dist/shared/{load-config-DOUsG-mD.mjs → load-config-B8BQ6qW2.mjs} +1 -1
  26. package/dist/shared/{normalize-string-or-regex-Bp7MBjjd.mjs → normalize-string-or-regex-VP_Pyqdz.mjs} +2 -2
  27. package/dist/shared/{parse-B1Xb1DP0.mjs → parse-BCHv9CYb.mjs} +2 -2
  28. package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DYnaB1Nb.mjs} +1 -1
  29. package/dist/shared/{resolve-tsconfig-DUlqh4Wf.mjs → resolve-tsconfig-D1DmmGCN.mjs} +15 -4
  30. package/dist/shared/{rolldown-C8g_7RHO.mjs → rolldown-BzA3Eafi.mjs} +1 -1
  31. package/dist/shared/{rolldown-build-BKTuWCJv.mjs → rolldown-build-Df-vz0Zv.mjs} +57 -67
  32. package/dist/shared/{transform-CbwKjzKh.d.mts → transform-DlM64_VL.d.mts} +2 -2
  33. package/dist/shared/{watch-C96Qic5H.mjs → watch-Css1Gn1o.mjs} +6 -6
  34. package/dist/utils-index.d.mts +3 -3
  35. package/dist/utils-index.mjs +5 -5
  36. package/package.json +26 -20
  37. /package/dist/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
  38. /package/dist/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
  39. /package/dist/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
  40. /package/dist/shared/{misc-DJYbNKZX.mjs → misc-CoQm4NHO.mjs} +0 -0
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-ZOgiGt4C.mjs";
2
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
3
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-Bp7MBjjd.mjs";
4
- import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-cmklTSap.mjs";
5
- import { i as unimplemented } from "./misc-DJYbNKZX.mjs";
6
- import { i as unwrapBindingResult } from "./error-ChzJgXDI.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CcS-e42X.mjs";
2
+ import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
3
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-VP_Pyqdz.mjs";
4
+ import { c as __decorate, d as PlainObjectLike, f as MinimalPluginContextImpl, h as LOG_LEVEL_DEBUG, i as transformModuleInfo, l as transformAssetSource, m as normalizeLog, o as transformToRollupOutput, p as normalizeHook, s as transformRenderedChunk, t as bindingifyInputOptions, u as lazyProp, v as LOG_LEVEL_WARN, x as VERSION, y as logLevelPriority } from "./bindingify-input-options-CI-2hKAx.mjs";
5
+ import { i as unimplemented } from "./misc-CoQm4NHO.mjs";
6
+ import { i as unwrapBindingResult } from "./error-Nb-nFm4f.mjs";
7
7
  import { Worker } from "node:worker_threads";
8
8
  import path, { sep } from "node:path";
9
9
  import { formatWithOptions, styleText } from "node:util";
@@ -97,7 +97,8 @@ const ENUMERATED_INPUT_PLUGIN_HOOK_NAMES = [
97
97
  "resolveDynamicImport",
98
98
  "closeBundle",
99
99
  "closeWatcher",
100
- "watchChange"
100
+ "watchChange",
101
+ "transformCacheHit"
101
102
  ];
102
103
  const ENUMERATED_OUTPUT_PLUGIN_HOOK_NAMES = [
103
104
  "augmentChunkHash",
@@ -116,7 +117,7 @@ const ENUMERATED_PLUGIN_HOOK_NAMES = [
116
117
  "intro",
117
118
  "outro"
118
119
  ];
119
- ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[22], ENUMERATED_PLUGIN_HOOK_NAMES[22];
120
+ ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[0], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[1], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[2], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[3], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[4], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[5], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[6], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[7], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[8], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[9], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[10], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[11], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[12], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[13], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[14], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[15], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[16], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[17], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[18], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[19], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[20], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[21], ENUMERATED_PLUGIN_HOOK_NAMES[22], ENUMERATED_PLUGIN_HOOK_NAMES[22], ENUMERATED_PLUGIN_HOOK_NAMES[23], ENUMERATED_PLUGIN_HOOK_NAMES[23];
120
121
  //#endregion
121
122
  //#region src/utils/async-flatten.ts
122
123
  async function asyncFlatten(array) {
@@ -211,9 +212,12 @@ function getSortedPlugins(hookName, plugins) {
211
212
  ...post
212
213
  ];
213
214
  }
214
- //#endregion
215
- //#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
216
- let store$4;
215
+ const DEFAULT_CONFIG = {
216
+ lang: void 0,
217
+ message: void 0,
218
+ abortEarly: void 0,
219
+ abortPipeEarly: void 0
220
+ };
217
221
  /**
218
222
  * Returns the global configuration.
219
223
  *
@@ -223,50 +227,14 @@ let store$4;
223
227
  */
224
228
  /* @__NO_SIDE_EFFECTS__ */
225
229
  function getGlobalConfig(config$1) {
230
+ if (!config$1 && true) return DEFAULT_CONFIG;
226
231
  return {
227
- lang: config$1?.lang ?? store$4?.lang,
232
+ lang: config$1?.lang ?? void 0,
228
233
  message: config$1?.message,
229
- abortEarly: config$1?.abortEarly ?? store$4?.abortEarly,
230
- abortPipeEarly: config$1?.abortPipeEarly ?? store$4?.abortPipeEarly
234
+ abortEarly: config$1?.abortEarly ?? void 0,
235
+ abortPipeEarly: config$1?.abortPipeEarly ?? void 0
231
236
  };
232
237
  }
233
- let store$3;
234
- /**
235
- * Returns a global error message.
236
- *
237
- * @param lang The language of the message.
238
- *
239
- * @returns The error message.
240
- */
241
- /* @__NO_SIDE_EFFECTS__ */
242
- function getGlobalMessage(lang) {
243
- return store$3?.get(lang);
244
- }
245
- let store$2;
246
- /**
247
- * Returns a schema error message.
248
- *
249
- * @param lang The language of the message.
250
- *
251
- * @returns The error message.
252
- */
253
- /* @__NO_SIDE_EFFECTS__ */
254
- function getSchemaMessage(lang) {
255
- return store$2?.get(lang);
256
- }
257
- let store$1;
258
- /**
259
- * Returns a specific error message.
260
- *
261
- * @param reference The identifier reference.
262
- * @param lang The language of the message.
263
- *
264
- * @returns The error message.
265
- */
266
- /* @__NO_SIDE_EFFECTS__ */
267
- function getSpecificMessage(reference, lang) {
268
- return store$1?.get(reference)?.get(lang);
269
- }
270
238
  /**
271
239
  * Stringifies an unknown input to a literal or type string.
272
240
  *
@@ -314,12 +282,13 @@ function _addIssue(context, label, dataset, config$1, other) {
314
282
  abortPipeEarly: config$1.abortPipeEarly
315
283
  };
316
284
  const isSchema = context.kind === "schema";
317
- const message$1 = other?.message ?? context.message ?? /* @__PURE__ */ getSpecificMessage(context.reference, issue.lang) ?? (isSchema ? /* @__PURE__ */ getSchemaMessage(issue.lang) : null) ?? config$1.message ?? /* @__PURE__ */ getGlobalMessage(issue.lang);
285
+ const message$1 = other?.message ?? context.message ?? (context.reference, issue.lang, void 0) ?? (isSchema ? (issue.lang, void 0) : null) ?? config$1.message ?? (issue.lang, void 0);
318
286
  if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
319
287
  if (isSchema) dataset.typed = false;
320
288
  if (dataset.issues) dataset.issues.push(issue);
321
289
  else dataset.issues = [issue];
322
290
  }
291
+ const _standardCache = /* @__PURE__ */ new WeakMap();
323
292
  /**
324
293
  * Returns the Standard Schema properties.
325
294
  *
@@ -329,13 +298,18 @@ function _addIssue(context, label, dataset, config$1, other) {
329
298
  */
330
299
  /* @__NO_SIDE_EFFECTS__ */
331
300
  function _getStandardProps(context) {
332
- return {
333
- version: 1,
334
- vendor: "valibot",
335
- validate(value$1) {
336
- return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
337
- }
338
- };
301
+ let cached = _standardCache.get(context);
302
+ if (!cached) {
303
+ cached = {
304
+ version: 1,
305
+ vendor: "valibot",
306
+ validate(value$1) {
307
+ return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
308
+ }
309
+ };
310
+ _standardCache.set(context, cached);
311
+ }
312
+ return cached;
339
313
  }
340
314
  /**
341
315
  * Disallows inherited object properties and prevents object prototype
@@ -350,7 +324,7 @@ function _getStandardProps(context) {
350
324
  */
351
325
  /* @__NO_SIDE_EFFECTS__ */
352
326
  function _isValidObjectKey(object$1, key) {
353
- return Object.hasOwn(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
327
+ return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
354
328
  }
355
329
  /**
356
330
  * Joins multiple `expects` values with the given separator.
@@ -474,6 +448,7 @@ function returnsAsync(schema) {
474
448
  }
475
449
  };
476
450
  }
451
+ const ABORT_EARLY_CONFIG = { abortEarly: true };
477
452
  /**
478
453
  * Returns the fallback value of the schema.
479
454
  *
@@ -511,7 +486,7 @@ function getDefault(schema, dataset, config$1) {
511
486
  */
512
487
  /* @__NO_SIDE_EFFECTS__ */
513
488
  function is(schema, input) {
514
- return !schema["~run"]({ value: input }, { abortEarly: true }).issues;
489
+ return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
515
490
  }
516
491
  /**
517
492
  * Creates an any schema.
@@ -1123,7 +1098,7 @@ function undefined_(message$1) {
1123
1098
  /* @__NO_SIDE_EFFECTS__ */
1124
1099
  function _subIssues(datasets) {
1125
1100
  let issues;
1126
- if (datasets) for (const dataset of datasets) if (issues) issues.push(...dataset.issues);
1101
+ if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
1127
1102
  else issues = dataset.issues;
1128
1103
  return issues;
1129
1104
  }
@@ -1470,7 +1445,8 @@ const TransformOptionsSchema = /* @__PURE__ */ object({
1470
1445
  helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1471
1446
  decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1472
1447
  legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1473
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1448
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1449
+ strictNullChecks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1474
1450
  })),
1475
1451
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1476
1452
  /* @__PURE__ */ literal(false),
@@ -1521,6 +1497,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1521
1497
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
1522
1498
  missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
1523
1499
  missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
1500
+ invalidAnnotation: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a `#__PURE__` / `@__PURE__` annotation has no effect due to its position")),
1524
1501
  mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
1525
1502
  unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
1526
1503
  unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
@@ -1536,7 +1513,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1536
1513
  pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
1537
1514
  duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
1538
1515
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1539
- ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting"))
1516
+ ineffectiveDynamicImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a module is dynamically imported but also statically imported, making the dynamic import ineffective for code splitting")),
1517
+ largeBarrelModules: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit info logs when a barrel module has a very large number of re-exports (more than 5000)"))
1540
1518
  });
1541
1519
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1542
1520
  compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
@@ -1569,7 +1547,16 @@ const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1569
1547
  })])),
1570
1548
  debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1571
1549
  })])),
1572
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
1550
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1551
+ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1552
+ legalComments: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1553
+ /* @__PURE__ */ literal("none"),
1554
+ /* @__PURE__ */ literal("inline"),
1555
+ /* @__PURE__ */ literal("eof"),
1556
+ /* @__PURE__ */ literal("external"),
1557
+ /* @__PURE__ */ strictObject({ linked: /* @__PURE__ */ string() })
1558
+ ]))
1559
+ })]))
1573
1560
  });
1574
1561
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1575
1562
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
@@ -1654,7 +1641,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1654
1641
  onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1655
1642
  incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1656
1643
  nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1657
- chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1644
+ chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1645
+ mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1646
+ avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1647
+ })])),
1658
1648
  lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1659
1649
  })),
1660
1650
  transform: /* @__PURE__ */ optional(TransformOptionsSchema),
@@ -2881,7 +2871,7 @@ function createConsola(options = {}) {
2881
2871
  defaults: { level },
2882
2872
  stdout: process.stdout,
2883
2873
  stderr: process.stderr,
2884
- prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
2874
+ prompt: (...args) => import("./prompt-DYnaB1Nb.mjs").then((m) => m.prompt(...args)),
2885
2875
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2886
2876
  ...options
2887
2877
  });
@@ -1,5 +1,5 @@
1
- import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
2
- import { B as ParserOptions$1, I as MinifyOptions$1, K as TsconfigCache$1, L as MinifyResult$1, W as SourceMap, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult, z as ParseResult$1 } from "./binding-BAK1LNST.mjs";
1
+ import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
2
+ import { B as ParserOptions$1, I as MinifyOptions$1, K as TsconfigCache$1, L as MinifyResult$1, W as SourceMap, a as BindingEnhancedTransformOptions, b as BindingTsconfigResult, o as BindingEnhancedTransformResult, z as ParseResult$1 } from "./binding-DH6N8z26.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-ZOgiGt4C.mjs";
2
- import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-cmklTSap.mjs";
4
- import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BKTuWCJv.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-ChzJgXDI.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-CcS-e42X.mjs";
2
+ import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CI-2hKAx.mjs";
4
+ import { t as arraify } from "./misc-CoQm4NHO.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-Df-vz0Zv.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-Nb-nFm4f.mjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -1,9 +1,9 @@
1
- import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-BAK1LNST.mjs";
2
- import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-CbwKjzKh.mjs";
1
+ import { v as BindingTsconfigCompilerOptions, y as BindingTsconfigRawOptions } from "./shared/binding-DH6N8z26.mjs";
2
+ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as transformSync, l as ParseResult, n as TransformResult, o as MinifyResult, p as TsconfigCache, r as transform, s as minify, t as TransformOptions, u as ParserOptions } from "./shared/transform-DlM64_VL.mjs";
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-B1Xb1DP0.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-DUlqh4Wf.mjs";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-BCHv9CYb.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D1DmmGCN.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
6
6
  if (Array.isArray(node)) {
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.133.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollipop/rolldown",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",
@@ -53,8 +53,8 @@
53
53
  "registry": "https://registry.npmjs.org/"
54
54
  },
55
55
  "dependencies": {
56
- "@oxc-project/types": "=0.129.0",
57
- "@rollipop/rolldown-pluginutils": "1.0.8"
56
+ "@oxc-project/types": "=0.133.0",
57
+ "@rollipop/rolldown-pluginutils": "1.0.10"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@napi-rs/cli": "^3.6.1",
@@ -66,17 +66,17 @@
66
66
  "consola": "^3.4.2",
67
67
  "execa": "^9.2.0",
68
68
  "glob": "^13.0.0",
69
- "oxc-parser": "=0.129.0",
69
+ "oxc-parser": "=0.133.0",
70
70
  "pathe": "^2.0.3",
71
- "remeda": "^2.10.0",
71
+ "remeda": "^2.34.1",
72
72
  "rolldown": "1.0.0-rc.11",
73
- "rolldown-plugin-dts": "^0.23.0",
74
- "rollup": "^4.18.0",
73
+ "rolldown-plugin-dts": "^0.25.1",
74
+ "rollup": "^4.60.4",
75
75
  "signal-exit": "4.1.0",
76
76
  "source-map": "0.7.6",
77
77
  "typescript": "^6.0.0",
78
- "valibot": "1.3.1",
79
- "@rollipop/rolldown": "1.0.8"
78
+ "valibot": "1.4.0",
79
+ "@rollipop/rolldown": "1.0.10"
80
80
  },
81
81
  "napi": {
82
82
  "binaryName": "rolldown-binding",
@@ -89,22 +89,28 @@
89
89
  "x86_64-unknown-linux-musl",
90
90
  "aarch64-unknown-linux-gnu",
91
91
  "aarch64-apple-darwin",
92
- "aarch64-unknown-linux-musl",
93
- "aarch64-pc-windows-msvc"
94
- ]
92
+ "aarch64-unknown-linux-musl"
93
+ ],
94
+ "wasm": {
95
+ "initialMemory": 16384,
96
+ "browser": {
97
+ "fs": true,
98
+ "asyncInit": true,
99
+ "errorEvent": true
100
+ }
101
+ }
95
102
  },
96
103
  "engines": {
97
104
  "node": "^20.19.0 || >=22.12.0"
98
105
  },
99
106
  "optionalDependencies": {
100
- "@rollipop/rolldown-binding-darwin-x64": "1.0.8",
101
- "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.8",
102
- "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.8",
103
- "@rollipop/rolldown-binding-linux-x64-musl": "1.0.8",
104
- "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.8",
105
- "@rollipop/rolldown-binding-darwin-arm64": "1.0.8",
106
- "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.8",
107
- "@rollipop/rolldown-binding-win32-arm64-msvc": "1.0.8"
107
+ "@rollipop/rolldown-binding-darwin-x64": "1.0.10",
108
+ "@rollipop/rolldown-binding-win32-x64-msvc": "1.0.10",
109
+ "@rollipop/rolldown-binding-linux-x64-gnu": "1.0.10",
110
+ "@rollipop/rolldown-binding-linux-x64-musl": "1.0.10",
111
+ "@rollipop/rolldown-binding-linux-arm64-gnu": "1.0.10",
112
+ "@rollipop/rolldown-binding-darwin-arm64": "1.0.10",
113
+ "@rollipop/rolldown-binding-linux-arm64-musl": "1.0.10"
108
114
  },
109
115
  "scripts": {
110
116
  "# Scrips for binding #": "_",