@rolldown/browser 1.0.0-rc.17 → 1.0.0-rc.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-DGUCNeAO.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-CAamVRUH.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-CaH0VzA9.mjs";
2
+ import { C as version, S as description } from "./shared/bindingify-input-options-CwgInDkH.mjs";
3
3
  import { h as arraify } from "./shared/composable-filters-B2ByPP8y.mjs";
4
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-D3SzYm67.mjs";
5
- import { t as rolldown } from "./shared/rolldown-BHRUKOuQ.mjs";
6
- import { t as loadConfig } from "./shared/load-config-CHcdd_88.mjs";
4
+ import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-DTZNpSde.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-QMNic12I.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-53AVxtku.mjs";
7
7
  import path from "node:path";
8
8
  import process$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -847,7 +847,7 @@ function getClearScreenFunction(options) {
847
847
  };
848
848
  }
849
849
  //#endregion
850
- //#region \0@oxc-project+runtime@0.127.0/helpers/usingCtx.js
850
+ //#region \0@oxc-project+runtime@0.128.0/helpers/usingCtx.js
851
851
  function _usingCtx() {
852
852
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
853
853
  var n = Error();
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { x as VERSION } from "./shared/bindingify-input-options-CAamVRUH.mjs";
1
+ import { x as VERSION } from "./shared/bindingify-input-options-CwgInDkH.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
3
- import { t as loadConfig } from "./shared/load-config-CHcdd_88.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-53AVxtku.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -14,7 +14,7 @@ function bindingifySourcemap(map) {
14
14
  } };
15
15
  }
16
16
  //#endregion
