@voidzero-dev/vite-plus-core 0.2.4 → 0.2.6

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 (88) hide show
  1. package/LICENSE +36 -120
  2. package/dist/rolldown/cli.d.mts +1 -1
  3. package/dist/rolldown/cli.mjs +11 -8
  4. package/dist/rolldown/config.d.mts +22 -10
  5. package/dist/rolldown/config.mjs +2 -2
  6. package/dist/rolldown/experimental-index.d.mts +164 -155
  7. package/dist/rolldown/experimental-index.mjs +23 -14
  8. package/dist/rolldown/experimental-runtime-types.d.ts +111 -41
  9. package/dist/rolldown/filter-index.d.mts +6 -5
  10. package/dist/rolldown/get-log-filter.d.mts +2 -2
  11. package/dist/rolldown/index.d.mts +4 -4
  12. package/dist/rolldown/index.mjs +10 -4
  13. package/dist/rolldown/parallel-plugin-worker.d.mts +1 -1
  14. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  15. package/dist/rolldown/parallel-plugin.d.mts +3 -4
  16. package/dist/rolldown/parse-ast-index.d.mts +19 -20
  17. package/dist/rolldown/parse-ast-index.mjs +2 -2
  18. package/dist/rolldown/plugins-index.d.mts +27 -28
  19. package/dist/rolldown/plugins-index.mjs +2 -2
  20. package/dist/rolldown/shared/{binding-B1q9aYT-.d.mts → binding-Dbbi0RbO.d.mts} +49 -25
  21. package/dist/rolldown/shared/{binding-BmkJW3Wy.mjs → binding-Dby9rwGk.mjs} +26 -26
  22. package/dist/rolldown/shared/{bindingify-input-options-Cmm60vfj.mjs → bindingify-input-options-DVQ4K-zY.mjs} +11 -13
  23. package/dist/rolldown/shared/{constructors-2i1T9YcF.d.mts → constructors-CSWbNgBZ.d.mts} +9 -10
  24. package/dist/rolldown/shared/{constructors-CE6zZSUt.mjs → constructors-CuGa75s-.mjs} +1 -1
  25. package/dist/rolldown/shared/define-config-B-IDOhDz.d.mts +4003 -0
  26. package/dist/rolldown/shared/dist-DX3cAjHx.mjs +154 -0
  27. package/dist/rolldown/shared/{error-BlQ0-ek7.mjs → error-DFGNOCle.mjs} +1 -1
  28. package/dist/rolldown/shared/get-log-filter-AjBknEEO.d.mts +34 -0
  29. package/dist/rolldown/shared/{load-config-CVVMWSlg.mjs → load-config-R0z2olkB.mjs} +19 -2
  30. package/dist/rolldown/shared/{logging-BSNejiLS.d.mts → logging-xuHO4mAy.d.mts} +6 -6
  31. package/dist/rolldown/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-BYkbbGqQ.mjs → normalize-string-or-regex-SiXbePVH.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-Dphnedsw.mjs → parse-D5dkElpf.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-Bgj-uEyc.mjs → prompt-pZFoa1TT.mjs} +59 -17
  35. package/dist/rolldown/shared/{resolve-tsconfig-CdIAR1Eb.mjs → resolve-tsconfig-2TXRF_zr.mjs} +2 -2
  36. package/dist/rolldown/shared/{rolldown-Bnp916iM.mjs → rolldown-BnV7isAX.mjs} +1 -1
  37. package/dist/rolldown/shared/{rolldown-build-Cs2iVJuw.mjs → rolldown-build-BGXNOfvH.mjs} +33 -13
  38. package/dist/rolldown/shared/transform-Cs2bUDRH.d.mts +148 -0
  39. package/dist/rolldown/shared/{watch-ECGr-_QS.mjs → watch-DVucf-VG.mjs} +5 -5
  40. package/dist/rolldown/utils-index.d.mts +29 -30
  41. package/dist/rolldown/utils-index.mjs +9 -9
  42. package/dist/tsdown/{build-B_nvJe4A-CvbtVBxy.js → build-oq13wECG-Bymq3jT5.js} +210 -1229
  43. package/dist/tsdown/debug-BntVTkRq-BGIoAiTa.js +159 -0
  44. package/dist/tsdown/{detect-B97OSl92-BJPZyIKJ.js → detect-DGhJGEqb-S-tkSzpt.js} +13 -2
  45. package/dist/tsdown/dist-CxIM8o7n.js +2613 -0
  46. package/dist/tsdown/dist-DCMiHFrJ.js +1061 -0
  47. package/dist/tsdown/index-types.d.ts +2106 -1895
  48. package/dist/tsdown/index.js +7 -4
  49. package/dist/tsdown/internal-C7ewSPAZ.js +3 -0
  50. package/dist/tsdown/load-tsc-BKULZsrs-BFmeD6Bu.js +18 -0
  51. package/dist/tsdown/{main-BlTcyuFi.js → main-BdzlWPt6.js} +214 -9
  52. package/dist/tsdown/npm_entry_picomatch.cjs +44 -15
  53. package/dist/tsdown/{resolver-DtsKFXi2-B8Z3WwZh.js → resolver-cwLsPb2o-oj1hqxK6.js} +4 -3
  54. package/dist/tsdown/run.js +4 -4
  55. package/dist/tsdown/{src-CISfE_A0.js → src-BV-UJr_R.js} +5 -5
  56. package/dist/tsdown/target-CNxIDvSz-eoHNdJNs.js +576 -0
  57. package/dist/tsdown/{tsc-context-CX_GXdyS.js → tsc-context-CA76SkkZ.js} +2 -2
  58. package/dist/tsdown/{tsc-CdZE7QwS.js → tsc-zcbB6ZVY.js} +58 -117
  59. package/dist/tsdown/tsdown-css.js +74 -23
  60. package/dist/tsdown/tsdown-exe.js +129 -876
  61. package/dist/vite/client/client.mjs +5 -5
  62. package/dist/vite/node/chunks/build.js +204 -94
  63. package/dist/vite/node/chunks/dist2.js +1 -1
  64. package/dist/vite/node/chunks/lib.js +1 -1
  65. package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +25 -26
  66. package/dist/vite/node/chunks/node.js +552 -104
  67. package/dist/vite/node/chunks/postcss-import.js +11 -11
  68. package/dist/vite/node/cli.js +3 -4
  69. package/dist/vite/node/index.d.ts +1284 -1285
  70. package/dist/vite/node/index.js +1 -2
  71. package/dist/vite/node/module-runner.d.ts +76 -77
  72. package/dist/vite/node/module-runner.js +6 -7
  73. package/package.json +20 -18
  74. package/dist/rolldown/shared/define-config-BBz954-q.d.mts +0 -3901
  75. package/dist/rolldown/shared/get-log-filter-BpNVNJ5-.d.mts +0 -35
  76. package/dist/rolldown/shared/transform-CEmFsvJW.d.mts +0 -149
  77. package/dist/tsdown/debug-DLdR-9XB-DQZ6QLC0.js +0 -250
  78. package/dist/tsdown/dist-CZtGyfn3.js +0 -200
  79. package/dist/tsdown/dist-CqbVlnVq.js +0 -32057
  80. package/dist/tsdown/general-Cp4NiJNK-CbyrS9q1.js +0 -97
  81. package/dist/tsdown/internal-bfoxcI4F.js +0 -3
  82. package/dist/tsdown/npm_cjs_chunk_range.cjs +0 -474
  83. package/dist/tsdown/npm_cjs_chunk_semver.cjs +0 -357
  84. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +0 -52
  85. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +0 -19
  86. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +0 -46
  87. package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +0 -79
  88. 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)
