@rolldown/browser 1.0.0-rc.9 → 1.0.1

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 (48) hide show
  1. package/dist/cli.mjs +208 -73
  2. package/dist/config.d.mts +1 -1
  3. package/dist/config.mjs +2 -7
  4. package/dist/{constructors-BgL_dmUe.js → constructors-BTLtc_G_.js} +11 -2
  5. package/dist/{error-DkAP_6fk.js → error-CIj5jXSo.js} +1 -1
  6. package/dist/experimental-index.browser.mjs +10 -10
  7. package/dist/experimental-index.d.mts +17 -19
  8. package/dist/experimental-index.mjs +11 -11
  9. package/dist/experimental-runtime-types.d.ts +14 -5
  10. package/dist/filter-index.d.mts +3 -3
  11. package/dist/filter-index.mjs +3 -3
  12. package/dist/index.browser.mjs +4 -4
  13. package/dist/index.d.mts +4 -3
  14. package/dist/index.mjs +4 -8
  15. package/dist/{normalize-string-or-regex-TtAGUp42.js → normalize-string-or-regex-CBPw_c5O.js} +21 -11
  16. package/dist/parallel-plugin-worker.mjs +1 -4
  17. package/dist/parallel-plugin.d.mts +2 -2
  18. package/dist/parse-ast-index.d.mts +1 -2
  19. package/dist/parse-ast-index.mjs +1 -1
  20. package/dist/plugins-index.browser.mjs +2 -2
  21. package/dist/plugins-index.d.mts +3 -3
  22. package/dist/plugins-index.mjs +2 -2
  23. package/dist/{transform-UkHb5h4g.js → resolve-tsconfig-uVC8K7GR.js} +28 -5
  24. package/dist/rolldown-binding.wasi-browser.js +6 -0
  25. package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
  26. package/dist/{rolldown-build-sRmdtwRU.js → rolldown-build-DCjXbOeh.js} +242 -210
  27. package/dist/shared/binding-CaVxb0SV.d.mts +3198 -0
  28. package/dist/shared/{bindingify-input-options-Cfptl9gw.mjs → bindingify-input-options-C7dl2XLe.mjs} +126 -58
  29. package/dist/shared/{composable-filters-B2ByPP8y.mjs → composable-filters-DpWB82jk.mjs} +2 -2
  30. package/dist/shared/{constructors-C1tQjDsj.d.mts → constructors-B1JYJxhf.d.mts} +7 -3
  31. package/dist/shared/{constructors-C7Kkidxk.mjs → constructors-CI_8FAaP.mjs} +11 -2
  32. package/dist/shared/{define-config-B1J71V4c.d.mts → define-config-CYgMQYTy.d.mts} +131 -39
  33. package/dist/shared/{load-config-B6MMusXN.mjs → load-config-BFkorvIR.mjs} +1 -1
  34. package/dist/shared/{normalize-string-or-regex-CF3Uz6aU.mjs → normalize-string-or-regex-Dq6w-2tU.mjs} +21 -11
  35. package/dist/shared/{parse-DDUnGYGU.mjs → parse-Bmk53Le1.mjs} +1 -1
  36. package/dist/shared/{prompt-BYQIwEjg.mjs → prompt-U5ajztzG.mjs} +4 -2
  37. package/dist/shared/{transform-B_n5An0U.mjs → resolve-tsconfig-Cwoo4h_o.mjs} +27 -4
  38. package/dist/shared/{rolldown-BDqeiCX1.mjs → rolldown-Dyy9Y2li.mjs} +1 -1
  39. package/dist/shared/{rolldown-build-DZ7tJkeQ.mjs → rolldown-build-DYE2Qi6z.mjs} +120 -156
  40. package/dist/shared/{transform-BSAGL1b_.d.mts → transform-kP3ISMFT.d.mts} +30 -13
  41. package/dist/shared/{utils-6wxe_LMG.d.mts → utils-KRVeJqya.d.mts} +1 -1
  42. package/dist/shared/{watch-Cj4uDLQX.mjs → watch-DXAEaxPd.mjs} +3 -3
  43. package/dist/utils-index.browser.mjs +5 -5
  44. package/dist/utils-index.d.mts +4 -4
  45. package/dist/utils-index.mjs +5 -6
  46. package/dist/wasi-worker-browser.mjs +8 -0
  47. package/package.json +4 -2
  48. package/dist/shared/types-Cx3HYorz.d.mts +0 -1302
@@ -1,5 +1,5 @@
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-TtAGUp42.js";
2
- import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-DkAP_6fk.js";
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-CBPw_c5O.js";
2
+ import { i as unwrapBindingResult, o as parseSync$1, s as bindingifySourcemap$1, t as aggregateBindingErrorsIntoJsError } from "./error-CIj5jXSo.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.9";
457
+ const VERSION = "1.0.1";
458
458
  //#endregion
459
459
  //#region src/constants/index.ts
460
460
  /**
@@ -660,6 +660,8 @@ const ANONYMOUS_OUTPUT_PLUGIN_PREFIX = "at output position ";
660
660
  //#endregion
661
661
  //#region src/plugin/minimal-plugin-context.ts
662
662
  var MinimalPluginContextImpl = class {
663
+ pluginName;
664
+ hookName;
663
665
  info;
664
666
  warn;
665
667
  debug;
@@ -747,8 +749,14 @@ function getSortedPlugins(hookName, plugins) {
747
749
  ];
748
750
  }
749
751
  //#endregion
750
- //#region ../../node_modules/.pnpm/valibot@1.2.0_typescript@5.9.3/node_modules/valibot/dist/index.mjs
752
+ //#region ../../node_modules/.pnpm/valibot@1.4.0_typescript@6.0.3/node_modules/valibot/dist/index.mjs
751
753
  let store$4;
754
+ const DEFAULT_CONFIG = {
755
+ lang: void 0,
756
+ message: void 0,
757
+ abortEarly: void 0,
758
+ abortPipeEarly: void 0
759
+ };
752
760
  /**
753
761
  * Returns the global configuration.
754
762
  *
@@ -758,6 +766,7 @@ let store$4;
758
766
  */
759
767
  /* @__NO_SIDE_EFFECTS__ */