17
- //#region ../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/wrap.js
17
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.0/node_modules/oxc-parser/src-js/wrap.js
18
18
  function wrap(result) {
19
19
  let program, module, comments, errors;
20
20
  return {
@@ -1,8 +1,8 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./normalize-string-or-regex-Db8ibFkp.js";
2
- import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-BaQhCalv.js";
3
- import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-Dh25MMQy.js";
2
+ import { a as validateOption, i as transformToRollupOutput, n as createBundlerOptions, o as PluginDriver, t as RolldownBuild } from "./rolldown-build-D0tGZ7Ho.js";
3
+ import { a as parse$2, i as unwrapBindingResult, o as parseSync$2, r as normalizeBindingResult } from "./error-Wb6U5UzX.js";
4
4
  import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./constructors-LtcP0f-6.js";
5
- import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-D9b_5AH9.js";
5
+ import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./resolve-tsconfig-D81WVTGZ.js";
6
6
  import * as binding from "./rolldown-binding.wasi-browser.js";
7
7
  import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
8
8
  //#region src/api/dev/dev-engine.ts
@@ -1,8 +1,8 @@
1
1
  import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-D0o84ejN.mjs";
2
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CAamVRUH.mjs";
3
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-D3SzYm67.mjs";
2
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CwgInDkH.mjs";
3
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-DTZNpSde.mjs";
4
4
  import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-CQ6njWsV.mjs";
5
- import { n as parseSync$2, t as parse$2 } from "./shared/parse-CEVlGaMp.mjs";
5
+ import { n as parseSync$2, t as parse$2 } from "./shared/parse-CSnBnIDb.mjs";
6
6
  import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, m as viteWebWorkerPostPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWasmFallbackPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BGLoUvKR.mjs";
7
7
  import { a as minify$2, i as transformSync$1, n as resolveTsconfig, o as minifySync$2, r as transform$1, t as TsconfigCache$2 } from "./shared/resolve-tsconfig-Cwoo4h_o.mjs";
8
8
  import { BindingBundler, BindingDevEngine, BindingRebuildStrategy, BindingRebuildStrategy as BindingRebuildStrategy$1, ResolverFactory, isolatedDeclaration, isolatedDeclarationSync, moduleRunnerTransform, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi.cjs";
@@ -40,21 +40,30 @@ export class DevRuntime {
40
40
  /**
41
41
  * __esmMin
42
42
  *
43
- * @type {<T>(fn: any, res: T) => () => T}
43
+ * When `dedup` is truthy and `id` is already registered on the runtime,
44
+ * skip the factory: another lazy blob got there first. HMR patches pass
45
+ * no `dedup` so they always re-run the factory and replace the registered
46
+ * exports.
47
+ *
48
+ * @type {<T>(id: string, fn: any, dedup: any, res: T) => () => T}
44
49
  * @internal
45
50
  */
46
- createEsmInitializer: <T>(fn: any, res: T) => () => T;
51
+ createEsmInitializer: <T>(id: string, fn: any, dedup: any, res: T) => () => T;
47
52
  /**
48
53
  * __commonJSMin
49
54
  *
50
- * @type {<T extends { exports: any }>(cb: any, mod: { exports: any }) => () => T}
55
+ * Same dedup gate as createEsmInitializer. With `dedup` truthy and `id`
56
+ * registered, reuse the registered exports object; otherwise run the
57
+ * factory.
58
+ *
59
+ * @type {<T extends { exports: any }>(id: string, cb: any, dedup: any, mod: { exports: any }, registered: any) => () => T}
51
60
  * @internal
52
61
  */
53
62
  createCjsInitializer: <T extends {
54
63
  exports: any;
55
- }>(cb: any, mod: {
64
+ }>(id: string, cb: any, dedup: any, mod: {
56
65
  exports: any;
57
- }) => () => T;
66
+ }, registered: any) => () => T;
58
67
  /** @internal */
59
68
  __toESM: any;
60
69
  /** @internal */
@@ -1,6 +1,6 @@
1
1
  import { d as logMultipleWatcherOption } from "./normalize-string-or-regex-Db8ibFkp.js";
2
- import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-BaQhCalv.js";
3
- import { t as aggregateBindingErrorsIntoJsError } from "./error-Dh25MMQy.js";
2
+ import { a as validateOption, c as arraify, l as RUNTIME_MODULE_ID, n as createBundlerOptions, o as PluginDriver, r as RolldownMagicString, s as LOG_LEVEL_WARN, t as RolldownBuild, u as VERSION } from "./rolldown-build-D0tGZ7Ho.js";
3
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-Wb6U5UzX.js";
4
4
  import { BindingWatcher, shutdownAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
5
5
  //#region src/api/rolldown/index.ts
6
6
  /**
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { n as onExit, t as watch } from "./shared/watch-DGUCNeAO.mjs";
2
- import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CAamVRUH.mjs";
3
- import { t as rolldown } from "./shared/rolldown-BHRUKOuQ.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-CaH0VzA9.mjs";
2
+ import { a as RolldownMagicString, b as RUNTIME_MODULE_ID, x as VERSION } from "./shared/bindingify-input-options-CwgInDkH.mjs";
3
+ import { t as rolldown } from "./shared/rolldown-QMNic12I.mjs";
4
4
  import { t as defineConfig } from "./shared/define-config-DJOr6Iwt.mjs";
5
5
  import { isMainThread } from "node:worker_threads";
6
6
  import { initTraceSubscriber } from "./rolldown-binding.wasi.cjs";
@@ -1,4 +1,4 @@
1
- import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CAamVRUH.mjs";
1
+ import { n as PluginContextData, r as bindingifyPlugin } from "./shared/bindingify-input-options-CwgInDkH.mjs";
2
2
  import { parentPort, workerData } from "node:worker_threads";
3
3
  import { registerPlugins } from "./rolldown-binding.wasi.cjs";
4
4
  //#region src/parallel-plugin-worker.ts
@@ -1,5 +1,5 @@
1
1
  import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-D80CXhvg.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-CEVlGaMp.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-CSnBnIDb.mjs";
3
3
  //#region src/parse-ast-index.ts
4
4
  function wrap(result, filename, sourceText) {
5
5
  if (result.errors.length > 0) return normalizeParseError(filename, sourceText, result.errors);
@@ -1,4 +1,4 @@
1
- import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-Dh25MMQy.js";
1
+ import { n as normalizeBindingError, s as bindingifySourcemap } from "./error-Wb6U5UzX.js";
2
2
  import { TsconfigCache, collapseSourcemaps, enhancedTransform, enhancedTransformSync, minify, minifySync, resolveTsconfig } from "./rolldown-binding.wasi-browser.js";
3
3
  //#region src/utils/minify.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { c as logCycleLoading, f as logNoFileSystemInBrowser, g as getCodeFrame, h as locate, i as bindingifyManifestPlugin, l as logInputHookInOutputPlugin, m as logPluginError, n as BuiltinPlugin, o as augmentCodeLocation, p as logParseError, r as bindingifyBuiltInPlugin, s as error, t as normalizedStringOrRegex, u as logInvalidLogPosition } from "./normalize-string-or-regex-Db8ibFkp.js";
2
- import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-Dh25MMQy.js";
2
+ import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-Wb6U5UzX.js";
3
3
  import { BindingAttachDebugInfo, BindingBundler, BindingChunkModuleOrderBy, BindingLogLevel, BindingMagicString, BindingPluginOrder, BindingPropertyReadSideEffects, BindingPropertyWriteSideEffects, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
4
4
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
5
5
  let _lazyMatch = () => {
@@ -454,7 +454,7 @@ const win32 = /* @__PURE__ */ mix(";");
454
454
  *
455
455
  * @category Plugin APIs
456
456
  */
457
- const VERSION = "1.0.0-rc.17";
457
+ const VERSION = "1.0.0-rc.18";
458
458
  //#endregion
459
459
  //#region src/constants/index.ts
460
460
  /**
@@ -1839,9 +1839,7 @@ function styleText(...args) {
1839
1839
  }
1840
1840
  //#endregion
1841
1841
  //#region src/utils/validator.ts
1842
- function isTypeTrue() {}
1843
1842
  const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1844
- isTypeTrue();
1845
1843
  function vFunction() {
1846
1844
  return /* @__PURE__ */ function_();
1847
1845
  }
@@ -1850,32 +1848,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
1850
1848
  /* @__PURE__ */ literal("info"),
1851
1849
  /* @__PURE__ */ literal("warn")
1852
1850
  ]);
1853
- isTypeTrue();
1854
1851
  const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1855
- isTypeTrue();
1856
1852
  const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1857
- isTypeTrue();
1858
1853
  const RollupLogSchema = /* @__PURE__ */ any();
1859
1854
  const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1860
- isTypeTrue();
1861
1855
  const InputOptionSchema = /* @__PURE__ */ union([
1862
1856
  /* @__PURE__ */ string(),
1863
1857
  /* @__PURE__ */ array(/* @__PURE__ */ string()),
1864
1858
  /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1865
1859
  ]);
1866
- isTypeTrue();
1867
1860
  const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1868
1861
  /* @__PURE__ */ string(),
1869
1862
  /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1870
1863
  /* @__PURE__ */ boolean()
1871
1864
  ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1872
- isTypeTrue();
1873
1865
  const ExternalOptionSchema = /* @__PURE__ */ union([
1874
1866
  StringOrRegExpSchema,
1875
1867
  /* @__PURE__ */ array(StringOrRegExpSchema),
1876
1868
  ExternalOptionFunctionSchema
1877
1869
  ]);
1878
- isTypeTrue();
1879
1870
  const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1880
1871
  /* @__PURE__ */ literal("asset"),
1881
1872
  /* @__PURE__ */ literal("base64"),
@@ -1891,78 +1882,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
1891
1882
  /* @__PURE__ */ literal("ts"),
1892
1883
  /* @__PURE__ */ literal("tsx")
1893
1884
  ]));
