@rolldown/browser 1.0.0 → 1.0.2

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 (50) 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/{constructors-BXVEHwHm.js → constructors-B3MtwuwE.js} +1 -1
  5. package/dist/{error-DMfKBGWU.js → error-u6fgq_tm.js} +1 -1
  6. package/dist/experimental-index.browser.mjs +8 -6
  7. package/dist/experimental-index.d.mts +21 -5
  8. package/dist/experimental-index.mjs +10 -8
  9. package/dist/filter-index.d.mts +3 -3
  10. package/dist/filter-index.mjs +3 -3
  11. package/dist/get-log-filter.d.mts +3 -3
  12. package/dist/index.browser.mjs +3 -3
  13. package/dist/index.d.mts +5 -5
  14. package/dist/index.mjs +4 -4
  15. package/dist/parallel-plugin-worker.mjs +1 -1
  16. package/dist/parallel-plugin.d.mts +2 -2
  17. package/dist/parse-ast-index.d.mts +1 -1
  18. package/dist/parse-ast-index.mjs +2 -2
  19. package/dist/plugins-index.browser.mjs +2 -2
  20. package/dist/plugins-index.d.mts +3 -3
  21. package/dist/plugins-index.mjs +2 -2
  22. package/dist/{resolve-tsconfig-eqfrsvjc.js → resolve-tsconfig-DDQjQ68j.js} +1 -1
  23. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  24. package/dist/{rolldown-build-CKS7EawU.js → rolldown-build-D3Q68dCD.js} +48 -70
  25. package/dist/shared/{bindingify-input-options-CboGFdC4.mjs → bindingify-input-options-Dh93Higz.mjs} +10 -10
  26. package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-BcLvc0mh.mjs} +2 -2
  27. package/dist/shared/{constructors-B1JYJxhf.d.mts → constructors-DbOoVFJG.d.mts} +2 -2
  28. package/dist/shared/{constructors-DO36gIcC.mjs → constructors-YQsI-lJq.mjs} +1 -1
  29. package/dist/shared/{define-config-Bah0mfyR.d.mts → define-config-CgQHLEzf.d.mts} +68 -16
  30. package/dist/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
  31. package/dist/shared/{load-config-BwBgui4p.mjs → load-config-CYjpnIlH.mjs} +1 -1
  32. package/dist/shared/{normalize-string-or-regex-Dq6w-2tU.mjs → normalize-string-or-regex-CHVaSqeF.mjs} +1 -1
  33. package/dist/shared/{parse-Lc1YQk0q.mjs → parse-Vf7R2RjR.mjs} +1 -1
  34. package/dist/shared/{resolve-tsconfig-Cwoo4h_o.mjs → resolve-tsconfig-D8Galy_A.mjs} +1 -1
  35. package/dist/shared/{rolldown-WowDTCZP.mjs → rolldown-BFjamCgT.mjs} +1 -1
  36. package/dist/shared/{rolldown-build-DIb-iqkO.mjs → rolldown-build-BodFrzFa.mjs} +41 -62
  37. package/dist/shared/{transform-kP3ISMFT.d.mts → transform-DEcsn5bq.d.mts} +2 -2
  38. package/dist/shared/{utils-KRVeJqya.d.mts → utils-CA_QYuaU.d.mts} +1 -1
  39. package/dist/shared/{watch-B81_EvN-.mjs → watch-Dt8HdCIN.mjs} +5 -5
  40. package/dist/utils-index.browser.mjs +5 -5
  41. package/dist/utils-index.d.mts +3 -3
  42. package/dist/utils-index.mjs +5 -5
  43. package/package.json +1 -1
  44. /package/dist/{normalize-string-or-regex-CBPw_c5O.js → normalize-string-or-regex-A9UIvc9j.js} +0 -0
  45. /package/dist/shared/{binding-CaVxb0SV.d.mts → binding-Ba2kzvIy.d.mts} +0 -0
  46. /package/dist/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
  47. /package/dist/shared/{error-CQ6njWsV.mjs → error-B5cMIevi.mjs} +0 -0
  48. /package/dist/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
  49. /package/dist/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
  50. /package/dist/shared/{prompt-U5ajztzG.mjs → prompt-DewH0PjV.mjs} +0 -0