760
768
  function getGlobalConfig(config$1) {
769
+ if (!config$1 && true) return DEFAULT_CONFIG;
761
770
  return {
762
771
  lang: config$1?.lang ?? store$4?.lang,
763
772
  message: config$1?.message,
@@ -855,6 +864,7 @@ function _addIssue(context, label, dataset, config$1, other) {
855
864
  if (dataset.issues) dataset.issues.push(issue);
856
865
  else dataset.issues = [issue];
857
866
  }
867
+ const _standardCache = /* @__PURE__ */ new WeakMap();
858
868
  /**
859
869
  * Returns the Standard Schema properties.
860
870
  *
@@ -864,13 +874,18 @@ function _addIssue(context, label, dataset, config$1, other) {
864
874
  */
865
875
  /* @__NO_SIDE_EFFECTS__ */
866
876
  function _getStandardProps(context) {
867
- return {
868
- version: 1,
869
- vendor: "valibot",
870
- validate(value$1) {
871
- return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
872
- }
873
- };
877
+ let cached = _standardCache.get(context);
878
+ if (!cached) {
879
+ cached = {
880
+ version: 1,
881
+ vendor: "valibot",
882
+ validate(value$1) {
883
+ return context["~run"]({ value: value$1 }, /* @__PURE__ */ getGlobalConfig());
884
+ }
885
+ };
886
+ _standardCache.set(context, cached);
887
+ }
888
+ return cached;
874
889
  }
875
890
  /**
876
891
  * Disallows inherited object properties and prevents object prototype
@@ -885,7 +900,7 @@ function _getStandardProps(context) {
885
900
  */
886
901
  /* @__NO_SIDE_EFFECTS__ */
887
902
  function _isValidObjectKey(object$1, key) {
888
- return Object.hasOwn(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
903
+ return Object.prototype.hasOwnProperty.call(object$1, key) && key !== "__proto__" && key !== "prototype" && key !== "constructor";
889
904
  }
890
905
  /**
891
906
  * Joins multiple `expects` values with the given separator.
@@ -1009,6 +1024,7 @@ function returnsAsync(schema) {
1009
1024
  }
1010
1025
  };
1011
1026
  }
1027
+ const ABORT_EARLY_CONFIG = { abortEarly: true };
1012
1028
  /**
1013
1029
  * Returns the fallback value of the schema.
1014
1030
  *
@@ -1046,7 +1062,7 @@ function getDefault(schema, dataset, config$1) {
1046
1062
  */
1047
1063
  /* @__NO_SIDE_EFFECTS__ */
1048
1064
  function is(schema, input) {
1049
- return !schema["~run"]({ value: input }, { abortEarly: true }).issues;
1065
+ return !schema["~run"]({ value: input }, ABORT_EARLY_CONFIG).issues;
1050
1066
  }
1051
1067
  /**
1052
1068
  * Creates an any schema.
@@ -1638,7 +1654,7 @@ function undefined_(message$1) {
1638
1654
  /* @__NO_SIDE_EFFECTS__ */
1639
1655
  function _subIssues(datasets) {
1640
1656
  let issues;
1641
- if (datasets) for (const dataset of datasets) if (issues) issues.push(...dataset.issues);
1657
+ if (datasets) for (const dataset of datasets) if (issues) for (const issue of dataset.issues) issues.push(issue);
1642
1658
  else issues = dataset.issues;
1643
1659
  return issues;
1644
1660
  }
@@ -1839,9 +1855,7 @@ function styleText(...args) {
1839
1855
  }
1840
1856
  //#endregion
1841
1857
  //#region src/utils/validator.ts
1842
- function isTypeTrue() {}
1843
1858
  const StringOrRegExpSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ instance(RegExp)]);
1844
- isTypeTrue();
1845
1859
  function vFunction() {
1846
1860
  return /* @__PURE__ */ function_();
1847
1861
  }
@@ -1850,32 +1864,25 @@ const LogLevelSchema = /* @__PURE__ */ union([
1850
1864
  /* @__PURE__ */ literal("info"),
1851
1865
  /* @__PURE__ */ literal("warn")
1852
1866
  ]);
1853
- isTypeTrue();
1854
1867
  const LogLevelOptionSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("silent")]);
1855
- isTypeTrue();
1856
1868
  const LogLevelWithErrorSchema = /* @__PURE__ */ union([LogLevelSchema, /* @__PURE__ */ literal("error")]);
1857
- isTypeTrue();
1858
1869
  const RollupLogSchema = /* @__PURE__ */ any();
1859
1870
  const RollupLogWithStringSchema = /* @__PURE__ */ union([RollupLogSchema, /* @__PURE__ */ string()]);
1860
- isTypeTrue();
1861
1871
  const InputOptionSchema = /* @__PURE__ */ union([
1862
1872
  /* @__PURE__ */ string(),
1863
1873
  /* @__PURE__ */ array(/* @__PURE__ */ string()),
1864
1874
  /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())
1865
1875
  ]);
1866
- isTypeTrue();
1867
1876
  const ExternalOptionFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
1868
1877
  /* @__PURE__ */ string(),
1869
1878
  /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1870
1879
  /* @__PURE__ */ boolean()
1871
1880
  ])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ boolean())));
1872
- isTypeTrue();
1873
1881
  const ExternalOptionSchema = /* @__PURE__ */ union([
1874
1882
  StringOrRegExpSchema,
1875
1883
  /* @__PURE__ */ array(StringOrRegExpSchema),
1876
1884
  ExternalOptionFunctionSchema
1877
1885
  ]);
1878
- isTypeTrue();
1879
1886
  const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
1880
1887
  /* @__PURE__ */ literal("asset"),
1881
1888
  /* @__PURE__ */ literal("base64"),