1894
- isTypeTrue();
1895
- const JsxOptionsSchema = /* @__PURE__ */ strictObject({
1896
- runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1897
- development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1898
- throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1899
- pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1900
- importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1901
- pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1902
- pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1903
- refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1904
- });
1905
- isTypeTrue();
1906
- const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
1907
- const DecoratorOptionSchema = /* @__PURE__ */ object({
1908
- legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1909
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1910
- });
1911
- isTypeTrue();
1912
- const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
1913
- isTypeTrue();
1914
- const TypescriptSchema = /* @__PURE__ */ object({
1915
- jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1916
- jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1917
- onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1918
- allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1919
- allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1920
- removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1921
- optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1922
- optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1923
- declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1924
- stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1925
- sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1926
- })),
1927
- rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1928
- /* @__PURE__ */ literal("rewrite"),
1929
- /* @__PURE__ */ literal("remove"),
1930
- /* @__PURE__ */ boolean()
1931
- ]))
1932
- });
1933
- isTypeTrue();
1934
- const AssumptionsSchema = /* @__PURE__ */ object({
1935
- ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1936
- noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1937
- objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1938
- pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1939
- setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1940
- });
1941
- isTypeTrue();
1942
- const TransformPluginsSchema = /* @__PURE__ */ object({
1943
- styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1944
- taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1945
- });
1946
- isTypeTrue();
1947
1885
  const TransformOptionsSchema = /* @__PURE__ */ object({
1948
- assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1949
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1950
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1951
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1886
+ assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1887
+ ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1888
+ noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1889
+ objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1890
+ pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1891
+ setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1892
+ })),
1893
+ typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1894
+ jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1895
+ jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1896
+ onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1897
+ allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1898
+ allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1899
+ removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1900
+ optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1901
+ optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1902
+ declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1903
+ stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1904
+ sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1905
+ })),
1906
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1907
+ /* @__PURE__ */ literal("rewrite"),
1908
+ /* @__PURE__ */ literal("remove"),
1909
+ /* @__PURE__ */ boolean()
1910
+ ]))
1911
+ })),
1912
+ helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1913
+ decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1914
+ legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1915
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1916
+ })),
1952
1917
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1953
1918
  /* @__PURE__ */ literal(false),