@@ -1578,15 +1463,11 @@ Repository: https://github.com/micromatch/is-glob
1578
1463
 
1579
1464
  ---------------------------------------
1580
1465
 
1581
- ## isexe, semver, which
1466
+ ## isexe, which
1582
1467
  License: ISC
1583
1468
  By: Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)
1584
1469
  Repository: https://github.com/isaacs/isexe
1585
1470
 
1586
- License: ISC
1587
- By: GitHub Inc.
1588
- Repository: https://github.com/npm/node-semver
1589
-
1590
1471
  License: ISC
1591
1472
  By: Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)
1592
1473
  Repository: https://github.com/isaacs/node-which
@@ -2998,6 +2879,35 @@ Repository: https://github.com/jshttp/vary
2998
2879
 
2999
2880
  ---------------------------------------
3000
2881
 
2882
+ ## verkit
2883
+ License: MIT
2884
+ By: Kevin Deng <sxzz@sxzz.moe>
2885
+ Repository: https://github.com/sxzz/verkit
2886
+
2887
+ > The MIT License (MIT)
2888
+ >
2889
+ > Copyright © 2026-PRESENT Kevin Deng (https://github.com/sxzz)
2890
+ >
2891
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
2892
+ > of this software and associated documentation files (the "Software"), to deal
2893
+ > in the Software without restriction, including without limitation the rights
2894
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2895
+ > copies of the Software, and to permit persons to whom the Software is
2896
+ > furnished to do so, subject to the following conditions:
2897
+ >
2898
+ > The above copyright notice and this permission notice shall be included in all
2899
+ > copies or substantial portions of the Software.
2900
+ >
2901
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2902
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2903
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2904
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2905
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2906
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2907
+ > SOFTWARE.
2908
+
2909
+ ---------------------------------------
2910
+
3001
2911
  ## vite
3002
2912
  License: MIT
3003
2913
  By: Evan You
@@ -5339,3 +5249,9 @@ Repository: https://github.com/eemeli/yaml
5339
5249
  > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5340
5250
  > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
5341
5251
  > THIS SOFTWARE.
5252
+
5253
+ ---------------------------------------
5254
+
5255
+ ## yuku-ast
5256
+ License: MIT
5257
+ Repository: https://github.com/yuku-toolchain/yuku
@@ -1 +1 @@
1
- export { };
1
+ export {}
@@ -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-DVucf-VG.mjs";
2
+ import { S as version, x as description } from "./shared/bindingify-input-options-DVQ4K-zY.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-BGXNOfvH.mjs";
5
+ import { t as rolldown } from "./shared/rolldown-BnV7isAX.mjs";
6
+ import { t as loadConfig } from "./shared/load-config-R0z2olkB.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.140.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,26 @@
1
- import { I as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-BBz954-q.mjs";
2
-
1
+ import { L as VERSION, r as defineConfig, t as ConfigExport } from "./shared/define-config-B-IDOhDz.mjs";
3
2
  //#region src/utils/load-config.d.ts
3
+ type ConfigLoader = "bundle" | "native";
4
+ interface LoadConfigOptions {
5
+ /**
6
+ * How to load the config file.
7
+ * - `'bundle'` (default): bundle the config with Rolldown, then import it.
8
+ * - `'native'`: import the config directly, delegating TypeScript/loader
9
+ * handling to the runtime. Faster, but requires runtime support.
10
+ *
11
+ * @default 'bundle'
12
+ */
13
+ configLoader?: ConfigLoader;
14
+ }
4
15
  /**
5
- * Load config from a file in a way that Rolldown does.
6
- *
7
- * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
8
- * @returns The loaded config export
9
- *
10
- * @category Config
11
- */
12
- declare function loadConfig(configPath: string): Promise<ConfigExport>;
16
+ * Load config from a file in a way that Rolldown does.
17
+ *
18
+ * @param configPath The path to the config file. If empty, it will look for `rolldown.config` with supported extensions in the current working directory.
19
+ * @param options Loading options. `configLoader` selects `'bundle'` (default) or `'native'`.
20
+ * @returns The loaded config export
21
+ *
22
+ * @category Config
23
+ */
24
+ declare function loadConfig(configPath: string, options?: LoadConfigOptions): Promise<ConfigExport>;
13
25
  //#endregion
14
26
  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-DVQ4K-zY.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-R0z2olkB.mjs";
4
4
  export { VERSION, defineConfig, loadConfig };