@@ -1891,76 +1898,63 @@ const ModuleTypesSchema = /* @__PURE__ */ record(/* @__PURE__ */ string(), /* @_
1891
1898
  /* @__PURE__ */ literal("ts"),
1892
1899
  /* @__PURE__ */ literal("tsx")
1893
1900
  ]));
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
- declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1922
- stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1923
- sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1924
- })),
1925
- rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1926
- /* @__PURE__ */ literal("rewrite"),
1927
- /* @__PURE__ */ literal("remove"),
1928
- /* @__PURE__ */ boolean()
1929
- ]))
1930
- });
1931
- isTypeTrue();
1932
- const AssumptionsSchema = /* @__PURE__ */ object({
1933
- ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1934
- noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1935
- objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1936
- pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1937
- setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1938
- });
1939
- isTypeTrue();
1940
- const TransformPluginsSchema = /* @__PURE__ */ object({
1941
- styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1942
- taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1943
- });
1944
- isTypeTrue();
1945
1901
  const TransformOptionsSchema = /* @__PURE__ */ object({
1946
- assumptions: /* @__PURE__ */ optional(AssumptionsSchema),
1947
- typescript: /* @__PURE__ */ optional(TypescriptSchema),
1948
- helpers: /* @__PURE__ */ optional(HelpersSchema),
1949
- decorator: /* @__PURE__ */ optional(DecoratorOptionSchema),
1902
+ assumptions: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1903
+ ignoreFunctionLength: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1904
+ noDocumentAll: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1905
+ objectRestNoSymbols: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1906
+ pureGetters: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1907
+ setPublicClassFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1908
+ })),
1909
+ typescript: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1910
+ jsxPragma: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1911
+ jsxPragmaFrag: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
1912
+ onlyRemoveTypeImports: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1913
+ allowNamespaces: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1914
+ allowDeclareFields: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1915
+ removeClassFieldsWithoutInitializer: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1916
+ optimizeConstEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1917
+ optimizeEnums: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1918
+ declaration: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1919
+ stripInternal: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1920
+ sourcemap: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1921
+ })),
1922
+ rewriteImportExtensions: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1923
+ /* @__PURE__ */ literal("rewrite"),
1924
+ /* @__PURE__ */ literal("remove"),
1925
+ /* @__PURE__ */ boolean()
1926
+ ]))
1927
+ })),
1928
+ helpers: /* @__PURE__ */ optional(/* @__PURE__ */ object({ mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("Runtime"), /* @__PURE__ */ literal("External")])) })),
1929
+ decorator: /* @__PURE__ */ optional(/* @__PURE__ */ object({
1930
+ legacy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
1931
+ emitDecoratorMetadata: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1932
+ })),
1950
1933
  jsx: /* @__PURE__ */ optional(/* @__PURE__ */ union([
1951
1934
  /* @__PURE__ */ literal(false),
1952
1935
  /* @__PURE__ */ literal("preserve"),
1953
1936
  /* @__PURE__ */ literal("react"),
1954
1937
  /* @__PURE__ */ literal("react-jsx"),
1955
- JsxOptionsSchema
1938
+ /* @__PURE__ */ strictObject({
1939
+ runtime: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("classic"), /* @__PURE__ */ literal("automatic")])), /* @__PURE__ */ description("Which runtime to use")),
1940
+ development: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Development specific information")),
1941
+ throwIfNamespace: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Toggles whether to throw an error when a tag name uses an XML namespace")),
1942
+ pure: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Mark JSX elements and top-level React method calls as pure for tree shaking.")),
1943
+ importSource: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Import the factory of element and fragment if mode is classic")),
1944
+ pragma: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx element transformation")),
1945
+ pragmaFrag: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Jsx fragment transformation")),
1946
+ refresh: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ any()])), /* @__PURE__ */ description("Enable react fast refresh"))
1947
+ })
1956
1948
  ])),
1957
1949
  target: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])), /* @__PURE__ */ description("The JavaScript target environment")),
1958
1950
  define: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ string())), /* @__PURE__ */ description("Define global variables (syntax: key:value,key2:value2)")),
1959
1951
  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")),
1960
1952
  dropLabels: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Remove labeled statements with these label names")),
1961
- plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(TransformPluginsSchema), /* @__PURE__ */ description("Third-party plugins to use"))
1953
+ plugins: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ object({
1954
+ styledComponents: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
1955
+ taggedTemplateEscape: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
1956
+ })), /* @__PURE__ */ description("Third-party plugins to use"))
1962
1957
  });
1963
- isTypeTrue();
1964
1958
  const WatcherFileWatcherOptionsSchema = /* @__PURE__ */ strictObject({
1965
1959
  usePolling: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use polling-based file watching instead of native OS events")),
1966
1960
  pollInterval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ number()), /* @__PURE__ */ description("Poll interval in milliseconds (only used when usePolling is true)")),
@@ -1980,7 +1974,6 @@ const WatcherOptionsSchema = /* @__PURE__ */ strictObject({
1980
1974
  clearScreen: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to clear the screen when a rebuild is triggered")),
1981
1975
  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."))
1982
1976
  });
1983
- isTypeTrue();
1984
1977
  const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
1985
1978
  circularDependency: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting circular dependency")),
1986
1979
  eval: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when detecting uses of direct `eval`s")),
@@ -2001,54 +1994,42 @@ const ChecksOptionsSchema = /* @__PURE__ */ strictObject({
2001
1994
  pluginTimings: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when plugins take significant time during the build process")),
2002
1995
  duplicateShebang: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when both the code and postBanner contain shebang")),
2003
1996
  unsupportedTsconfigOption: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to emit warnings when a tsconfig option or combination of options is not supported")),
2004
- 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"))
2005
- });
2006
- isTypeTrue();
2007
- const CompressOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
2008
- function: /* @__PURE__ */ boolean(),
2009
- class: /* @__PURE__ */ boolean()
2010
- });
2011
- isTypeTrue();
2012
- const CompressTreeshakeOptionsSchema = /* @__PURE__ */ strictObject({
2013
- annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2014
- manualPureFunctions: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2015
- propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("always")])),
2016
- unknownGlobalSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2017
- invalidImportSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2018
- });
2019
- isTypeTrue();
2020
- const CompressOptionsSchema = /* @__PURE__ */ strictObject({
2021
- target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
2022
- dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2023
- dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2024
- keepNames: /* @__PURE__ */ optional(CompressOptionsKeepNamesSchema),
2025
- unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
2026
- joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2027
- sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2028
- dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2029
- maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2030
- treeshake: /* @__PURE__ */ optional(CompressTreeshakeOptionsSchema)
1997
+ 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")),
1998
+ 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)"))
2031
1999
  });
2032
- isTypeTrue();
2033
- const MangleOptionsKeepNamesSchema = /* @__PURE__ */ strictObject({
2034
- function: /* @__PURE__ */ boolean(),
2035
- class: /* @__PURE__ */ boolean()
2036
- });
2037
- isTypeTrue();
2038
- const MangleOptionsSchema = /* @__PURE__ */ strictObject({
2039
- toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2040
- keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsKeepNamesSchema])),
2041
- debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2042
- });
2043
- isTypeTrue();
2044
- const CodegenOptionsSchema = /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) });
2045
- isTypeTrue();
2046
2000
  const MinifyOptionsSchema = /* @__PURE__ */ strictObject({
2047
- compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CompressOptionsSchema])),
2048
- mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), MangleOptionsSchema])),
2049
- codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), CodegenOptionsSchema]))
2001
+ compress: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2002
+ target: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ string(), /* @__PURE__ */ array(/* @__PURE__ */ string())])),
2003
+ dropConsole: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2004
+ dropDebugger: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2005
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ strictObject({
2006
+ function: /* @__PURE__ */ boolean(),
2007
+ class: /* @__PURE__ */ boolean()
2008
+ })),
2009
+ unused: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ literal("keep_assign")])),
2010
+ joinVars: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2011
+ sequences: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2012
+ dropLabels: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())),
2013
+ maxIterations: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2014
+ treeshake: /* @__PURE__ */ optional(/* @__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
+ })])),
2023
+ mangle: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2024
+ toplevel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2025
+ keepNames: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2026
+ function: /* @__PURE__ */ boolean(),
2027
+ class: /* @__PURE__ */ boolean()
2028
+ })])),
2029
+ debug: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2030
+ })])),
2031
+ codegen: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({ removeWhitespace: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()) })]))
2050
2032
  });