@@ -1,8 +1,8 @@
1
- import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
2
- import { n as BuiltinPlugin } from "./normalize-string-or-regex-Dq6w-2tU.mjs";
3
- 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-CboGFdC4.mjs";
4
- import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
5
- import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
1
+ import { i as logInputHookInOutputPlugin, n as error } from "./logs-aMKUxRpj.mjs";
2
+ import { n as BuiltinPlugin } from "./normalize-string-or-regex-CHVaSqeF.mjs";
3
+ 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-Dh93Higz.mjs";
4
+ import { v as unimplemented } from "./composable-filters-BcLvc0mh.mjs";
5
+ import { i as unwrapBindingResult } from "./error-B5cMIevi.mjs";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import { BindingBundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
8
8
  import path, { sep } from "node:path";
@@ -210,9 +210,12 @@ function getSortedPlugins(hookName, plugins) {
210
210
  ...post
211
211
  ];
212
212
  }
213
- //#endregion
214
- //#region ../../node_modules/.pnpm/valibot@1.3.1_typescript@6.0.3/node_modules/valibot/dist/index.mjs
215
- let store$4;
213
+ const DEFAULT_CONFIG = {
214
+ lang: void 0,
215
+ message: void 0,
216
+ abortEarly: void 0,
217
+ abortPipeEarly: void 0
218
+ };
216
219
  /**
217
220
  * Returns the global configuration.
218
221
  *
@@ -222,50 +225,14 @@ let store$4;
222
225
  */
223
226
  /* @__NO_SIDE_EFFECTS__ */
224
227
  function getGlobalConfig(config$1) {
228
+ if (!config$1 && true) return DEFAULT_CONFIG;
225
229
  return {
226
- lang: config$1?.lang ?? store$4?.lang,
230
+ lang: config$1?.lang ?? void 0,
227
231
  message: config$1?.message,
228
- abortEarly: config$1?.abortEarly ?? store$4?.abortEarly,
229
- abortPipeEarly: config$1?.abortPipeEarly ?? store$4?.abortPipeEarly
232
+ abortEarly: config$1?.abortEarly ?? void 0,
233
+ abortPipeEarly: config$1?.abortPipeEarly ?? void 0
230
234
  };
231
235
  }
232
- let store$3;
233
- /**
234
- * Returns a global error message.
235
- *
236
- * @param lang The language of the message.
237
- *
238
- * @returns The error message.
239
- */
240
- /* @__NO_SIDE_EFFECTS__ */
241
- function getGlobalMessage(lang) {
242
- return store$3?.get(lang);
243
- }
244
- let store$2;
245
- /**
246
- * Returns a schema error message.
247
- *
248
- * @param lang The language of the message.
249
- *
250
- * @returns The error message.
251
- */
252
- /* @__NO_SIDE_EFFECTS__ */
253
- function getSchemaMessage(lang) {
254
- return store$2?.get(lang);
255
- }
256
- let store$1;
257
- /**
258
- * Returns a specific error message.
259
- *
260
- * @param reference The identifier reference.
261
- * @param lang The language of the message.
262
- *
263
- * @returns The error message.
264
- */
265
- /* @__NO_SIDE_EFFECTS__ */
266
- function getSpecificMessage(reference, lang) {
267
- return store$1?.get(reference)?.get(lang);
268
- }
269
236
  /**
270
237
  * Stringifies an unknown input to a literal or type string.
271
238
  *
@@ -313,12 +280,13 @@ function _addIssue(context, label, dataset, config$1, other) {
313
280
  abortPipeEarly: config$1.abortPipeEarly
314
281
  };
315
282
  const isSchema = context.kind === "schema";
316
- 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);
283
+ 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);
317
284
  if (message$1 !== void 0) issue.message = typeof message$1 === "function" ? message$1(issue) : message$1;
318
285
  if (isSchema) dataset.typed = false;
319
286
  if (dataset.issues) dataset.issues.push(issue);
320
287
  else dataset.issues = [issue];
321
288
  }
289
+ const _standardCache = /* @__PURE__ */ new WeakMap();
322
290
  /**
323
291
  * Returns the Standard Schema properties.
324
292
  *
@@ -328,13 +296,18 @@ function _addIssue(context, label, dataset, config$1, other) {
328
296
  */