1954
1919
  /* @__PURE__ */ literal("preserve"),
1955
1920
  /* @__PURE__ */ literal("react"),
1956
1921
  /* @__PURE__ */ literal("react-jsx"),
1957
- JsxOptionsSchema
1922
+ /* @__PURE__ */ strictObject({
1923
+ runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1924
+ development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1925
+ throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1926
+ pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1927
+ importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1928
+ pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1929
+ pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1930
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1931
+ })
1958
1932
  ])),
1959
1933
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1960
1934
  define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1961
1935
  inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
1962
1936
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1963
- plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
1937
+ plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1938
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1939
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1940
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1964
1941
  });
1965
- isTypeTrue();
1966
1942
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1967
1943
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1968
1944
  pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
@@ -1982,7 +1958,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1982
1958
  clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1983
1959
  onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
1984
1960
  });
1985
- isTypeTrue();
1986
1961
  const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1987
1962
  circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1988
1963
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
@@ -2005,53 +1980,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
2005
1980
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
2006
1981
  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"))
2007
1982
  });
2008
- isTypeTrue();
2009
- const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
2010
- function: /* @__PURE__ */ boolean(),
2011
- class: /* @__PURE__ */ boolean()
2012
- });
2013
- isTypeTrue();
2014
- const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
2015
- annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2016
- manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2017
- propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
2018
- propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2019
- unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2020
- invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2021
- });
2022
- isTypeTrue();
2023
- const CompressOptionsSchema = /* @__PURE__ */ strictObject({
2024
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
2025
- dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2026
- dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2027
- keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
2028
- unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
2029
- joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2030
- sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2031
- dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2032
- maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2033
- treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
2034
- });
2035
- isTypeTrue();
2036
- const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
2037
- function: /* @__PURE__ */ boolean(),
2038
- class: /* @__PURE__ */ boolean()
2039
- });
2040
- isTypeTrue();
2041
- const MangleOptionsSchema = /* @__PURE__ */ strictObject({
2042
- toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2043
- keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
2044
- debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2045
- });
2046
- isTypeTrue();
2047
- const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
2048
- isTypeTrue();
2049
1983
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
2050
- compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CompressOptionsSchema])),
2051
- mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsSchema])),
2052
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CodegenOptionsSchema]))
1984
+ compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1985
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1986
+ dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1987
+ dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1988
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1989
+ function: /* @__PURE__ */ boolean(),
1990
+ class: /* @__PURE__ */ boolean()
1991
+ })),
1992
+ unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1993
+ joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1994
+ sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1995
+ dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1996
+ maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1997
+ treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1998
+ annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1999
+ manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2000
+ propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
2001
+ propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2002
+ unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2003
+ invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2004
+ }))
2005
+ })])),
2006
+ mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2007
+ toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2008
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2009
+ function: /* @__PURE__ */ boolean(),
2010
+ class: /* @__PURE__ */ boolean()
2011
+ })])),
2012
+ debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2013
+ })])),
2014
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
2053
2015
  });
2054
- isTypeTrue();
2055
2016
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
2056
2017
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
2057
2018
  /* @__PURE__ */ literal(false),
@@ -2069,7 +2030,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
2069
2030
  symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2070
2031
  tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
2071
2032
  });
2072
- isTypeTrue();
2073
2033
  const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
2074
2034
  moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
2075
2035
  annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -2080,7 +2040,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
2080
2040
  propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
2081
2041
  propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
2082
2042
  });
2083
- isTypeTrue();
2084
2043
  const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
2085
2044
  inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2086
2045
  mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
@@ -2088,24 +2047,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
2088
2047
  })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
2089
2048
  pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
2090
2049
  });
2091
- isTypeTrue();
2092
2050
  const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
2093
- isTypeTrue();
2094
2051
  const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
2095
2052
  LogLevelSchema,
2096
2053
  RollupLogSchema,
2097
2054
  LogOrStringHandlerSchema
2098
2055
  ])));
2099
- isTypeTrue();
2100
2056
  const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
2101
- isTypeTrue();
2102
2057
  const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2103
2058
  port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2104
2059
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
2105
2060
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
2106
2061
  lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2107
2062
  })]);
2108
- isTypeTrue();
2109
2063
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
2110
2064
  input: /* @__PURE__ */ optional(InputOptionSchema),
2111
2065
  plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