2051
- isTypeTrue();
2052
2033
  const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
2053
2034
  alias: /* @__PURE__ */ optional(/* @__PURE__ */ record(/* @__PURE__ */ string(), /* @__PURE__ */ union([
2054
2035
  /* @__PURE__ */ literal(false),
@@ -2066,7 +2047,6 @@ const ResolveOptionsSchema = /* @__PURE__ */ strictObject({
2066
2047
  symlinks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2067
2048
  tsconfigFilename: /* @__PURE__ */ optional(/* @__PURE__ */ string())
2068
2049
  });
2069
- isTypeTrue();
2070
2050
  const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
2071
2051
  moduleSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ any()),
2072
2052
  annotations: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
@@ -2077,7 +2057,6 @@ const TreeshakingOptionsSchema = /* @__PURE__ */ strictObject({
2077
2057
  propertyReadSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")])),
2078
2058
  propertyWriteSideEffects: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal(false), /* @__PURE__ */ literal("always")]))
2079
2059
  });
2080
- isTypeTrue();
2081
2060
  const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
2082
2061
  inlineConst: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2083
2062
  mode: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("all"), /* @__PURE__ */ literal("smart")])),
@@ -2085,24 +2064,19 @@ const OptimizationOptionsSchema = /* @__PURE__ */ strictObject({
2085
2064
  })])), /* @__PURE__ */ description("Enable crossmodule constant inlining")),
2086
2065
  pifeForModuleWrappers: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Use PIFE pattern for module wrappers"))
2087
2066
  });
2088
- isTypeTrue();
2089
2067
  const LogOrStringHandlerSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([LogLevelWithErrorSchema, RollupLogWithStringSchema])));
2090
- isTypeTrue();
2091
2068
  const OnLogSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([
2092
2069
  LogLevelSchema,
2093
2070
  RollupLogSchema,
2094
2071
  LogOrStringHandlerSchema
2095
2072
  ])));
2096
- isTypeTrue();
2097
2073
  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))])])))])));
2098
- isTypeTrue();
2099
2074
  const DevModeSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2100
2075
  port: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2101
2076
  host: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
2102
2077
  implement: /* @__PURE__ */ optional(/* @__PURE__ */ string()),
2103
2078
  lazy: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2104
2079
  })]);
2105
- isTypeTrue();
2106
2080
  const InputOptionsSchema = /* @__PURE__ */ strictObject({
2107
2081
  input: /* @__PURE__ */ optional(InputOptionSchema),
2108
2082
  plugins: /* @__PURE__ */ optional(/* @__PURE__ */ custom(() => true)),
@@ -2139,7 +2113,10 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
2139
2113
  onDemandWrapping: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2140
2114
  incrementalBuild: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2141
2115
  nativeMagicString: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2142
- chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2116
+ chunkOptimization: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ strictObject({
2117
+ mergeCommonChunks: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2118
+ avoidRedundantChunkLoads: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2119
+ })])),
2143
2120
  lazyBarrel: /* @__PURE__ */ optional(/* @__PURE__ */ boolean())
2144
2121
  })),
2145
2122
  transform: /* @__PURE__ */ optional(TransformOptionsSchema),
@@ -2155,7 +2132,6 @@ const InputOptionsSchema = /* @__PURE__ */ strictObject({
2155
2132
  context: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("The value of `this` at the top level of each module.")),
2156
2133
  tsconfig: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ boolean(), /* @__PURE__ */ string()])), /* @__PURE__ */ description("Path to the tsconfig.json file."))
2157
2134
  });
2158
- isTypeTrue();
2159
2135
  const InputCliOverrideSchema = /* @__PURE__ */ strictObject({
2160
2136
  input: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Entry file")),
2161
2137
  external: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string())), /* @__PURE__ */ description("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")),
@@ -2184,32 +2160,22 @@ const ModuleFormatSchema = /* @__PURE__ */ union([
2184
2160
  /* @__PURE__ */ literal("iife"),
2185
2161
  /* @__PURE__ */ literal("umd")
2186
2162
  ]);
2187
- isTypeTrue();
2188
2163
  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())])));
2189
- isTypeTrue();
2190
2164
  const ChunkFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2191
- isTypeTrue();
2192
2165
  const ChunkFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), ChunkFileNamesFunctionSchema]);
2193
2166
  const AssetFileNamesFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ custom(() => true)])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2194
- isTypeTrue();
2195
2167
  const AssetFileNamesSchema = /* @__PURE__ */ union([/* @__PURE__ */ string(), AssetFileNamesFunctionSchema]);
2196
2168
  const SanitizeFileNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2197
- isTypeTrue();
2198
2169
  const SanitizeFileNameSchema = /* @__PURE__ */ union([/* @__PURE__ */ boolean(), SanitizeFileNameFunctionSchema]);
2199
2170
  const GlobalsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2200
- isTypeTrue();
2201
2171
  const PathsFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ string()));
2202
- isTypeTrue();
2203
2172
  const ManualChunksFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
2204
- isTypeTrue();
2205
2173
  const AdvancedChunksNameFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string(), /* @__PURE__ */ object({})])), /* @__PURE__ */ returns(/* @__PURE__ */ nullish(/* @__PURE__ */ string())));
2206
- isTypeTrue();
2207
2174
  const AdvancedChunksTestFunctionSchema = /* @__PURE__ */ pipe(vFunction(), /* @__PURE__ */ args(/* @__PURE__ */ tuple([/* @__PURE__ */ string()])), /* @__PURE__ */ returns(/* @__PURE__ */ union([
2208
2175
  /* @__PURE__ */ boolean(),
2209
2176
  /* @__PURE__ */ void_(),
2210
2177
  /* @__PURE__ */ undefined_()
2211
2178
  ])));
2212
- isTypeTrue();
2213
2179
  const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
2214
2180
  includeDependenciesRecursively: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2215
2181
  minSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