329
297
  /* @__NO_SIDE_EFFECTS__ */
330
298
  function _getStandardProps(context) {
331
- return {
332
- version: 1,
333
- vendor: "valibot",
334
- validate(value$1) {
335
- return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
336
- }
337
- };
299
+ let cached = _standardCache.get(context);
300
+ if (!cached) {
301
+ cached = {
302
+ version: 1,
303
+ vendor: "valibot",
304
+ validate(value$1) {
305
+ return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
306
+ }
307
+ };
308
+ _standardCache.set(context, cached);
309
+ }
310
+ return cached;
338
311
  }
339
312
  /**
340
313
  * Disallows inherited object properties and prevents object prototype
@@ -349,7 +322,7 @@ function _getStandardProps(context) {
349
322
  */
350
323
  /* @__NO_SIDE_EFFECTS__ */
351
324
  function _isValidObjectKey(object$1, key) {
352
- return Object.hasOwn(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
325
+ return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
353
326
  }
354
327
  /**
355
328
  * Joins multiple `expects` values with the given separator.
@@ -473,6 +446,7 @@ function returnsAsync(schema) {
473
446
  }
474
447
  };
475
448
  }
449
+ const ABORT_EARLY_CONFIG = { abortEarly: true };
476
450
  /**
477
451
  * Returns the fallback value of the schema.
478
452
  *
@@ -510,7 +484,7 @@ function getDefault(schema, dataset, config$1) {
510
484
  */
511
485
  /* @__NO_SIDE_EFFECTS__ */
512
486
  function is(schema, input) {
513
- return !schema["~run"]({ value: input }, { abortEarly: true }).issues;
487
+ return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
514
488
  }
515
489
  /**
516
490
  * Creates an any schema.
@@ -1122,7 +1096,7 @@ function undefined_(message$1) {
1122
1096
  /* @__NO_SIDE_EFFECTS__ */
1123
1097
  function _subIssues(datasets) {
1124
1098
  let issues;
1125
- if (datasets) for (const dataset of datasets) if (issues) issues.push(...dataset.issues);
1099
+ if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
1126
1100
  else issues = dataset.issues;
1127
1101
  return issues;
1128
1102
  }
@@ -1520,6 +1494,7 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1520
1494
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
1521
1495
  missingGlobalName: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.globals` option is missing when needed")),
1522
1496
  missingNameOptionForIifeExport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the `output.name` option is missing when needed")),
1497
+ 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")),
1523
1498
  mixedExports: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when the way to export values is ambiguous")),
1524
1499
  unresolvedEntry: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an entrypoint cannot be resolved")),
1525
1500
  unresolvedImport: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when an import cannot be resolved")),
@@ -1535,7 +1510,8 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1535
1510
  pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
1536
1511
  duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
1537
1512
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1538
- 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"))
1513
+ 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")),
1514
+ 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)"))
1539
1515
  });
1540
1516
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1541
1517
  compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
@@ -1653,7 +1629,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1653
1629
  onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1654
1630
  incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1655
1631
  nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1656
- chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1632
+ chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1633
+ mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1634
+ avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1635
+ })])),
1657
1636
  lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1658
1637
  })),
1659
1638
  transform: /* @__PURE__ */ optional(TransformOptionsSchema),
@@ -2877,7 +2856,7 @@ function createConsola(options = {}) {
2877
2856
  defaults: { level },
2878
2857
  stdout: process.stdout,
2879
2858
  stderr: process.stderr,
2880
- prompt: (...args) => import("./prompt-U5ajztzG.mjs").then((m) => m.prompt(...args)),
2859
+ prompt: (...args) => import("./prompt-DewH0PjV.mjs").then((m) => m.prompt(...args)),
2881
2860
  reporters: options.reporters || [options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
2882
2861
  ...options
2883
2862
  });
@@ -1,5 +1,5 @@
1
- import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-CaVxb0SV.mjs";
2
- import { a as RolldownLog } from "./logging-C6h4g8dA.mjs";
1
+ import { F as MinifyResult$1, H as SourceMap, L as ParseResult$1, P as MinifyOptions$1, R as ParserOptions$1, W as TsconfigCache$1, a as BindingEnhancedTransformOptions, o as BindingEnhancedTransformResult, v as BindingTsconfigResult } from "./binding-Ba2kzvIy.mjs";
2
+ import { a as RolldownLog } from "./logging-BSNejiLS.mjs";
3
3
 
4
4
  //#region src/utils/resolve-tsconfig.d.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { t as BindingBuiltinPluginName } from "./binding-CaVxb0SV.mjs";
1
+ import { t as BindingBuiltinPluginName } from "./binding-Ba2kzvIy.mjs";
2
2
 
3
3
  //#region src/types/utils.d.ts
4
4
  type MaybePromise<T> = T | Promise<T>;
@@ -1,8 +1,8 @@
1
- import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
2
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CboGFdC4.mjs";
3
- import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
4
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DIb-iqkO.mjs";
5
- import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.mjs";
1
+ import { o as logMultipleWatcherOption } from "./logs-aMKUxRpj.mjs";
2
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-Dh93Higz.mjs";
3
+ import { h as arraify } from "./composable-filters-BcLvc0mh.mjs";
4
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-BodFrzFa.mjs";
5
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-B5cMIevi.mjs";
6
6
  import { BindingWatcher, shutdownAsyncRuntime } from "../rolldown-binding.wasi.cjs";
7
7
  //#region ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
@@ -1,6 +1,6 @@
1
- import { a as parse, o as parseSync } from "./error-DMfKBGWU.js";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-eqfrsvjc.js";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { a as parse, o as parseSync } from "./error-u6fgq_tm.js";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-DDQjQ68j.js";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.132.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.132.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.132.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
@@ -1,7 +1,7 @@
1
- import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-CaVxb0SV.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-kP3ISMFT.mjs";
1
+ import { $ as AssignmentPattern, $n as TSInferType, $r as UpdateExpression, $t as JSXMemberExpression, An as SwitchStatement, Ar as TSTupleType, At as ForStatement, Bn as TSConstructorType, Br as TSTypeQuery, Bt as ImportNamespaceSpecifier, Cn as ReturnStatement, Cr as TSRestType, Ct as ExportAllDeclaration, Dn as StringLiteral, Dr as TSTemplateLiteralType, Dt as ExpressionStatement, En as StaticBlock, Er as TSSymbolKeyword, Et as ExportSpecifier, Fn as TSBooleanKeyword, Fr as TSTypeOperator, Ft as IfStatement, Gn as TSExternalModuleReference, Gr as TSVoidKeyword, Gt as JSXAttribute, Hn as TSEnumDeclaration, Hr as TSUndefinedKeyword, Ht as JSDocNonNullableType, In as TSCallSignatureDeclaration, Ir as TSTypeParameter, It as ImportAttribute, J as AccessorProperty, Jn as TSImportEqualsDeclaration, Jr as TemplateLiteral, Jt as JSXElement, Kn as TSFunctionType, Kr as TaggedTemplateExpression, Kt as JSXClosingElement, Ln as TSClassImplements, Lr as TSTypeParameterDeclaration, Lt as ImportDeclaration, Mn as TSArrayType, Mr as TSTypeAnnotation, Mt as Function, Nn as TSAsExpression, Nr as TSTypeAssertion, Nt as IdentifierName, On as Super, Or as TSThisParameter, Ot as ForInStatement, Pn as TSBigIntKeyword, Pr as TSTypeLiteral, Pt as IdentifierReference, Q as AssignmentExpression, Qn as TSIndexedAccessType, Qr as UnaryExpression, Qt as JSXIdentifier, Rn as TSConditionalType, Rr as TSTypeParameterInstantiation, Rt as ImportDefaultSpecifier, Sn as RegExpLiteral, Sr as TSQualifiedName, St as EmptyStatement, Tn as SpreadElement, Tr as TSStringKeyword, Tt as ExportNamedDeclaration, Un as TSEnumMember, Ur as TSUnionType, Ut as JSDocNullableType, Vn as TSEnumBody, Vr as TSTypeReference, Vt as ImportSpecifier, Wn as TSExportAssignment, Wr as TSUnknownKeyword, Wt as JSDocUnknownType, X as ArrayPattern, Xn as TSIndexSignature, Xr as ThrowStatement, Xt as JSXExpressionContainer, Y as ArrayExpression, Yn as TSImportType, Yr as ThisExpression, Yt as JSXEmptyExpression, Z as ArrowFunctionExpression, Zn as TSIndexSignatureName, Zr as TryStatement, Zt as JSXFragment, _ as BindingTsconfigRawOptions, _n as ObjectProperty, _r as TSObjectKeyword, _t as ConditionalExpression, ai as YieldExpression, an as JSXText, ar as TSIntrinsicKeyword, at as BinaryExpression, bn as Program, br as TSParenthesizedType, bt as Decorator, cn as LogicalExpression, cr as TSMethodSignature, ct as BindingRestElement, dn as MethodDefinition, dr as TSNamedTupleMember, dt as BreakStatement, ei as V8IntrinsicExpression, en as JSXNamespacedName, er as TSInstantiationExpression, et as AssignmentTargetProperty, fn as NewExpression, fr as TSNamespaceExportDeclaration, ft as CallExpression, g as BindingTsconfigCompilerOptions, gn as ObjectPattern, gr as TSNumberKeyword, gt as ClassBody, hn as ObjectExpression, hr as TSNullKeyword, ht as Class, ii as WithStatement, in as JSXSpreadChild, ir as TSIntersectionType, it as BigIntLiteral, jn as TSAnyKeyword, jr as TSTypeAliasDeclaration, jt as FormalParameterRest, kn as SwitchCase, kr as TSThisType, kt as ForOfStatement, ln as MemberExpression, lr as TSModuleBlock, lt as BlockStatement, mn as NumericLiteral, mr as TSNonNullExpression, mt as ChainExpression, ni as VariableDeclarator, nn as JSXOpeningFragment, nr as TSInterfaceDeclaration, nt as AssignmentTargetRest, oi as types_d_exports, on as LabelIdentifier, or as TSLiteralType, ot as BindingIdentifier, pn as NullLiteral, pr as TSNeverKeyword, pt as CatchClause, qn as TSGlobalDeclaration, qr as TemplateElement, qt as JSXClosingFragment, ri as WhileStatement, rn as JSXSpreadAttribute, rr as TSInterfaceHeritage, rt as AwaitExpression, sn as LabeledStatement, sr as TSMappedType, st as BindingProperty, ti as VariableDeclaration, tn as JSXOpeningElement, tr as TSInterfaceBody, tt as AssignmentTargetPropertyProperty, un as MetaProperty, ur as TSModuleDeclaration, ut as BooleanLiteral, vn as ParenthesizedExpression, vr as TSOptionalType, vt as ContinueStatement, wn as SequenceExpression, wr as TSSatisfiesExpression, wt as ExportDefaultDeclaration, xn as PropertyDefinition, xr as TSPropertySignature, xt as DoWhileStatement, yn as PrivateIdentifier, yr as TSParameterProperty, yt as DebuggerStatement, zn as TSConstructSignatureDeclaration, zr as TSTypePredicate, zt as ImportExpression } from "./shared/binding-Ba2kzvIy.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-DEcsn5bq.mjs";
3
3
 
4
- //#region ../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
4
+ //#region ../../node_modules/.pnpm/oxc-parser@0.132.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
5
5
  interface VisitorObject$1 {
6
6
  DebuggerStatement?: (node: DebuggerStatement) => void;
7
7
  "DebuggerStatement:exit"?: (node: DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-Lc1YQk0q.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-Cwoo4h_o.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-Vf7R2RjR.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-D8Galy_A.mjs";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.132.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.132.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.132.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": "@rolldown/browser",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",