@@ -2158,7 +2112,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
2158
2112
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
2159
2113
  tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
2160
2114
  });
2161
- isTypeTrue();
2162
2115
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
2163
2116
  input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
2164
2117
  external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -2187,32 +2140,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
2187
2140
  /* @__PURE__ */ literal("iife"),
2188
2141
  /* @__PURE__ */ literal("umd")
2189
2142
  ]);
2190
- isTypeTrue();
2191
2143
  const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
2192
- isTypeTrue();
2193
2144
  const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2194
- isTypeTrue();
2195
2145
  const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
2196
2146
  const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2197
- isTypeTrue();
2198
2147
  const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
2199
2148
  const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2200
- isTypeTrue();
2201
2149
  const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
2202
2150
  const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2203
- isTypeTrue();
2204
2151
  const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2205
- isTypeTrue();
2206
2152
  const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
2207
- isTypeTrue();
2208
2153
  const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
2209
- isTypeTrue();
2210
2154
  const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
2211
2155
  /* @__PURE__ */ boolean(),
2212
2156
  /* @__PURE__ */ void_(),
2213
2157
  /* @__PURE__ */ undefined_()
2214
2158
  ])));
2215
- isTypeTrue();
2216
2159
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
2217
2160
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2218
2161
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -2234,15 +2177,11 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
2234
2177
  tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
2235
2178
  })))
2236
2179
  });
2237
- isTypeTrue();
2238
- const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
2239
- isTypeTrue();
2240
2180
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
2241
2181
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
2242
- preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
2182
+ preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
2243
2183
  profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
2244
2184
  });
2245
- isTypeTrue();
2246
2185
  const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2247
2186
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
2248
2187
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
@@ -2318,7 +2257,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2318
2257
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
2319
2258
  strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
2320
2259
  });
2321
- isTypeTrue();
2322
2260
  const getAddonDescription = (placement, wrapper) => {
2323
2261
  return `Code to insert the ${styleText("bold", placement)} of the bundled file (${styleText("bold", wrapper)} the wrapper function)`;
2324
2262
  };
@@ -2510,7 +2448,7 @@ function bindingAssetSource(source) {
2510
2448
  return { inner: source };
2511
2449
  }
2512
2450
  //#endregion
2513
- //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
2451
+ //#region \0@oxc-project+runtime@0.128.0/helpers/decorate.js
2514
2452
  function __decorate(decorators, target, key, desc) {
2515
2453
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2516
2454
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -7,7 +7,7 @@ import { BindingAttachDebugInfo, BindingChunkModuleOrderBy, BindingLogLevel, Bin
7
7
  import path from "node:path";
8
8
  import fsp from "node:fs/promises";
9
9
  //#region package.json
10
- var version = "1.0.0-rc.17";
10
+ var version = "1.0.0-rc.18";
11
11
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
12
12
  //#endregion
13
13
  //#region src/constants/version.ts
@@ -216,7 +216,7 @@ function bindingAssetSource(source) {
216
216
  return { inner: source };
217
217
  }
218
218
  //#endregion
219
- //#region \0@oxc-project+runtime@0.127.0/helpers/decorate.js
219
+ //#region \0@oxc-project+runtime@0.128.0/helpers/decorate.js
220
220
  function __decorate(decorators, target, key, desc) {
221
221
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
222
222
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -1,4 +1,4 @@
1
- import { t as rolldown } from "./rolldown-BHRUKOuQ.mjs";
1
+ import { t as rolldown } from "./rolldown-QMNic12I.mjs";
2
2
  import path from "node:path";
3
3
  import { readdir } from "node:fs/promises";
4
4
  import { cwd } from "node:process";
@@ -1,5 +1,5 @@
1
1
  import { parse, parseSync } from "../rolldown-binding.wasi.cjs";
2
- //#region ../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/wrap.js
2
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.0/node_modules/oxc-parser/src-js/wrap.js
3
3
  function wrap(result) {
4
4
  let program, module, comments, errors;
5
5
  return {
@@ -1,4 +1,4 @@
1
- import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-D3SzYm67.mjs";
1
+ import { c as validateOption, t as RolldownBuild, u as PluginDriver } from "./rolldown-build-DTZNpSde.mjs";
2
2
  //#region src/api/rolldown/index.ts
3
3
  /**
4
4
  * The API compatible with Rollup's `rollup` function.
@@ -1,6 +1,6 @@
1
1
  import { i as logInputHookInOutputPlugin, n as error } from "./logs-D80CXhvg.mjs";
2
2
  import { n as BuiltinPlugin } from "./normalize-string-or-regex-D0o84ejN.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-CAamVRUH.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-CwgInDkH.mjs";
4
4
  import { v as unimplemented } from "./composable-filters-B2ByPP8y.mjs";
5
5
  import { i as unwrapBindingResult } from "./error-CQ6njWsV.mjs";
6
6
  import { Worker } from "node:worker_threads";
@@ -1396,9 +1396,7 @@ function styleText$1(...args) {
1396
1396
  }
1397
1397
  //#endregion
1398
1398
  //#region src/utils/validator.ts
1399
- function isTypeTrue() {}
1400
1399
  const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1401
- isTypeTrue();
1402
1400
  function vFunction() {
1403
1401
  return /* @__PURE__ */ function_();
1404
1402
  }
@@ -1407,32 +1405,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
1407
1405
  /* @__PURE__ */ literal("info"),
1408
1406
  /* @__PURE__ */ literal("warn")
1409
1407
  ]);
1410
- isTypeTrue();
1411
1408
  const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1412
- isTypeTrue();
1413
1409
  const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1414
- isTypeTrue();
1415
1410
  const RollupLogSchema = /* @__PURE__ */ any();
1416
1411
  const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1417
- isTypeTrue();
1418
1412
  const InputOptionSchema = /* @__PURE__ */ union([
1419
1413
  /* @__PURE__ */ string(),
1420
1414
  /* @__PURE__ */ array(/* @__PURE__ */ string()),
1421
1415
  /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1422
1416
  ]);
1423
- isTypeTrue();
1424
1417
  const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1425
1418
  /* @__PURE__ */ string(),
1426
1419
  /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1427
1420
  /* @__PURE__ */ boolean()
1428
1421
  ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1429
- isTypeTrue();
1430
1422
  const ExternalOptionSchema = /* @__PURE__ */ union([
1431
1423
  StringOrRegExpSchema,
1432
1424
  /* @__PURE__ */ array(StringOrRegExpSchema),
1433
1425
  ExternalOptionFunctionSchema
1434
1426
  ]);
1435
- isTypeTrue();
1436
1427
  const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1437
1428
  /* @__PURE__ */ literal("asset"),
1438
1429
  /* @__PURE__ */ literal("base64"),
@@ -1448,78 +1439,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
1448
1439
  /* @__PURE__ */ literal("ts"),
1449
1440
  /* @__PURE__ */ literal("tsx")
1450
1441
  ]));
