@voidzero-dev/vite-plus-core 0.2.3 → 0.2.5

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 (72) hide show
  1. package/LICENSE +7 -115
  2. package/dist/rolldown/cli.mjs +11 -8
  3. package/dist/rolldown/config.d.mts +15 -2
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +4 -4
  6. package/dist/rolldown/experimental-index.mjs +8 -8
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +3 -3
  9. package/dist/rolldown/index.mjs +10 -4
  10. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  11. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  13. package/dist/rolldown/parse-ast-index.mjs +2 -2
  14. package/dist/rolldown/plugins-index.d.mts +3 -3
  15. package/dist/rolldown/plugins-index.mjs +2 -2
  16. package/dist/rolldown/shared/{binding-B1q9aYT-.d.mts → binding-D26QphWG.d.mts} +12 -0
  17. package/dist/rolldown/shared/{binding-BmkJW3Wy.mjs → binding-TuFFIE_J.mjs} +26 -26
  18. package/dist/rolldown/shared/{bindingify-input-options-Cmm60vfj.mjs → bindingify-input-options-CwbcQL6W.mjs} +11 -13
  19. package/dist/rolldown/shared/{constructors-2i1T9YcF.d.mts → constructors-BbWPse2X.d.mts} +2 -2
  20. package/dist/rolldown/shared/{constructors-CE6zZSUt.mjs → constructors-D_3i7dpX.mjs} +1 -1
  21. package/dist/rolldown/shared/{define-config-BBz954-q.d.mts → define-config-BhJ90aEv.d.mts} +79 -2
  22. package/dist/rolldown/shared/dist-DX3cAjHx.mjs +154 -0
  23. package/dist/rolldown/shared/{error-BlQ0-ek7.mjs → error-BHRSI0R7.mjs} +1 -1
  24. package/dist/rolldown/shared/{load-config-CVVMWSlg.mjs → load-config-Bd7MgqCK.mjs} +19 -2
  25. package/dist/rolldown/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
  26. package/dist/rolldown/shared/{normalize-string-or-regex-BYkbbGqQ.mjs → normalize-string-or-regex-dnh67V_w.mjs} +2 -2
  27. package/dist/rolldown/shared/{parse-Dphnedsw.mjs → parse-B6_waszz.mjs} +2 -2
  28. package/dist/rolldown/shared/{prompt-Bgj-uEyc.mjs → prompt-pZFoa1TT.mjs} +59 -17
  29. package/dist/rolldown/shared/{resolve-tsconfig-CdIAR1Eb.mjs → resolve-tsconfig-DxqIJB3x.mjs} +2 -2
  30. package/dist/rolldown/shared/{rolldown-Bnp916iM.mjs → rolldown-CACDGVWV.mjs} +1 -1
  31. package/dist/rolldown/shared/{rolldown-build-Cs2iVJuw.mjs → rolldown-build-BV22mk7t.mjs} +33 -13
  32. package/dist/rolldown/shared/{transform-CEmFsvJW.d.mts → transform-BPrUvqEZ.d.mts} +1 -1
  33. package/dist/rolldown/shared/{watch-ECGr-_QS.mjs → watch-CS_JygCu.mjs} +5 -5
  34. package/dist/rolldown/utils-index.d.mts +3 -3
  35. package/dist/rolldown/utils-index.mjs +8 -6
  36. package/dist/tsdown/{build-B_nvJe4A-CvbtVBxy.js → build-BlM3pDGJ-C8Uovnt4.js} +166 -76
  37. package/dist/tsdown/{debug-DLdR-9XB-DQZ6QLC0.js → debug-B1wUEHkd-DhRzGJTf.js} +21 -6
  38. package/dist/tsdown/{detect-B97OSl92-BJPZyIKJ.js → detect-BNXt7gkp-DKAC9Z7n.js} +7 -2
  39. package/dist/tsdown/dist-Pjag7IPt.js +3206 -0
  40. package/dist/tsdown/fs-qxJxxoCE-B_amenYz.js +46 -0
  41. package/dist/tsdown/{general-Cp4NiJNK-CbyrS9q1.js → general-Cp4NiJNK-xAqmPhMP.js} +1 -1
  42. package/dist/tsdown/index-types.d.ts +1361 -1326
  43. package/dist/tsdown/index.js +7 -4
  44. package/dist/tsdown/internal-Bn6NGoha.js +3 -0
  45. package/dist/tsdown/npm_cjs_chunk_range.cjs +14 -13
  46. package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
  47. package/dist/tsdown/npm_entry_picomatch.cjs +44 -15
  48. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +2 -2
  49. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +1 -1
  50. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
  51. package/dist/tsdown/run.js +3 -3
  52. package/dist/tsdown/{src-CISfE_A0.js → src-CK50m8R_.js} +5 -5
  53. package/dist/tsdown/target-CqeSqtms-CIvlAiuG.js +35 -0
  54. package/dist/tsdown/{tsc-CdZE7QwS.js → tsc-CilQvmj4.js} +15 -7
  55. package/dist/tsdown/{tsc-context-CX_GXdyS.js → tsc-context-BusiAGCd.js} +6 -2
  56. package/dist/tsdown/tsdown-css.js +74 -23
  57. package/dist/tsdown/tsdown-exe.js +27 -26
  58. package/dist/vite/client/client.mjs +4 -4
  59. package/dist/vite/node/chunks/build.js +194 -84
  60. package/dist/vite/node/chunks/dist2.js +1 -1
  61. package/dist/vite/node/chunks/lib.js +1 -1
  62. package/dist/vite/node/chunks/node.js +484 -71
  63. package/dist/vite/node/chunks/postcss-import.js +1 -1
  64. package/dist/vite/node/cli.js +3 -4
  65. package/dist/vite/node/index.d.ts +3 -3
  66. package/dist/vite/node/index.js +1 -2
  67. package/package.json +18 -16
  68. package/dist/tsdown/dist-CZtGyfn3.js +0 -200
  69. package/dist/tsdown/dist-CqbVlnVq.js +0 -32057
  70. package/dist/tsdown/internal-bfoxcI4F.js +0 -3
  71. package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +0 -79
  72. package/dist/vite/node/chunks/logger.js +0 -361