@@ -2227,18 +2193,15 @@ const AdvancedChunksSchema = /* @__PURE__ */ strictObject({
2227
2193
  minModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2228
2194
  maxModuleSize: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2229
2195
  entriesAware: /* @__PURE__ */ optional(/* @__PURE__ */ boolean()),
2230
- entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number())
2196
+ entriesAwareMergeThreshold: /* @__PURE__ */ optional(/* @__PURE__ */ number()),
2197
+ tags: /* @__PURE__ */ optional(/* @__PURE__ */ array(/* @__PURE__ */ string()))
2231
2198
  })))
2232
2199
  });
2233
- isTypeTrue();
2234
- const GeneratedCodePresetSchema = /* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")]);
2235
- isTypeTrue();
2236
2200
  const GeneratedCodeOptionsSchema = /* @__PURE__ */ strictObject({
2237
2201
  symbols: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to use Symbol.toStringTag for namespace objects")),
2238
- preset: /* @__PURE__ */ optional(GeneratedCodePresetSchema),
2202
+ preset: /* @__PURE__ */ optional(/* @__PURE__ */ union([/* @__PURE__ */ literal("es5"), /* @__PURE__ */ literal("es2015")])),
2239
2203
  profilerNames: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Whether to add readable names to internal variables for profiling purposes"))
2240
2204
  });
2241
- isTypeTrue();
2242
2205
  const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2243
2206
  dir: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Output directory, defaults to `dist` if `file` is not set")),
2244
2207
  file: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Single output file")),
@@ -2261,6 +2224,7 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2261
2224
  ])), /* @__PURE__ */ description(`Generate sourcemap (\`-s inline\` for inline, or \`-s\` for \`.map\` file)`)),
2262
2225
  sourcemapBaseUrl: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ string()), /* @__PURE__ */ description("Base URL used to prefix sourcemap paths")),
2263
2226
  sourcemapDebugIds: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Inject sourcemap debug IDs")),