1451
- isTypeTrue();
1452
- const JsxOptionsSchema = /* @__PURE__ */ strictObject({
1453
- runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1454
- development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1455
- throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1456
- pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1457
- importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1458
- pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1459
- pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1460
- refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1461
- });
1462
- isTypeTrue();
1463
- const HelperModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")]);
1464
- const DecoratorOptionSchema = /* @__PURE__ */ object({
1465
- legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1466
- emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1467
- });
1468
- isTypeTrue();
1469
- const HelpersSchema = /* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(HelperModeSchema) });
1470
- isTypeTrue();
1471
- const TypescriptSchema = /* @__PURE__ */ object({
1472
- jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1473
- jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1474
- onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1475
- allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1476
- allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1477
- removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1478
- optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1479
- optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1480
- declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1481
- stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1482
- sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1483
- })),
1484
- rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1485
- /* @__PURE__ */ literal("rewrite"),
1486
- /* @__PURE__ */ literal("remove"),
1487
- /* @__PURE__ */ boolean()
1488
- ]))
1489
- });
1490
- isTypeTrue();
1491
- const AssumptionsSchema = /* @__PURE__ */ object({
1492
- ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1493
- noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1494
- objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1495
- pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1496
- setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1497
- });
1498
- isTypeTrue();
1499
- const TransformPluginsSchema = /* @__PURE__ */ object({
1500
- styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1501
- taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1502
- });
1503
- isTypeTrue();
1504
1442
  const TransformOptionsSchema = /* @__PURE__ */ object({
1505
- assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1506
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1507
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1508
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1443
+ assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1444
+ ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1445
+ noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1446
+ objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1447
+ pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1448
+ setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1449
+ })),
1450
+ typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1451
+ jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1452
+ jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1453
+ onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1454
+ allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1455
+ allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1456
+ removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1457
+ optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1458
+ optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1459
+ declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1460
+ stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1461
+ sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1462
+ })),
1463
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1464
+ /* @__PURE__ */ literal("rewrite"),
1465
+ /* @__PURE__ */ literal("remove"),
1466
+ /* @__PURE__ */ boolean()
1467
+ ]))
1468
+ })),
1469
+ helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1470
+ decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1471
+ legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1472
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1473
+ })),
1509
1474
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1510
1475
  /* @__PURE__ */ literal(false),