package/LICENSE CHANGED
@@ -28,63 +28,6 @@ The published Vite-Plus artifact additionally contains code with the following l
28
28
  Apache-2.0, BSD-2-Clause, CC0-1.0, ISC, MIT
29
29
 
30
30
  # Bundled dependencies:
31
- ## @babel/generator, @babel/helper-string-parser, @babel/helper-validator-identifier, @babel/types
32
- License: MIT
33
- By: The Babel Team (https://babel.dev/team)
34
- Repositories: https://github.com/babel/babel, https://github.com/babel/babel, https://github.com/babel/babel, https://github.com/babel/babel
35
-
36
- > MIT License
37
- >
38
- > Copyright (c) 2014-present Sebastian McKenzie and other contributors
39
- >
40
- > Permission is hereby granted, free of charge, to any person obtaining
41
- > a copy of this software and associated documentation files (the
42
- > "Software"), to deal in the Software without restriction, including
43
- > without limitation the rights to use, copy, modify, merge, publish,
44
- > distribute, sublicense, and/or sell copies of the Software, and to
45
- > permit persons to whom the Software is furnished to do so, subject to
46
- > the following conditions:
47
- >
48
- > The above copyright notice and this permission notice shall be
49
- > included in all copies or substantial portions of the Software.
50
- >
51
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
52
- > EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
53
- > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
54
- > NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
55
- > LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
56
- > OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
57
- > WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
58
-
59
- ---------------------------------------
60
-
61
- ## @babel/parser
62
- License: MIT
63
- By: The Babel Team (https://babel.dev/team)
64
- Repository: https://github.com/babel/babel
65
-
66
- > Copyright (C) 2012-2014 by various contributors (see AUTHORS)
67
- >
68
- > Permission is hereby granted, free of charge, to any person obtaining a copy
69
- > of this software and associated documentation files (the "Software"), to deal
70
- > in the Software without restriction, including without limitation the rights
71
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72
- > copies of the Software, and to permit persons to whom the Software is
73
- > furnished to do so, subject to the following conditions:
74
- >
75
- > The above copyright notice and this permission notice shall be included in
76
- > all copies or substantial portions of the Software.
77
- >
78
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
84
- > THE SOFTWARE.
85
-
86
- ---------------------------------------
87
-
88
31
  ## @jridgewell/gen-mapping, @jridgewell/remapping, @jridgewell/sourcemap-codec, @jridgewell/trace-mapping
89
32
  License: MIT
90
33
  By: Justin Ridgewell <justin@ridgewell.name>
@@ -594,35 +537,6 @@ Repository: https://github.com/sapphi-red/artichokie
594
537
 
595
538
  ---------------------------------------
596
539
 
597
- ## ast-kit
598
- License: MIT
599
- By: Kevin Deng <sxzz@sxzz.moe>
600
- Repository: https://github.com/sxzz/ast-kit
601
-
602
- > The MIT License (MIT)
603
- >
604
- > Copyright © 2023-PRESENT Kevin Deng (https://github.com/sxzz)
605
- >
606
- > Permission is hereby granted, free of charge, to any person obtaining a copy
607
- > of this software and associated documentation files (the "Software"), to deal
608
- > in the Software without restriction, including without limitation the rights
609
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
610
- > copies of the Software, and to permit persons to whom the Software is
611
- > furnished to do so, subject to the following conditions:
612
- >
613
- > The above copyright notice and this permission notice shall be included in all
614
- > copies or substantial portions of the Software.
615
- >
616
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
617
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
618
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
619
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
620
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
621
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
622
- > SOFTWARE.
623
-
624
- ---------------------------------------
625
-
626
540
  ## binary-extensions
627
541
  License: MIT
628
542
  By: Sindre Sorhus
@@ -641,35 +555,6 @@ Repository: https://github.com/sindresorhus/binary-extensions
641
555
 
642
556
  ---------------------------------------
643
557
 
644
- ## birpc
645
- License: MIT
646
- By: Anthony Fu <anthonyfu117@hotmail.com>
647
- Repository: https://github.com/antfu-collective/birpc
648
-
649
- > MIT License
650
- >
651
- > Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
652
- >
653
- > Permission is hereby granted, free of charge, to any person obtaining a copy
654
- > of this software and associated documentation files (the "Software"), to deal
655
- > in the Software without restriction, including without limitation the rights
656
- > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
657
- > copies of the Software, and to permit persons to whom the Software is
658
- > furnished to do so, subject to the following conditions:
659
- >
660
- > The above copyright notice and this permission notice shall be included in all
661
- > copies or substantial portions of the Software.
662
- >
663
- > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
664
- > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
665
- > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
666
- > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
667
- > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
668
- > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
669
- > SOFTWARE.
670
-
671
- ---------------------------------------
672
-
673
558
  ## braces, fill-range, is-number
674
559
  License: MIT
675
560
  By: Jon Schlinkert (https://github.com/jonschlinkert), Brian Woodward (https://twitter.com/doowb), Elan Shanker (https://github.com/es128), Eugene Sharygin (https://github.com/eush77), hemanth.hm (http://h3manth.com), Jon Schlinkert (http://twitter.com/jonschlinkert)
@@ -5339,3 +5224,10 @@ Repository: https://github.com/eemeli/yaml
5339
5224
  > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5340
5225
  > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
5341
5226
  > THIS SOFTWARE.
5227
+
5228
+ ---------------------------------------
5229
+
5230
+ ## yuku-ast
5231
+ License: MIT
5232
+ By: Arshad Yaseen <arshadpyaseen@gmail.com> (https://arshad.fyi)
5233
+ Repository: https://github.com/yuku-toolchain/yuku-ast
@@ -1,9 +1,9 @@
1
- import { n as onExit, t as watch } from "./shared/watch-ECGr-_QS.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
1
+ import { n as onExit, t as watch } from "./shared/watch-CS_JygCu.mjs";
2
+ import { S as version, x as description } from "./shared/bindingify-input-options-CwbcQL6W.mjs";
3
3
  import { t as arraify } from "./shared/misc-CoQm4NHO.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-Cs2iVJuw.mjs";
5
- import { t as rolldown } from "./shared/rolldown-Bnp916iM.mjs";
6
- import { t as loadConfig } from "./shared/load-config-CVVMWSlg.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-BV22mk7t.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-CACDGVWV.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-Bd7MgqCK.mjs";
7
7
  import path from "node:path";
8
8
  import g$1 from "node:process";
9
9
  import { performance } from "node:perf_hooks";
@@ -631,6 +631,7 @@ const alias = {
631
631
  abbreviation: "c",
632
632
  hint: "filename"
633
633
  },
634
+ configLoader: { hint: "loader" },
634
635
  help: { abbreviation: "h" },
635
636
  version: { abbreviation: "v" },
636
637
  watch: { abbreviation: "w" },
@@ -684,7 +685,8 @@ const reservedKeys = /* @__PURE__ */ new Set([
684
685
  "version",
685
686
  "config",
686
687
  "watch",
687
- "environment"
688
+ "environment",
689
+ "configLoader"
688
690
  ]);
689
691
  function normalizeCliOptions(cliOptions, positionals) {
690
692
  const [data, errors] = validateCliOptions(cliOptions);
@@ -705,6 +707,7 @@ function normalizeCliOptions(cliOptions, positionals) {
705
707
  if (typeof options.config === "string") result.config = options.config;
706
708
  else if (options.config === true) result.config = "";
707
709
  if (options.environment !== void 0) result.environment = options.environment;
710
+ if (options.configLoader !== void 0) result.configLoader = options.configLoader;
708
711
  const keysOfInput = new Set(getInputCliKeys());
709
712
  const keysOfOutput = new Set(getOutputCliKeys());
710
713
  for (let [key, value] of Object.entries(options)) {
@@ -859,7 +862,7 @@ function getClearScreenFunction(options) {
859
862
  };
860
863
  }
861
864
  //#endregion
862
- //#region \0@oxc-project+runtime@0.138.0/helpers/esm/usingCtx.js
865
+ //#region \0@oxc-project+runtime@0.139.0/helpers/esm/usingCtx.js
863
866
  function _usingCtx() {
864
867
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
865
868
  var n = Error();
@@ -921,7 +924,7 @@ async function bundleWithConfig(configPath, cliOptions, rawArgs = {}) {
921
924
  process.env.ROLLUP_WATCH = "true";
922
925
  process.env.ROLLDOWN_WATCH = "true";
923
926
  }
924
- const config = await loadConfig(configPath);
927
+ const config = await loadConfig(configPath, { configLoader: cliOptions.configLoader });
925
928
  const resolvedConfig = typeof config === "function" ? await config(rawArgs) : config;
926
929
  if (typeof resolvedConfig !== "object" || resolvedConfig === null) {
927
930
  logger.error(`Invalid configuration from ${configPath}: expected object or array, got ${resolvedConfig}`);
@@ -1,14 +1,27 @@
1
- import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BBz954-q.mjs";
1
+ import { L as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BhJ90aEv.mjs";
2
2
 
3
3
  //#region src/utils/load-config.d.ts
4
+ type ConfigLoader = "bundle" | "native";
5
+ interface LoadConfigOptions {
6
+ /**
7
+ * How to load the config file.
8
+ * - `'bundle'` (default): bundle the config with Rolldown, then import it.
9
+ * - `'native'`: import the config directly, delegating TypeScript/loader
10
+ * handling to the runtime. Faster, but requires runtime support.
11
+ *
12
+ * @default 'bundle'
13
+ */
14
+ configLoader?: ConfigLoader;
15
+ }
4
16
  /**
5
17
  * Load config from a file in a way that Rolldown does.
6
18
  *
7
19
  * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
20
+ * @param options Loading options. `configLoader` selects `'bundle'` (default) or `'native'`.
8
21
  * @returns The loaded config export
9
22
  *
10
23
  * @category Config
11
24
  */
12
- declare function loadConfig(configPath: string): Promise<ConfigExport>;
25
+ declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
13
26
  //#endregion
14
27
  export { VERSION, defineConfig, loadConfig };
@@ -1,4 +1,4 @@
1
- import { x as VERSION } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
1
+ import { b as VERSION } from "./shared/bindingify-input-options-CwbcQL6W.mjs";
2
2
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
3
- import { t as loadConfig } from "./shared/load-config-CVVMWSlg.mjs";
3
+ import { t as loadConfig } from "./shared/load-config-Bd7MgqCK.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };
@@ -1,7 +1,7 @@
1
- import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-B1q9aYT-.mjs";
2
- import { Jt as RolldownOutput, P as BuiltinPlugin, Ut as StringOrRegExp, Xt as freeExternalMemory, Z as defineParallelPlugin, ct as NormalizedOutputOptions, l as InputOptions, zt as OutputOptions } from "./shared/define-config-BBz954-q.mjs";
3
- import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-CEmFsvJW.mjs";
4
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-2i1T9YcF.mjs";
1
+ import { B as ResolveResult, C as BindingViteManifestPluginConfig, G as isolatedDeclaration, I as NapiResolveOptions, K as isolatedDeclarationSync, M as IsolatedDeclarationsResult, O as BindingViteTransformPluginConfig, V as ResolverFactory, _ as BindingTsconfigRawOptions, f as BindingRebuildStrategy, g as BindingTsconfigCompilerOptions, i as BindingClientHmrUpdate, j as IsolatedDeclarationsOptions, n as BindingBundleAnalyzerPluginConfig, q as moduleRunnerTransform, r as BindingBundleState } from "./shared/binding-D26QphWG.mjs";
2
+ import { Bt as OutputOptions, F as BuiltinPlugin, Q as defineParallelPlugin, Wt as StringOrRegExp, Yt as RolldownOutput, Zt as freeExternalMemory, l as InputOptions, lt as NormalizedOutputOptions } from "./shared/define-config-BhJ90aEv.mjs";
3
+ import { a as MinifyOptions$1, c as minifySync$1, d as parse$1, f as parseSync$1, i as transformSync$1, l as ParseResult$1, m as resolveTsconfig, n as TransformResult$1, o as MinifyResult$1, p as TsconfigCache$1, r as transform$1, s as minify$1, t as TransformOptions$1, u as ParserOptions$1 } from "./shared/transform-BPrUvqEZ.mjs";
4
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-BbWPse2X.mjs";
5
5
 
6
6
  //#region src/api/dev/dev-options.d.ts
7
7
  type DevOnHmrUpdates = (result: Error | {
@@ -1,11 +1,11 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
2
- import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-BYkbbGqQ.mjs";
3
- import { o as transformToRollupOutput } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
4
- import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-Cs2iVJuw.mjs";
5
- import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BlQ0-ek7.mjs";
6
- import { n as parseSync$1, t as parse$1 } from "./shared/parse-Dphnedsw.mjs";
7
- import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-CE6zZSUt.mjs";
8
- import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-CdIAR1Eb.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-TuFFIE_J.mjs";
2
+ import { n as BuiltinPlugin, t as normalizedStringOrRegex } from "./shared/normalize-string-or-regex-dnh67V_w.mjs";
3
+ import { o as transformToRollupOutput } from "./shared/bindingify-input-options-CwbcQL6W.mjs";
4
+ import { c as validateOption, n as createBundlerOptions, t as RolldownBuild, u as PluginDriver } from "./shared/rolldown-build-BV22mk7t.mjs";
5
+ import { i as unwrapBindingResult, r as normalizeBindingResult } from "./shared/error-BHRSI0R7.mjs";
6
+ import { n as parseSync$1, t as parse$1 } from "./shared/parse-B6_waszz.mjs";
7
+ import { a as viteDynamicImportVarsPlugin, c as viteLoadFallbackPlugin, d as viteReporterPlugin, f as viteResolvePlugin, i as viteBuildImportAnalysisPlugin, l as viteModulePreloadPolyfillPlugin, n as isolatedDeclarationPlugin, o as viteImportGlobPlugin, p as viteWebWorkerPostPlugin, r as oxcRuntimePlugin, s as viteJsonPlugin, u as viteReactRefreshWrapperPlugin } from "./shared/constructors-D_3i7dpX.mjs";
8
+ import { a as minify$1, i as transformSync$1, n as resolveTsconfig, o as minifySync$1, r as transform$1, t as TsconfigCache$1 } from "./shared/resolve-tsconfig-DxqIJB3x.mjs";
9
9
  import { pathToFileURL } from "node:url";
10
10
  //#region src/api/dev/dev-engine.ts
11
11
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { N as withFilter } from "./shared/define-config-BBz954-q.mjs";
1
+ import { P as withFilter } from "./shared/define-config-BhJ90aEv.mjs";
2
2
 
3
3
  //#region ../../../node_modules/.pnpm/@rolldown+pluginutils@1.0.1/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts
4
4
  //#region src/filter/composable-filters.d.ts
@@ -1,4 +1,4 @@
1
1
  import { a as RolldownLog, i as RolldownError, n as LogLevelOption, o as RolldownLogWithString, r as LogOrStringHandler, t as LogLevel } from "./shared/logging-BSNejiLS.mjs";
2
- import { z as PreRenderedChunk } from "./shared/binding-B1q9aYT-.mjs";
3
- import { $ as PluginContextMeta, A as RolldownPluginOption, At as CodeSplittingGroup, B as OutputBundle, Bt as PreRenderedAsset, C as ParallelPluginHooks, Ct as build, D as ResolveIdResult, Dt as BuiltinModuleTag, E as ResolveIdExtraOptions, Et as AdvancedChunksOptions, F as RUNTIME_MODULE_ID, Ft as GeneratedCodePreset, G as EmittedFile, Gt as OutputChunk, H as TransformPluginContext, Ht as PartialNull, I as VERSION, It as GlobalsFunction, J as PluginContext, Jt as RolldownOutput, K as EmittedPrebuiltChunk, Kt as RenderedChunk, L as BundleError, Lt as MinifyOptions, M as TransformResult, Mt as CodeSplittingOptions, Nt as CommentsOptions, O as ResolvedId, Ot as ChunkFileNamesFunction, Pt as GeneratedCodeOptions, Q as MinimalPluginContext, Qt as SourcemapIgnoreListOption, R as ExistingRawSourceMap, Rt as ModuleFormat, S as ObjectHook, St as BuildOptions, T as Plugin, Tt as AdvancedChunksGroup, U as EmittedAsset, V as TreeshakingOptions, W as EmittedChunk, Wt as OutputAsset, X as DefineParallelPluginResult, Y as PluginContextResolveOptions, Yt as SourceMap, Zt as ModuleInfo, _ as HookFilterExtension, _t as RolldownWatcherEvent, a as ChunkOptimizationOptions, at as RolldownFileStats, b as ModuleOptions, bt as rolldown, c as InputOption, ct as NormalizedOutputOptions, d as OptimizationOptions, dt as ChecksOptions, et as GeneralHookFilter, f as WatcherFileWatcherOptions, ft as LoggingFunction, g as FunctionPluginHooks, gt as RolldownWatcher, h as CustomPluginOptions, ht as watch, i as RolldownOptions, it as RolldownDirectoryEntry, j as SourceDescription, jt as CodeSplittingNameFunction, k as RolldownPlugin, kt as ChunkingContext, l as InputOptions, lt as NormalizedInputOptions, m as AsyncPluginHooks, mt as RolldownMagicString, n as RolldownOptionsFunction, nt as ModuleTypeFilter, o as ExternalOption, ot as RolldownFsModule, p as WatcherOptions, pt as WarningHandlerWithDefault, q as GetModuleInfo, qt as RenderedModule, r as defineConfig, rt as BufferEncoding, s as ExternalOptionFunction, st as InternalModuleFormat, t as ConfigExport, tt as HookFilter, u as ModuleTypes, ut as TransformOptions, v as ImportKind, vt as RolldownWatcherWatcherEventMap, w as PartialResolvedId, wt as AddonFunction, x as ModuleType, xt as RolldownBuild, y as LoadResult, yt as WatchOptions, z as SourceMapInput, zt as OutputOptions } from "./shared/define-config-BBz954-q.mjs";
4
- export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
2
+ import { z as PreRenderedChunk } from "./shared/binding-D26QphWG.mjs";
3
+ import { $ as MinimalPluginContext, $t as SourcemapIgnoreListOption, A as RolldownPlugin, At as ChunkingContext, B as SourceMapInput, Bt as OutputOptions, C as ParallelPluginHooks, Ct as BuildOptions, D as ResolveIdExtraOptions, Dt as AdvancedChunksOptions, E as PluginMeta, Et as AdvancedChunksGroup, Ft as GeneratedCodeOptions, G as EmittedChunk, Gt as OutputAsset, H as TreeshakingOptions, I as RUNTIME_MODULE_ID, It as GeneratedCodePreset, J as GetModuleInfo, Jt as RenderedModule, K as EmittedFile, Kt as OutputChunk, L as VERSION, Lt as GlobalsFunction, M as SourceDescription, Mt as CodeSplittingNameFunction, N as TransformResult, Nt as CodeSplittingOptions, O as ResolveIdResult, Ot as BuiltinModuleTag, Pt as CommentsOptions, Qt as ModuleInfo, R as BundleError, Rt as MinifyOptions, S as ObjectHook, St as RolldownBuild, T as Plugin, Tt as AddonFunction, U as TransformPluginContext, Ut as PartialNull, V as OutputBundle, Vt as PreRenderedAsset, W as EmittedAsset, X as PluginContextResolveOptions, Xt as SourceMap, Y as PluginContext, Yt as RolldownOutput, Z as DefineParallelPluginResult, _ as HookFilterExtension, _t as RolldownWatcher, a as ChunkOptimizationOptions, at as RolldownDirectoryEntry, b as ModuleOptions, bt as WatchOptions, c as InputOption, ct as InternalModuleFormat, d as OptimizationOptions, dt as TransformOptions, et as PluginContextMeta, f as WatcherFileWatcherOptions, ft as ChecksOptions, g as FunctionPluginHooks, gt as watch, h as CustomPluginOptions, ht as RolldownMagicString, i as RolldownOptions, it as BufferEncoding, j as RolldownPluginOption, jt as CodeSplittingGroup, k as ResolvedId, kt as ChunkFileNamesFunction, l as InputOptions, lt as NormalizedOutputOptions, m as AsyncPluginHooks, mt as WarningHandlerWithDefault, n as RolldownOptionsFunction, nt as HookFilter, o as ExternalOption, ot as RolldownFileStats, p as WatcherOptions, pt as LoggingFunction, q as EmittedPrebuiltChunk, qt as RenderedChunk, r as defineConfig, rt as ModuleTypeFilter, s as ExternalOptionFunction, st as RolldownFsModule, t as ConfigExport, tt as GeneralHookFilter, u as ModuleTypes, ut as NormalizedInputOptions, v as ImportKind, vt as RolldownWatcherEvent, w as PartialResolvedId, wt as build, x as ModuleType, xt as rolldown, y as LoadResult, yt as RolldownWatcherWatcherEventMap, z as ExistingRawSourceMap, zt as ModuleFormat } from "./shared/define-config-BhJ90aEv.mjs";
4
+ export { type AddonFunction, type AdvancedChunksGroup, type AdvancedChunksOptions, type AsyncPluginHooks, type BufferEncoding, type BuildOptions, type BuiltinModuleTag, type BundleError, type ChecksOptions, type ChunkFileNamesFunction, type ChunkOptimizationOptions, type ChunkingContext, type CodeSplittingGroup, type CodeSplittingNameFunction, type CodeSplittingOptions, type CommentsOptions, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedChunk, type EmittedFile, type EmittedPrebuiltChunk, type ExistingRawSourceMap, type ExternalOption, type ExternalOptionFunction, type FunctionPluginHooks, type GeneralHookFilter, type GeneratedCodeOptions, type GeneratedCodePreset, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PluginContextResolveOptions, type PluginMeta, type PreRenderedAsset, type PreRenderedChunk, RUNTIME_MODULE_ID, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownDirectoryEntry, type RolldownError, type RolldownError as RollupError, type RolldownFileStats, type RolldownFsModule, type RolldownLog, type RolldownLog as RollupLog, type RolldownLogWithString, type RolldownLogWithString as RollupLogWithString, RolldownMagicString, type RolldownOptions, type RolldownOptionsFunction, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RolldownWatcherWatcherEventMap, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformOptions, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherFileWatcherOptions, type WatcherOptions, build, defineConfig, rolldown, watch };
@@ -1,7 +1,7 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
2
- import { n as onExit, t as watch } from "./shared/watch-ECGr-_QS.mjs";
3
- import { b as RUNTIME_MODULE_ID, r as RolldownMagicString, x as VERSION } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
4
- import { t as rolldown } from "./shared/rolldown-Bnp916iM.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-TuFFIE_J.mjs";
2
+ import { n as onExit, t as watch } from "./shared/watch-CS_JygCu.mjs";
3
+ import { b as VERSION, r as RolldownMagicString } from "./shared/bindingify-input-options-CwbcQL6W.mjs";
4
+ import { t as rolldown } from "./shared/rolldown-CACDGVWV.mjs";
5
5
  import { t as defineConfig } from "./shared/define-config-Demdg3_4.mjs";
6
6
  import { isMainThread } from "node:worker_threads";
7
7
  //#region src/setup.ts
@@ -13,6 +13,12 @@ if (isMainThread) {
13
13
  });
14
14
  }
15
15
  //#endregion
16
+ //#region src/constants/index.ts
17
+ /**
18
+ * Runtime helper module ID
19
+ */
20
+ const RUNTIME_MODULE_ID = "\0rolldown/runtime.js";
21
+ //#endregion
16
22
  //#region src/api/build.ts
17
23
  /**
18
24
  * The API similar to esbuild's `build` function.
@@ -1,5 +1,5 @@
1
- import { n as __toESM, t as require_binding } from "./shared/binding-BmkJW3Wy.mjs";
2
- import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-Cmm60vfj.mjs";
1
+ import { n as __toESM, t as require_binding } from "./shared/binding-TuFFIE_J.mjs";
2
+ import { i as PluginContextData, n as bindingifyPlugin } from "./shared/bindingify-input-options-CwbcQL6W.mjs";
3
3
  import { parentPort, workerData } from "node:worker_threads";
4
4
  //#region src/parallel-plugin-worker.ts
5
5
  var import_binding = /* @__PURE__ */ __toESM(require_binding(), 1);
@@ -1,4 +1,4 @@
1
- import { T as Plugin, Vt as MaybePromise } from "./shared/define-config-BBz954-q.mjs";
1
+ import { Ht as MaybePromise, T as Plugin } from "./shared/define-config-BhJ90aEv.mjs";
2
2
 
3
3
  //#region src/plugin/parallel-plugin-implementation.d.ts
4
4
  type ParallelPluginImplementation = Plugin;
@@ -1,4 +1,4 @@
1
- import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-B1q9aYT-.mjs";
1
+ import { L as ParseResult$1, R as ParserOptions$1 } from "./shared/binding-D26QphWG.mjs";
2
2
  import { Program } from "@oxc-project/types";
3
3
 
4
4
  //#region src/parse-ast-index.d.ts
@@ -1,5 +1,5 @@
1
- import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-aMKUxRpj.mjs";
2
- import { n as parseSync, t as parse } from "./shared/parse-Dphnedsw.mjs";
1
+ import { l as locate, n as error, s as logParseError, t as augmentCodeLocation, u as getCodeFrame } from "./shared/logs-ZGEh6uhb.mjs";
2
+ import { n as parseSync, t as parse } from "./shared/parse-B6_waszz.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,6 +1,6 @@
1
- import { m as BindingReplacePluginConfig } from "./shared/binding-B1q9aYT-.mjs";
2
- import { P as BuiltinPlugin } from "./shared/define-config-BBz954-q.mjs";
3
- import { t as esmExternalRequirePlugin } from "./shared/constructors-2i1T9YcF.mjs";
1
+ import { m as BindingReplacePluginConfig } from "./shared/binding-D26QphWG.mjs";
2
+ import { F as BuiltinPlugin } from "./shared/define-config-BhJ90aEv.mjs";
3
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-BbWPse2X.mjs";
4
4
 
5
5
  //#region src/builtin-plugin/replace-plugin.d.ts
6
6
  /**
@@ -1,5 +1,5 @@
1
- import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-BYkbbGqQ.mjs";
2
- import { t as esmExternalRequirePlugin } from "./shared/constructors-CE6zZSUt.mjs";
1
+ import { a as makeBuiltinPluginCallable, n as BuiltinPlugin } from "./shared/normalize-string-or-regex-dnh67V_w.mjs";
2
+ import { t as esmExternalRequirePlugin } from "./shared/constructors-D_3i7dpX.mjs";
3
3
  //#region src/builtin-plugin/replace-plugin.ts
4
4
  /**
5
5
  * Replaces targeted strings in files while bundling.
@@ -119,6 +119,17 @@ interface MangleOptions {
119
119
  * @default false
120
120
  */
121
121
  keepNames?: boolean | MangleOptionsKeepNames;
122
+ /**
123
+ * Names that bindings must not be renamed to, and that bindings already
124
+ * carrying them keep. Equivalent to terser's `mangle.reserved`.
125
+ *
126
+ * Pass `['exports', 'module']` when minifying prebuilt CommonJS / UMD files
127
+ * that Node consumers `import` directly, so Node's cjs-module-lexer can still
128
+ * detect the mangled module's named exports.
129
+ *
130
+ * @default []
131
+ */
132
+ reserved?: Array<string>;
122
133
  /** Debug mangled names. */
123
134
  debug?: boolean;
124
135
  }
@@ -1369,6 +1380,7 @@ declare class BindingNormalizedOptions {
1369
1380
  get name(): string | null;
1370
1381
  get entryFilenames(): string | undefined;
1371
1382
  get chunkFilenames(): string | undefined;
1383
+ get sourcemapFilenames(): string | undefined;
1372
1384
  get assetFilenames(): string | undefined;
1373
1385
  get dir(): string | null;
1374
1386
  get file(): string | null;