2227
+ sourcemapExcludeSources: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Exclude source content from sourcemaps")),
2264
2228
  sourcemapIgnoreList: /* @__PURE__ */ optional(/* @__PURE__ */ union([
2265
2229
  /* @__PURE__ */ boolean(),
2266
2230
  /* @__PURE__ */ custom(() => true),
@@ -2313,7 +2277,6 @@ const OutputOptionsSchema = /* @__PURE__ */ strictObject({
2313
2277
  strictExecutionOrder: /* @__PURE__ */ pipe(/* @__PURE__ */ optional(/* @__PURE__ */ boolean()), /* @__PURE__ */ description("Lets modules be executed in the order they are declared.")),
2314
2278
  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."))
2315
2279
  });
2316
- isTypeTrue();
2317
2280
  const getAddonDescription = (placement, wrapper) => {
2318
2281
  return `Code to insert the ${styleText("bold", placement)} of the bundled file (${styleText("bold", wrapper)} the wrapper function)`;
2319
2282
  };
@@ -2505,7 +2468,7 @@ function bindingAssetSource(source) {
2505
2468
  return { inner: source };
2506
2469
  }
2507
2470
  //#endregion
2508
- //#region \0@oxc-project+runtime@0.115.0/helpers/decorate.js
2471
+ //#region \0@oxc-project+runtime@0.130.0/helpers/decorate.js
2509
2472
  function __decorate(decorators, target, key, desc) {
2510
2473
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2511
2474
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2515,6 +2478,7 @@ function __decorate(decorators, target, key, desc) {
2515
2478
  //#endregion
2516
2479
  //#region src/types/output-asset-impl.ts
2517
2480
  var OutputAssetImpl = class extends PlainObjectLike {
2481
+ bindingAsset;
2518
2482
  type = "asset";
2519
2483
  constructor(bindingAsset) {
2520
2484
  super();
@@ -2618,6 +2582,7 @@ function transformChunkModules(modules) {
2618
2582
  //#endregion
2619
2583
  //#region src/types/output-chunk-impl.ts
2620
2584
  var OutputChunkImpl = class extends PlainObjectLike {
2585
+ bindingChunk;
2621
2586
  type = "chunk";
2622
2587
  constructor(bindingChunk) {
2623
2588
  super();
@@ -2850,6 +2815,7 @@ function collectChangedBundle(changed, bundle) {
2850
2815
  //#endregion
2851
2816
  //#region src/types/rolldown-output-impl.ts
2852
2817
  var RolldownOutputImpl = class extends PlainObjectLike {
2818
+ bindingOutputs;
2853
2819
  constructor(bindingOutputs) {
2854
2820
  super();
2855
2821
  this.bindingOutputs = bindingOutputs;
@@ -2877,7 +2843,73 @@ Object.defineProperty(BindingMagicString.prototype, "isRolldownMagicString", {
2877
2843
  writable: false,
2878
2844
  configurable: false
2879
2845
  });
2880
- const BindingMagicString$1 = BindingMagicString;
2846
+ function assertString(content, msg) {
2847
+ if (typeof content !== "string") throw new TypeError(msg);
2848
+ }
2849
+ const nativeAppend = BindingMagicString.prototype.append;
2850
+ const nativePrepend = BindingMagicString.prototype.prepend;
2851
+ const nativeAppendLeft = BindingMagicString.prototype.appendLeft;
2852
+ const nativeAppendRight = BindingMagicString.prototype.appendRight;
2853
+ const nativePrependLeft = BindingMagicString.prototype.prependLeft;
2854
+ const nativePrependRight = BindingMagicString.prototype.prependRight;
2855
+ const nativeOverwrite = BindingMagicString.prototype.overwrite;
2856
+ const nativeUpdate = BindingMagicString.prototype.update;
2857
+ BindingMagicString.prototype.append = function(content) {
2858
+ assertString(content, "outro content must be a string");
2859
+ return nativeAppend.call(this, content);
2860
+ };
2861
+ BindingMagicString.prototype.prepend = function(content) {
2862
+ assertString(content, "outro content must be a string");
2863
+ return nativePrepend.call(this, content);
2864
+ };
2865
+ BindingMagicString.prototype.appendLeft = function(index, content) {
2866
+ assertString(content, "inserted content must be a string");
2867
+ return nativeAppendLeft.call(this, index, content);
2868
+ };
2869
+ BindingMagicString.prototype.appendRight = function(index, content) {
2870
+ assertString(content, "inserted content must be a string");
2871
+ return nativeAppendRight.call(this, index, content);
2872
+ };
2873
+ BindingMagicString.prototype.prependLeft = function(index, content) {
2874
+ assertString(content, "inserted content must be a string");
2875
+ return nativePrependLeft.call(this, index, content);
2876
+ };
2877
+ BindingMagicString.prototype.prependRight = function(index, content) {
2878
+ assertString(content, "inserted content must be a string");
2879
+ return nativePrependRight.call(this, index, content);
2880
+ };
2881
+ BindingMagicString.prototype.overwrite = function(start, end, content, options) {
2882
+ assertString(content, "replacement content must be a string");
2883
+ return nativeOverwrite.call(this, start, end, content, options);
2884
+ };
2885
+ BindingMagicString.prototype.update = function(start, end, content, options) {
2886
+ assertString(content, "replacement content must be a string");
2887
+ return nativeUpdate.call(this, start, end, content, options);
2888
+ };
2889
+ const nativeReplace = BindingMagicString.prototype.replace;
2890
+ const nativeReplaceAll = BindingMagicString.prototype.replaceAll;
2891
+ BindingMagicString.prototype.replace = function(searchValue, replacement) {
2892
+ if (typeof searchValue === "string") return nativeReplace.call(this, searchValue, replacement);
2893
+ if (searchValue.global) searchValue.lastIndex = 0;
2894
+ const lastMatchEnd = this.replaceRegex(searchValue, replacement);
2895
+ if (searchValue.global) searchValue.lastIndex = 0;
2896
+ else if (searchValue.sticky) searchValue.lastIndex = lastMatchEnd === -1 ? 0 : lastMatchEnd;
2897
+ return this;
2898
+ };
2899
+ BindingMagicString.prototype.replaceAll = function(searchValue, replacement) {
2900
+ if (typeof searchValue === "string") return nativeReplaceAll.call(this, searchValue, replacement);
2901
+ if (!searchValue.global) throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");
2902
+ searchValue.lastIndex = 0;
2903
+ this.replaceRegex(searchValue, replacement);
2904
+ searchValue.lastIndex = 0;
2905
+ return this;
2906
+ };
2907
+ /**
2908
+ * A native MagicString implementation powered by Rust.
2909
+ *
2910
+ * @experimental
2911
+ */
2912
+ const RolldownMagicString = BindingMagicString;
2881
2913
  //#endregion
2882
2914
  //#region src/parse-ast-index.ts
2883
2915
  function wrap(result, filename, sourceText) {
@@ -2957,7 +2989,7 @@ function normalizeTransformHookSourcemap(id, originalCode, rawMap) {
2957
2989
  return map;
2958
2990
  }
2959
2991
  //#endregion
2960
- //#region ../pluginutils/dist/filter/composable-filters.js
2992
+ //#region ../../node_modules/.pnpm/@rolldown+pluginutils@1.0.0/node_modules/@rolldown/pluginutils/dist/filter/composable-filters.js
2961
2993
  var And = class {
2962
2994
  kind;
2963
2995
  args;
@@ -3040,7 +3072,7 @@ function exclude(expr) {
3040
3072
  return new Exclude(expr);
3041
3073
  }
3042
3074
  //#endregion
3043
- //#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
3075
+ //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/lazyDataLastImpl-DtF3cihj.js
3044
3076
  function e(e, t, n) {
3045
3077
  let r = (n) => e(n, ...t);
3046
3078
  return n === void 0 ? r : Object.assign(r, {
@@ -3049,7 +3081,7 @@ function e(e, t, n) {
3049
3081
  });
3050
3082
  }
3051
3083
  //#endregion
3052
- //#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/purry.js
3084
+ //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/purry.js
3053
3085
  function t$1(t, n, r) {
3054
3086
  let i = t.length - n.length;
3055
3087
  if (i === 0) return t(...n);
@@ -3057,7 +3089,7 @@ function t$1(t, n, r) {
3057
3089
  throw Error(`Wrong number of arguments`);
3058
3090
  }
3059
3091
  //#endregion
3060
- //#region ../../node_modules/.pnpm/remeda@2.33.6/node_modules/remeda/dist/partition.js
3092
+ //#region ../../node_modules/.pnpm/remeda@2.34.0/node_modules/remeda/dist/partition.js
3061
3093
  function t(...t) {
3062
3094
  return t$1(n, t);
3063
3095
  }
@@ -3266,6 +3298,11 @@ function throwNoFileSystemError(method) {
3266
3298
  //#endregion
3267
3299
  //#region src/plugin/plugin-context.ts
3268
3300
  var PluginContextImpl = class extends MinimalPluginContextImpl {
3301
+ outputOptions;
3302
+ context;
3303
+ data;
3304
+ onLog;
3305
+ currentLoadingModule;
3269
3306
  fs = fsModule;
3270
3307
  getModuleInfo;
3271
3308
  constructor(outputOptions, context, plugin, data, onLog, logLevel, watchMode, currentLoadingModule) {
@@ -3373,6 +3410,7 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
3373
3410
  //#endregion
3374
3411
  //#region src/plugin/load-plugin-context.ts
3375
3412
  var LoadPluginContextImpl = class extends PluginContextImpl {
3413
+ inner;
3376
3414
  constructor(outputOptions, context, plugin, data, inner, moduleId, onLog, logLevelOption, watchMode) {
3377
3415
  super(outputOptions, context, plugin, data, onLog, logLevelOption, watchMode, moduleId);
3378
3416
  this.inner = inner;
@@ -3384,6 +3422,9 @@ var LoadPluginContextImpl = class extends PluginContextImpl {
3384
3422
  //#endregion
3385
3423
  //#region src/plugin/transform-plugin-context.ts
3386
3424
  var TransformPluginContextImpl = class extends PluginContextImpl {
3425
+ inner;
3426
+ moduleId;
3427
+ moduleSource;
3387
3428
  constructor(outputOptions, context, plugin, data, inner, moduleId, moduleSource, onLog, LogLevelOption, watchMode) {
3388
3429
  super(outputOptions, context, plugin, data, onLog, LogLevelOption, watchMode, moduleId);
3389
3430
  this.inner = inner;
@@ -3521,7 +3562,7 @@ function bindingifyTransform(args) {
3521
3562
  Object.defineProperties(meta, {
3522
3563
  magicString: { get() {
3523
3564
  if (magicStringInstance) return magicStringInstance;
3524
- magicStringInstance = new BindingMagicString$1(code);
3565
+ magicStringInstance = new RolldownMagicString(code);
3525
3566
  return magicStringInstance;
3526
3567
  } },
3527
3568
  ast: { get() {
@@ -3555,7 +3596,7 @@ function bindingifyTransform(args) {
3555
3596
  let normalizedCode = void 0;
3556
3597
  let map = ret.map;
3557
3598
  if (typeof ret.code === "string") normalizedCode = ret.code;
3558
- else if (ret.code instanceof BindingMagicString$1) {
3599
+ else if (ret.code instanceof RolldownMagicString) {
3559
3600
  let magicString = ret.code;
3560
3601
  normalizedCode = magicString.toString();
3561
3602
  let fallbackSourcemap = ctx.sendMagicString(magicString);
@@ -3644,14 +3685,14 @@ function bindingifyRenderChunk(args) {
3644
3685
  if (args.options.experimental?.nativeMagicString) Object.defineProperty(renderChunkMeta, "magicString", {
3645
3686
  get() {
3646
3687
  if (magicStringInstance) return magicStringInstance;
3647
- magicStringInstance = new BindingMagicString$1(code);
3688
+ magicStringInstance = new RolldownMagicString(code);
3648
3689
  return magicStringInstance;
3649
3690
  },
3650
3691
  configurable: true
3651
3692
  });
3652
3693
  const ret = await handler.call(new PluginContextImpl(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel, args.watchMode), code, transformRenderedChunk(chunk), args.pluginContextData.getOutputOptions(opts), renderChunkMeta);
3653
3694
  if (ret == null) return;
3654
- if (ret instanceof BindingMagicString$1) {
3695
+ if (ret instanceof RolldownMagicString) {
3655
3696
  const normalizedCode = ret.toString();
3656
3697
  const generatedMap = ret.generateMap();
3657
3698
  return {
@@ -3666,7 +3707,7 @@ function bindingifyRenderChunk(args) {
3666
3707
  };
3667
3708
  }
3668
3709
  if (typeof ret === "string") return { code: ret };
3669
- if (ret.code instanceof BindingMagicString$1) {
3710
+ if (ret.code instanceof RolldownMagicString) {
3670
3711
  const magicString = ret.code;
3671
3712
  const normalizedCode = magicString.toString();
3672
3713
  if (ret.map === null) return { code: normalizedCode };
@@ -3841,30 +3882,6 @@ function bindingifyCloseWatcher(args) {
3841
3882
  }
3842
3883
  //#endregion
3843
3884
  //#region src/plugin/generated/hook-usage.ts
3844
- let HookUsageKind = /* @__PURE__ */ function(HookUsageKind) {
3845
- HookUsageKind[HookUsageKind["buildStart"] = 1] = "buildStart";
3846
- HookUsageKind[HookUsageKind["resolveId"] = 2] = "resolveId";
3847
- HookUsageKind[HookUsageKind["resolveDynamicImport"] = 4] = "resolveDynamicImport";
3848
- HookUsageKind[HookUsageKind["load"] = 8] = "load";
3849
- HookUsageKind[HookUsageKind["transform"] = 16] = "transform";
3850
- HookUsageKind[HookUsageKind["moduleParsed"] = 32] = "moduleParsed";
3851
- HookUsageKind[HookUsageKind["buildEnd"] = 64] = "buildEnd";
3852
- HookUsageKind[HookUsageKind["renderStart"] = 128] = "renderStart";
3853
- HookUsageKind[HookUsageKind["renderError"] = 256] = "renderError";
3854
- HookUsageKind[HookUsageKind["renderChunk"] = 512] = "renderChunk";
3855
- HookUsageKind[HookUsageKind["augmentChunkHash"] = 1024] = "augmentChunkHash";
3856
- HookUsageKind[HookUsageKind["generateBundle"] = 2048] = "generateBundle";
3857
- HookUsageKind[HookUsageKind["writeBundle"] = 4096] = "writeBundle";
3858
- HookUsageKind[HookUsageKind["closeBundle"] = 8192] = "closeBundle";
3859
- HookUsageKind[HookUsageKind["watchChange"] = 16384] = "watchChange";
3860
- HookUsageKind[HookUsageKind["closeWatcher"] = 32768] = "closeWatcher";
3861
- HookUsageKind[HookUsageKind["transformAst"] = 65536] = "transformAst";
3862
- HookUsageKind[HookUsageKind["banner"] = 131072] = "banner";
3863
- HookUsageKind[HookUsageKind["footer"] = 262144] = "footer";
3864
- HookUsageKind[HookUsageKind["intro"] = 524288] = "intro";
3865
- HookUsageKind[HookUsageKind["outro"] = 1048576] = "outro";
3866
- return HookUsageKind;
3867
- }({});
3868
3885
  var HookUsage = class {
3869
3886
  bitflag = BigInt(0);
3870
3887
  constructor() {}
@@ -3877,26 +3894,26 @@ var HookUsage = class {
3877
3894
  };
3878
3895
  function extractHookUsage(plugin) {
3879
3896
  let hookUsage = new HookUsage();
3880
- if (plugin.buildStart) hookUsage.union(HookUsageKind.buildStart);
3881
- if (plugin.resolveId) hookUsage.union(HookUsageKind.resolveId);
3882
- if (plugin.resolveDynamicImport) hookUsage.union(HookUsageKind.resolveDynamicImport);
3883
- if (plugin.load) hookUsage.union(HookUsageKind.load);
3884
- if (plugin.transform) hookUsage.union(HookUsageKind.transform);
3885
- if (plugin.moduleParsed) hookUsage.union(HookUsageKind.moduleParsed);
3886
- if (plugin.buildEnd) hookUsage.union(HookUsageKind.buildEnd);
3887
- if (plugin.renderStart) hookUsage.union(HookUsageKind.renderStart);
3888
- if (plugin.renderError) hookUsage.union(HookUsageKind.renderError);
3889
- if (plugin.renderChunk) hookUsage.union(HookUsageKind.renderChunk);
3890
- if (plugin.augmentChunkHash) hookUsage.union(HookUsageKind.augmentChunkHash);
3891
- if (plugin.generateBundle) hookUsage.union(HookUsageKind.generateBundle);
3892
- if (plugin.writeBundle) hookUsage.union(HookUsageKind.writeBundle);
3893
- if (plugin.closeBundle) hookUsage.union(HookUsageKind.closeBundle);
3894
- if (plugin.watchChange) hookUsage.union(HookUsageKind.watchChange);
3895
- if (plugin.closeWatcher) hookUsage.union(HookUsageKind.closeWatcher);
3896
- if (plugin.banner) hookUsage.union(HookUsageKind.banner);
3897
- if (plugin.footer) hookUsage.union(HookUsageKind.footer);
3898
- if (plugin.intro) hookUsage.union(HookUsageKind.intro);
3899
- if (plugin.outro) hookUsage.union(HookUsageKind.outro);
3897
+ if (plugin.buildStart) hookUsage.union(1);
3898
+ if (plugin.resolveId) hookUsage.union(2);
3899
+ if (plugin.resolveDynamicImport) hookUsage.union(4);
3900
+ if (plugin.load) hookUsage.union(8);
3901
+ if (plugin.transform) hookUsage.union(16);
3902
+ if (plugin.moduleParsed) hookUsage.union(32);
3903
+ if (plugin.buildEnd) hookUsage.union(64);
3904
+ if (plugin.renderStart) hookUsage.union(128);
3905
+ if (plugin.renderError) hookUsage.union(256);
3906
+ if (plugin.renderChunk) hookUsage.union(512);
3907
+ if (plugin.augmentChunkHash) hookUsage.union(1024);
3908
+ if (plugin.generateBundle) hookUsage.union(2048);
3909
+ if (plugin.writeBundle) hookUsage.union(4096);
3910
+ if (plugin.closeBundle) hookUsage.union(8192);
3911
+ if (plugin.watchChange) hookUsage.union(16384);
3912
+ if (plugin.closeWatcher) hookUsage.union(32768);
3913
+ if (plugin.banner) hookUsage.union(131072);
3914
+ if (plugin.footer) hookUsage.union(262144);
3915
+ if (plugin.intro) hookUsage.union(524288);
3916
+ if (plugin.outro) hookUsage.union(1048576);
3900
3917
  return hookUsage;
3901
3918
  }
3902
3919
  //#endregion
@@ -4022,6 +4039,8 @@ function wrapHandlers(plugin) {
4022
4039
  //#endregion
4023
4040
  //#region src/options/normalized-input-options.ts
4024
4041
  var NormalizedInputOptionsImpl = class extends PlainObjectLike {
4042
+ onLog;
4043
+ inputPlugins;
4025
4044
  inner;
4026
4045
  constructor(inner, onLog, inputPlugins) {
4027
4046
  super();
@@ -4056,6 +4075,9 @@ __decorate([lazyProp], NormalizedInputOptionsImpl.prototype, "context", null);
4056
4075
  //#endregion
4057
4076
  //#region src/options/normalized-output-options.ts
4058
4077
  var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
4078
+ inner;
4079
+ outputOptions;
4080
+ normalizedOutputPlugins;
4059
4081
  constructor(inner, outputOptions, normalizedOutputPlugins) {
4060
4082
  super();
4061
4083
  this.inner = inner;
@@ -4146,6 +4168,9 @@ var NormalizedOutputOptionsImpl = class extends PlainObjectLike {
4146
4168
  get sourcemapDebugIds() {
4147
4169
  return this.inner.sourcemapDebugIds;
4148
4170
  }
4171
+ get sourcemapExcludeSources() {
4172
+ return this.inner.sourcemapExcludeSources;
4173
+ }
4149
4174
  get sourcemapIgnoreList() {
4150
4175
  return this.outputOptions.sourcemapIgnoreList;
4151
4176
  }
@@ -4221,6 +4246,7 @@ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "globals", null);
4221
4246
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "paths", null);
4222
4247
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "hashCharacters", null);
4223
4248
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapDebugIds", null);
4249
+ __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapExcludeSources", null);
4224
4250
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapIgnoreList", null);
4225
4251
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "sourcemapPathTransform", null);
4226
4252
  __decorate([lazyProp], NormalizedOutputOptionsImpl.prototype, "minify", null);
@@ -4240,6 +4266,10 @@ function normalizeAddon(value) {
4240
4266
  //#endregion
4241
4267
  //#region src/plugin/plugin-context-data.ts
4242
4268
  var PluginContextData = class {
4269
+ onLog;
4270
+ outputOptions;
4271
+ normalizedInputPlugins;
4272
+ normalizedOutputPlugins;
4243
4273
  moduleOptionMap = /* @__PURE__ */ new Map();
4244
4274
  resolveOptionsMap = /* @__PURE__ */ new Map();
4245
4275
  loadModulePromiseMap = /* @__PURE__ */ new Map();
@@ -4605,6 +4635,7 @@ function bindingifyPreserveEntrySignatures(preserveEntrySignatures) {
4605
4635
  //#endregion
4606
4636
  //#region src/types/chunking-context.ts
4607
4637
  var ChunkingContextImpl = class {
4638
+ context;
4608
4639
  constructor(context) {
4609
4640
  this.context = context;
4610
4641
  }
@@ -5060,7 +5091,7 @@ const logger = createConsola({ formatOptions: { date: false } });
5060
5091
  //#endregion
5061
5092
  //#region src/utils/bindingify-output-options.ts
5062
5093
  function bindingifyOutputOptions(outputOptions) {
5063
- const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
5094
+ const { dir, format, exports, hashCharacters, sourcemap, sourcemapBaseUrl, sourcemapDebugIds, sourcemapExcludeSources, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, banner, footer, postBanner, postFooter, intro, outro, esModule, globals, paths, generatedCode, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, comments, preserveModulesRoot, manualChunks, topLevelVar, cleanDir, strictExecutionOrder } = outputOptions;
5064
5095
  if (legalComments != null) logger.warn("`legalComments` option is deprecated, please use `comments.legal` instead.");
5065
5096
  const { inlineDynamicImports, advancedChunks } = bindingifyCodeSplitting(outputOptions.codeSplitting, outputOptions.inlineDynamicImports, outputOptions.advancedChunks, manualChunks);
5066
5097
  return {
@@ -5072,6 +5103,7 @@ function bindingifyOutputOptions(outputOptions) {
5072
5103
  sourcemap: bindingifySourcemap(sourcemap),
5073
5104
  sourcemapBaseUrl,
5074
5105
  sourcemapDebugIds,
5106
+ sourcemapExcludeSources,
5075
5107
  sourcemapIgnoreList: sourcemapIgnoreList ?? /node_modules/,
5076
5108
  sourcemapPathTransform,
5077
5109
  banner: bindingifyAddon(banner),
@@ -5341,4 +5373,4 @@ var RolldownBuild = class RolldownBuild {
5341
5373
  }
5342
5374
  };
5343
5375
  //#endregion
5344
- export { validateOption as a, arraify as c, transformToRollupOutput as i, RUNTIME_MODULE_ID as l, createBundlerOptions as n, PluginDriver as o, BindingMagicString$1 as r, LOG_LEVEL_WARN as s, RolldownBuild as t, VERSION as u };
5376
+ export { validateOption as a, arraify as c, transformToRollupOutput as i, RUNTIME_MODULE_ID as l, createBundlerOptions as n, PluginDriver as o, RolldownMagicString as r, LOG_LEVEL_WARN as s, RolldownBuild as t, VERSION as u };