1511
1476
  /* @__PURE__ */ literal("preserve"),
1512
1477
  /* @__PURE__ */ literal("react"),
1513
1478
  /* @__PURE__ */ literal("react-jsx"),
1514
- JsxOptionsSchema
1479
+ /* @__PURE__ */ strictObject({
1480
+ runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1481
+ development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1482
+ throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1483
+ pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1484
+ importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1485
+ pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1486
+ pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1487
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1488
+ })
1515
1489
  ])),
1516
1490
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1517
1491
  define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1518
1492
  inject: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ string()])]))), /* @__PURE__ */ description("Inject import statements on demand")),
1519
1493
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1520
- plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
1494
+ plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1495
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1496
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1497
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1521
1498
  });
1522
- isTypeTrue();
1523
1499
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1524
1500
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1525
1501
  pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
@@ -1539,7 +1515,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1539
1515
  clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1540
1516
  onInvalidate: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(vFunction()), /* @__PURE__ */ description("An optional function that will be called immediately every time a module changes that is part of the build."))
1541
1517
  });
1542
- isTypeTrue();
1543
1518
  const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1544
1519
  circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1545
1520
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
@@ -1562,53 +1537,39 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1562
1537
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
1563
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"))
1564
1539
  });
1565
- isTypeTrue();
1566
- const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1567
- function: /* @__PURE__ */ boolean(),
1568
- class: /* @__PURE__ */ boolean()
1569
- });
1570
- isTypeTrue();
1571
- const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
1572
- annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1573
- manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1574
- propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
1575
- propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1576
- unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1577
- invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1578
- });
1579
- isTypeTrue();
1580
- const CompressOptionsSchema = /* @__PURE__ */ strictObject({
1581
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1582
- dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1583
- dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1584
- keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
1585
- unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1586
- joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1587
- sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1588
- dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1589
- maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1590
- treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
1591
- });
1592
- isTypeTrue();
1593
- const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
1594
- function: /* @__PURE__ */ boolean(),
1595
- class: /* @__PURE__ */ boolean()
1596
- });
1597
- isTypeTrue();
1598
- const MangleOptionsSchema = /* @__PURE__ */ strictObject({
1599
- toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1600
- keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
1601
- debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1602
- });
1603
- isTypeTrue();
1604
- const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
1605
- isTypeTrue();
1606
1540
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
1607
- compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CompressOptionsSchema])),
1608
- mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsSchema])),
1609
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CodegenOptionsSchema]))
1541
+ compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1542
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
1543
+ dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1544
+ dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1545
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1546
+ function: /* @__PURE__ */ boolean(),
1547
+ class: /* @__PURE__ */ boolean()
1548
+ })),
1549
+ unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
1550
+ joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1551
+ sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1552
+ dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1553
+ maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1554
+ treeshake: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
1555
+ annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1556
+ manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
1557
+ propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
1558
+ propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1559
+ unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1560
+ invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1561
+ }))
1562
+ })])),
1563
+ mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1564
+ toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1565
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1566
+ function: /* @__PURE__ */ boolean(),
1567
+ class: /* @__PURE__ */ boolean()
1568
+ })])),
1569
+ debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1570
+ })])),
1571
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
1610
1572
  });
1611
- isTypeTrue();
1612
1573
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1613
1574
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1614
1575
  /* @__PURE__ */ literal(false),
@@ -1626,7 +1587,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
1626
1587
  symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1627
1588
  tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
1628
1589
  });
1629
- isTypeTrue();
1630
1590
  const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1631
1591
  moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1632
1592
  annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -1637,7 +1597,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
1637
1597
  propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
1638
1598
  propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
1639
1599
  });
1640
- isTypeTrue();
1641
1600
  const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1642
1601
  inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1643
1602
  mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
@@ -1645,24 +1604,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
1645
1604
  })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
1646
1605
  pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
1647
1606
  });
1648
- isTypeTrue();
1649
1607
  const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
1650
- isTypeTrue();
1651
1608
  const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1652
1609
  LogLevelSchema,
1653
1610
  RollupLogSchema,
1654
1611
  LogOrStringHandlerSchema
1655
1612
  ])));
1656
- isTypeTrue();
1657
1613
  const OnwarnSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([RollupLogSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ union([RollupLogWithStringSchema, /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ returns(RollupLogWithStringSchema))])])))])));
1658
- isTypeTrue();
1659
1614
  const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
1660
1615
  port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
1661
1616
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1662
1617
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1663
1618
  lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1664
1619
  })]);
1665
- isTypeTrue();
1666
1620
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
1667
1621
  input: /* @__PURE__ */ optional(InputOptionSchema),
1668
1622
  plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
@@ -1715,7 +1669,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
1715
1669
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
1716
1670
  tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
1717
1671
  });
1718
- isTypeTrue();
1719
1672
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
1720
1673
  input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
1721
1674
  external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -1744,32 +1697,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
1744
1697
  /* @__PURE__ */ literal("iife"),
1745
1698
  /* @__PURE__ */ literal("umd")
1746
1699
  ]);
1747
- isTypeTrue();
1748
1700
  const AddonFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returnsAsync(/* @__PURE__ */ unionAsync([/* @__PURE__ */ string(), /* @__PURE__ */ pipeAsync(/* @__PURE__ */ promise(), /* @__PURE__ */ awaitAsync(), /* @__PURE__ */ string())])));
1749
- isTypeTrue();
1750
1701
  const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1751
- isTypeTrue();
1752
1702
  const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
1753
1703
  const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1754
- isTypeTrue();
1755
1704
  const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
1756
1705
  const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1757
- isTypeTrue();
1758
1706
  const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
1759
1707
  const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1760
- isTypeTrue();
1761
1708
  const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
1762
- isTypeTrue();
1763
1709
  const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1764
- isTypeTrue();
1765
1710
  const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
1766
- isTypeTrue();
1767
1711
  const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
1768
1712
  /* @__PURE__ */ boolean(),
1769
1713
  /* @__PURE__ */ void_(),
1770
1714
  /* @__PURE__ */ undefined_()
1771
1715
  ])));
1772
- isTypeTrue();
1773
1716
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1774
1717
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1775
1718
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -1791,15 +1734,11 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
1791
1734
  tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
1792
1735
  })))
1793
1736
  });
1794
- isTypeTrue();
1795
- const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
1796
- isTypeTrue();
1797
1737
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
1798
1738
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
1799
- preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
1739
+ preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
1800
1740
  profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
1801
1741
  });
1802
- isTypeTrue();
1803
1742
  const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1804
1743
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
1805
1744
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
@@ -1875,7 +1814,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
1875
1814
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
1876
1815
  strict: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("auto")])), /* @__PURE__ */ description("Whether to always output `\"use strict\"` directive in non-ES module outputs."))
1877
1816
  });
1878
- isTypeTrue();
1879
1817
  const getAddonDescription = (placement, wrapper) => {
1880
1818
  return `Code to insert the ${styleText$1("bold", placement)} of the bundled file (${styleText$1("bold", wrapper)} the wrapper function)`;
1881
1819
  };
@@ -2768,7 +2706,7 @@ function n(e) {
2768
2706
  return e ? e !== "false" : false;
2769
2707
  }
2770
2708
  const I = globalThis.process?.platform || "", T = n(o.CI) || l.ci !== false, a = n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), g = n(o.DEBUG), R = t === "test" || n(o.TEST);
2771
- n(o.MINIMAL);
2709
+ o.MINIMAL;
2772
2710
  const A = /^win/i.test(I);
2773
2711
  !n(o.NO_COLOR) && (n(o.FORCE_COLOR) || (a || A) && o.TERM);
2774
2712
  const C = (globalThis.process?.versions?.node || "").replace(/^v/, "") || null;
@@ -1,7 +1,7 @@
1
1
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
2
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CAamVRUH.mjs";
2
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwgInDkH.mjs";
3
3
  import { h as arraify } from "./composable-filters-B2ByPP8y.mjs";
4
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-D3SzYm67.mjs";
4
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DTZNpSde.mjs";
5
5
  import { t as aggregateBindingErrorsIntoJsError } from "./error-CQ6njWsV.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
@@ -1,6 +1,6 @@
1
- import { a as parse, o as parseSync } from "./error-Dh25MMQy.js";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-D9b_5AH9.js";
3
- //#region ../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { a as parse, o as parseSync } from "./error-Wb6U5UzX.js";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./resolve-tsconfig-D81WVTGZ.js";
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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.127.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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.127.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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
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
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";
3
3
 
4
- //#region ../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
4
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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-CEVlGaMp.mjs";
1
+ import { n as parseSync, t as parse } from "./shared/parse-CSnBnIDb.mjs";
2
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.127.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
3
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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.127.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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.127.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../node_modules/.pnpm/oxc-parser@0.128.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-rc.17",
3
+ "version": "1.0.0-rc.18",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "keywords": [
6
6
  "bundler",