@voidzero-dev/vite-plus-core 0.1.2 → 0.1.3

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 (90) hide show
  1. package/dist/rolldown/cli.mjs +11 -22
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +10 -11
  4. package/dist/rolldown/experimental-index.d.mts +20 -6
  5. package/dist/rolldown/experimental-index.mjs +24 -22
  6. package/dist/rolldown/filter-index.d.mts +1 -1
  7. package/dist/rolldown/filter-index.mjs +2 -8
  8. package/dist/rolldown/get-log-filter.mjs +1 -2
  9. package/dist/rolldown/index.d.mts +3 -3
  10. package/dist/rolldown/index.mjs +10 -13
  11. package/dist/rolldown/parallel-plugin-worker.mjs +7 -9
  12. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  13. package/dist/rolldown/parallel-plugin.mjs +1 -2
  14. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  15. package/dist/rolldown/parse-ast-index.mjs +4 -6
  16. package/dist/rolldown/plugins-index.d.mts +3 -3
  17. package/dist/rolldown/plugins-index.mjs +4 -6
  18. package/dist/rolldown/shared/{binding-C4ZlFAt6.d.mts → binding-BohGL_65.d.mts} +10 -5
  19. package/dist/rolldown/shared/{binding-Bd04_f8P.mjs → binding-COZdHtee.mjs} +7 -16
  20. package/dist/rolldown/shared/{bindingify-input-options-ffqkmT9z.mjs → bindingify-input-options-DdW_FOGG.mjs} +33 -56
  21. package/dist/rolldown/shared/{constructors-C5a55nbY.mjs → constructors-CQlws1EK.mjs} +2 -4
  22. package/dist/rolldown/shared/{constructors-cPsD1J5w.d.mts → constructors-ColrbLxz.d.mts} +2 -2
  23. package/dist/rolldown/shared/{define-config-DX_4SBzo.d.mts → define-config-BqZZMLjO.d.mts} +66 -30
  24. package/dist/rolldown/shared/{define-config-BMj_QknW.mjs → define-config-DJOr6Iwt.mjs} +1 -2
  25. package/dist/rolldown/shared/{error-BYPsvVEN.mjs → error-FTNambir.mjs} +3 -8
  26. package/dist/rolldown/shared/{load-config-Oj1-3DPg.mjs → load-config-DBRCgd9m.mjs} +2 -4
  27. package/dist/rolldown/shared/{logs-CCc_0vhs.mjs → logs-D80CXhvg.mjs} +5 -8
  28. package/dist/rolldown/shared/{misc-Xty885dB.mjs → misc-DJYbNKZX.mjs} +1 -2
  29. package/dist/rolldown/shared/{normalize-string-or-regex-DoNa0azR.mjs → normalize-string-or-regex-CJTjKt5t.mjs} +3 -6
  30. package/dist/rolldown/shared/{parse-Wj8OTS4w.mjs → parse-q7gzDQmi.mjs} +2 -5
  31. package/dist/rolldown/shared/{prompt-CmNr0AI-.mjs → prompt-DZIXsnf9.mjs} +1 -3
  32. package/dist/rolldown/shared/{rolldown-y9H0nYAD.mjs → rolldown-BJMdRJb1.mjs} +2 -4
  33. package/dist/rolldown/shared/{rolldown-build-DkOWV5Vu.mjs → rolldown-build-DKv2K096.mjs} +424 -473
  34. package/dist/rolldown/shared/{transform-DoG7c5_r.d.mts → transform-BoJxrM-e.d.mts} +1 -1
  35. package/dist/rolldown/shared/{transform-D55YcCvB.mjs → transform-CQppMqL8.mjs} +3 -6
  36. package/dist/rolldown/shared/{watch-CVufTfok.mjs → watch-BeMWbIuq.mjs} +71 -77
  37. package/dist/rolldown/utils-index.d.mts +2 -2
  38. package/dist/rolldown/utils-index.mjs +9 -18
  39. package/dist/tsdown/{build-TmLngPCw-I7MHSf0I.js → build-TmLngPCw-CBoVPzkZ.js} +57 -150
  40. package/dist/tsdown/build-gOkJM1H9-D9ngUBpk.js +5 -0
  41. package/dist/tsdown/{chunk-CdeBBKNj.js → chunk-CSNpwdVU.js} +13 -23
  42. package/dist/tsdown/{debug-tOJ_PtrM-DITcI9An.js → debug-tOJ_PtrM-C-Do1Twv.js} +4 -6
  43. package/dist/tsdown/{detect-DK-FDZQ9-CALXiuJa.js → detect-DK-FDZQ9-CHuRhyUG.js} +2 -4
  44. package/dist/tsdown/{dist-DVPyDO-_.js → dist-Ba2DZx1w.js} +3 -6
  45. package/dist/tsdown/{dist-uzMTIu3J.js → dist-DCol2bGA.js} +24 -56
  46. package/dist/tsdown/{dist-kuoe97DJ.js → dist-_l70jCqI.js} +1 -2
  47. package/dist/tsdown/{filename-C2azOotK.js → filename-BDcjeHGl.js} +1 -3
  48. package/dist/tsdown/{index-node-Djp92Gzb-fgHTblzo.js → index-node-Djp92Gzb-B-AUHI4t.js} +2 -4
  49. package/dist/tsdown/index-types.d.ts +8 -7
  50. package/dist/tsdown/index.js +7 -9
  51. package/dist/tsdown/{main-BWoReXjl.js → main-DYgM-9Cb.js} +7 -22
  52. package/dist/tsdown/{node-Ba_UB_xO.js → node-B3Gdtau1.js} +1 -4
  53. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +6 -8
  54. package/dist/tsdown/npm_cjs_chunk_lt.cjs +13 -16
  55. package/dist/tsdown/npm_cjs_chunk_range.cjs +16 -28
  56. package/dist/tsdown/npm_cjs_chunk_semver.cjs +40 -52
  57. package/dist/tsdown/npm_entry_picomatch.cjs +18 -30
  58. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +3 -7
  59. package/dist/tsdown/npm_entry_semver_functions_lt.cjs +3 -5
  60. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +5 -8
  61. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +5 -8
  62. package/dist/tsdown/npm_entry_tree-kill.cjs +2 -6
  63. package/dist/tsdown/{resolver-CdD-yT15-OWjlgV0D.js → resolver-CdD-yT15-3eaymYLw.js} +2 -4
  64. package/dist/tsdown/run.js +6 -12
  65. package/dist/tsdown/{tsc-D6YfZJBZ.js → tsc-CberiTDq.js} +4 -6
  66. package/dist/tsdown/{tsc-context-CGmk4Cps.js → tsc-context-DiIjfXAG.js} +2 -4
  67. package/dist/vite/client/client.mjs +4 -19
  68. package/dist/vite/client/env.mjs +1 -2
  69. package/dist/vite/node/chunks/build.js +2 -3
  70. package/dist/vite/node/chunks/build2.js +91 -243
  71. package/dist/vite/node/chunks/chunk.js +7 -13
  72. package/dist/vite/node/chunks/config.js +2 -3
  73. package/dist/vite/node/chunks/dist.js +27 -61
  74. package/dist/vite/node/chunks/dist2.js +11 -95
  75. package/dist/vite/node/chunks/lib.js +1 -7
  76. package/dist/vite/node/chunks/logger.js +3 -8
  77. package/dist/vite/node/chunks/node.js +137 -428
  78. package/dist/vite/node/chunks/optimizer.js +2 -3
  79. package/dist/vite/node/chunks/postcss-import.js +1 -13
  80. package/dist/vite/node/chunks/preview.js +2 -3
  81. package/dist/vite/node/chunks/server.js +2 -3
  82. package/dist/vite/node/cli.js +1 -4
  83. package/dist/vite/node/index.d.ts +2 -2
  84. package/dist/vite/node/index.js +1 -2
  85. package/dist/vite/node/internal.js +1 -2
  86. package/dist/vite/node/module-runner.js +44 -3
  87. package/package.json +5 -5
  88. package/dist/rolldown/cli-setup.d.mts +0 -1
  89. package/dist/rolldown/cli-setup.mjs +0 -17
  90. package/dist/tsdown/build-gOkJM1H9-BRI3DQle.js +0 -6
@@ -1,9 +1,9 @@
1
- import { r as __toESM, t as __commonJSMin } from "./chunk-CdeBBKNj.js";
2
- import { C as resolveComma, E as toArray, S as promiseWithResolvers, T as slash, _ as debounce, a as createLogger, b as noop, c as globalLogger, d as bold, f as dim, g as yellow, h as underline, i as LogLevels, l as prettyFormat, m as red, n as q, o as generateColor, p as green, r as version, s as getNameLabel, t as K, u as blue, v as importWithError, w as resolveRegex, x as pkgExists, y as matchPattern } from "./main-BWoReXjl.js";
3
- import { t as createDebug } from "./node-Ba_UB_xO.js";
4
- import { i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS$1 } from "./filename-C2azOotK.js";
1
+ import { r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
2
+ import { C as resolveComma, E as toArray, S as promiseWithResolvers, T as slash, _ as debounce, a as createLogger, b as noop, c as globalLogger, d as bold, f as dim, g as yellow, h as underline, i as LogLevels, l as prettyFormat, m as red, n as q, o as generateColor, p as green, r as version, s as getNameLabel, t as K, u as blue, v as importWithError, w as resolveRegex, x as pkgExists, y as matchPattern } from "./main-DYgM-9Cb.js";
3
+ import { t as createDebug } from "./node-B3Gdtau1.js";
4
+ import { i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS$1 } from "./filename-BDcjeHGl.js";
5
5
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
6
- import { fileURLToPath, pathToFileURL } from "node:url";
6
+ import { pathToFileURL } from "node:url";
7
7
  import process$1, { env } from "node:process";
8
8
  import readline from "node:readline";
9
9
  import { formatWithOptions, inspect, promisify } from "node:util";
@@ -21,8 +21,7 @@ import fs$1, { existsSync, readFileSync, writeFileSync } from "node:fs";
21
21
  import { Buffer } from "node:buffer";
22
22
  import { brotliCompress, gzip } from "node:zlib";
23
23
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
24
-
25
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/format-CM79ZE77.mjs
24
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/format-CM79ZE77.mjs
26
25
  function fsExists(path) {
27
26
  return access(path).then(() => true, () => false);
28
27
  }
@@ -213,9 +212,8 @@ function detectIndentation(jsonText) {
213
212
  }
214
213
  return 2;
215
214
  }
216
-
217
215
  //#endregion
218
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/css-CzF_A79W.mjs
216
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/css-CzF_A79W.mjs
219
217
  const defaultCssBundleName = "style.css";
220
218
  function resolveCssOptions(options = {}, topLevelTarget) {
221
219
  let cssTarget;
@@ -233,7 +231,6 @@ function resolveCssOptions(options = {}, topLevelTarget) {
233
231
  postcss: options.postcss
234
232
  };
235
233
  }
236
-
237
234
  //#endregion
238
235
  //#region ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
239
236
  function isPlainObject(value) {
@@ -261,20 +258,19 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
261
258
  function createDefu(merger) {
262
259
  return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
263
260
  }
264
- const defu$1 = createDefu();
265
- const defuFn = createDefu((object, key, currentValue) => {
261
+ createDefu();
262
+ createDefu((object, key, currentValue) => {
266
263
  if (object[key] !== void 0 && typeof currentValue === "function") {
267
264
  object[key] = currentValue(object[key]);
268
265
  return true;
269
266
  }
270
267
  });
271
- const defuArrayFn = createDefu((object, key, currentValue) => {
268
+ createDefu((object, key, currentValue) => {
272
269
  if (Array.isArray(object[key]) && typeof currentValue === "function") {
273
270
  object[key] = currentValue(object[key]);
274
271
  return true;
275
272
  }
276
273
  });
277
-
278
274
  //#endregion
279
275
  //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.3/node_modules/fdir/dist/index.mjs
280
276
  var __require$1 = /* @__PURE__ */ createRequire$1(import.meta.url);
@@ -783,7 +779,6 @@ var Builder = class {
783
779
  return this;
784
780
  }
785
781
  };
786
-
787
782
  //#endregion
788
783
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/constants.js
789
784
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -837,28 +832,24 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
837
832
  END_ANCHOR: `(?:[${WIN_SLASH}]|$)`,
838
833
  SEP: "\\"
839
834
  };
840
- /**
841
- * POSIX Bracket Regex
842
- */
843
- const POSIX_REGEX_SOURCE = {
844
- alnum: "a-zA-Z0-9",
845
- alpha: "a-zA-Z",
846
- ascii: "\\x00-\\x7F",
847
- blank: " \\t",
848
- cntrl: "\\x00-\\x1F\\x7F",
849
- digit: "0-9",
850
- graph: "\\x21-\\x7E",
851
- lower: "a-z",
852
- print: "\\x20-\\x7E ",
853
- punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
854
- space: " \\t\\r\\n\\v\\f",
855
- upper: "A-Z",
856
- word: "A-Za-z0-9_",
857
- xdigit: "A-Fa-f0-9"
858
- };
859
835
  module.exports = {
860
836
  MAX_LENGTH: 1024 * 64,
861
- POSIX_REGEX_SOURCE,
837
+ POSIX_REGEX_SOURCE: {
838
+ alnum: "a-zA-Z0-9",
839
+ alpha: "a-zA-Z",
840
+ ascii: "\\x00-\\x7F",
841
+ blank: " \\t",
842
+ cntrl: "\\x00-\\x1F\\x7F",
843
+ digit: "0-9",
844
+ graph: "\\x21-\\x7E",
845
+ lower: "a-z",
846
+ print: "\\x20-\\x7E ",
847
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
848
+ space: " \\t\\r\\n\\v\\f",
849
+ upper: "A-Z",
850
+ word: "A-Za-z0-9_",
851
+ xdigit: "A-Fa-f0-9"
852
+ },
862
853
  REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
863
854
  REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
864
855
  REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
@@ -948,7 +939,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
948
939
  }
949
940
  };
950
941
  }));
951
-
952
942
  //#endregion
953
943
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/utils.js
954
944
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -997,7 +987,6 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
997
987
  return last;
998
988
  };
999
989
  }));
1000
-
1001
990
  //#endregion
1002
991
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/scan.js
1003
992
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -1285,7 +1274,6 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1285
1274
  };
1286
1275
  module.exports = scan;
1287
1276
  }));
1288
-
1289
1277
  //#endregion
1290
1278
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/parse.js
1291
1279
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2144,7 +2132,6 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2144
2132
  };
2145
2133
  module.exports = parse;
2146
2134
  }));
2147
-
2148
2135
  //#endregion
2149
2136
  //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/lib/picomatch.js
2150
2137
  var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -2437,10 +2424,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2437
2424
  */
2438
2425
  module.exports = picomatch;
2439
2426
  }));
2440
-
2441
2427
  //#endregion
2442
- //#region ../../node_modules/.pnpm/picomatch@4.0.3/node_modules/picomatch/index.js
2443
- var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2428
+ //#region ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs
2429
+ var import_picomatch = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
2444
2430
  const pico = require_picomatch$1();
2445
2431
  const utils = require_utils();
2446
2432
  function picomatch(glob, options, returnState = false) {
@@ -2452,11 +2438,7 @@ var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
2452
2438
  }
2453
2439
  Object.assign(picomatch, pico);
2454
2440
  module.exports = picomatch;
2455
- }));
2456
-
2457
- //#endregion
2458
- //#region ../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs
2459
- var import_picomatch = /* @__PURE__ */ __toESM(require_picomatch(), 1);
2441
+ })))(), 1);
2460
2442
  const isReadonlyArray = Array.isArray;
2461
2443
  const isWin = process.platform === "win32";
2462
2444
  const ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
@@ -2737,7 +2719,6 @@ async function glob(patternsOrOptions, options) {
2737
2719
  if (!relative) return crawler.withPromise();
2738
2720
  return formatPaths(await crawler.withPromise(), relative);
2739
2721
  }
2740
-
2741
2722
  //#endregion
2742
2723
  //#region ../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/resolve.mjs
2743
2724
  /**
@@ -2751,7 +2732,6 @@ async function glob(patternsOrOptions, options) {
2751
2732
  function absolute(input, root) {
2752
2733
  return isAbsolute(input) ? input : resolve(root || ".", input);
2753
2734
  }
2754
-
2755
2735
  //#endregion
2756
2736
  //#region ../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/walk.mjs
2757
2737
  /**
@@ -2772,7 +2752,6 @@ function up$2(base, options) {
2772
2752
  }
2773
2753
  return arr;
2774
2754
  }
2775
-
2776
2755
  //#endregion
2777
2756
  //#region ../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/find.mjs
2778
2757
  /**
@@ -2783,13 +2762,11 @@ function up$2(base, options) {
2783
2762
  */
2784
2763
  function up$1(name, options) {
2785
2764
  let dir, tmp;
2786
- let start = options && options.cwd || "";
2787
- for (dir of up$2(start, options)) {
2765
+ for (dir of up$2(options && options.cwd || "", options)) {
2788
2766
  tmp = join(dir, name);
2789
2767
  if (existsSync(tmp)) return tmp;
2790
2768
  }
2791
2769
  }
2792
-
2793
2770
  //#endregion
2794
2771
  //#region ../../node_modules/.pnpm/empathic@2.0.0/node_modules/empathic/package.mjs
2795
2772
  /**
@@ -2799,7 +2776,6 @@ function up$1(name, options) {
2799
2776
  function up(options) {
2800
2777
  return up$1("package.json", options);
2801
2778
  }
2802
-
2803
2779
  //#endregion
2804
2780
  //#region ../../node_modules/.pnpm/import-without-cache@0.2.5/node_modules/import-without-cache/dist/index.mjs
2805
2781
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
@@ -2856,7 +2832,6 @@ function cleanupImportAttributes(context) {
2856
2832
  context.importAttributes = attrs;
2857
2833
  Object.freeze(context.importAttributes);
2858
2834
  }
2859
-
2860
2835
  //#endregion
2861
2836
  //#region ../../node_modules/.pnpm/quansync@1.0.0/node_modules/quansync/dist/src-C2Pm6gXo.js
2862
2837
  const GET_IS_ASYNC = Symbol.for("quansync.getIsAsync");
@@ -2937,14 +2912,10 @@ function quansync$1(input, options) {
2937
2912
  if (typeof input === "function") return fromGeneratorFn(input, options);
2938
2913
  else return fromObject(input);
2939
2914
  }
2940
- /**
2941
- * @returns `true` if the current context is async, `false` otherwise.
2942
- */
2943
- const getIsAsync = quansync$1({
2915
+ quansync$1({
2944
2916
  async: () => Promise.resolve(true),
2945
2917
  sync: () => false
2946
2918
  });
2947
-
2948
2919
  //#endregion
2949
2920
  //#region ../../node_modules/.pnpm/quansync@1.0.0/node_modules/quansync/dist/macro.js
2950
2921
  /**
@@ -2957,34 +2928,19 @@ const getIsAsync = quansync$1({
2957
2928
  * @internal
2958
2929
  */
2959
2930
  const quansync = quansync$1;
2960
-
2961
- //#endregion
2962
- //#region ../../node_modules/.pnpm/@quansync+fs@1.0.0/node_modules/@quansync/fs/dist/index.mjs
2963
- /**
2964
- * @link https://nodejs.org/api/fs.html#fspromisesreadfilepath-options
2965
- */
2966
- const readFile$1 = quansync$1({
2931
+ quansync$1({
2967
2932
  sync: fs$1.readFileSync,
2968
2933
  async: fs$1.promises.readFile
2969
2934
  });
2970
- /**
2971
- * @link https://nodejs.org/api/fs.html#fspromiseswritefilefile-data-options
2972
- */
2973
- const writeFile$1 = quansync$1({
2935
+ quansync$1({
2974
2936
  sync: fs$1.writeFileSync,
2975
2937
  async: fs$1.promises.writeFile
2976
2938
  });
2977
- /**
2978
- * @link https://nodejs.org/api/fs.html#fspromisesunlinkpath
2979
- */
2980
- const unlink = quansync$1({
2939
+ quansync$1({
2981
2940
  sync: fs$1.unlinkSync,
2982
2941
  async: fs$1.promises.unlink
2983
2942
  });
2984
- /**
2985
- * @link https://nodejs.org/api/fs.html#fspromisesaccesspath-mode
2986
- */
2987
- const access$1 = quansync$1({
2943
+ quansync$1({
2988
2944
  sync: fs$1.accessSync,
2989
2945
  async: fs$1.promises.access
2990
2946
  });
@@ -2999,105 +2955,62 @@ const lstat = quansync$1({
2999
2955
  sync: fs$1.lstatSync,
3000
2956
  async: fs$1.promises.lstat
3001
2957
  });
3002
- /**
3003
- * @link https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options
3004
- */
3005
- const cp$1 = quansync$1({
2958
+ quansync$1({
3006
2959
  sync: fs$1.copyFileSync,
3007
2960
  async: fs$1.promises.copyFile
3008
2961
  });
3009
- /**
3010
- * @link https://nodejs.org/api/fs.html#fspromisesrmpath-options
3011
- */
3012
- const rm$1 = quansync$1({
2962
+ quansync$1({
3013
2963
  sync: fs$1.rmSync,
3014
2964
  async: fs$1.promises.rm
3015
2965
  });
3016
- /**
3017
- * @link https://nodejs.org/api/fs.html#fspromisesmkdirpath-options
3018
- */
3019
- const mkdir = quansync$1({
2966
+ quansync$1({
3020
2967
  sync: fs$1.mkdirSync,
3021
2968
  async: fs$1.promises.mkdir
3022
2969
  });
3023
- /**
3024
- * @link https://nodejs.org/api/fs.html#fspromisesrenameoldpath-newpath
3025
- */
3026
- const rename = quansync$1({
2970
+ quansync$1({
3027
2971
  sync: fs$1.renameSync,
3028
2972
  async: fs$1.promises.rename
3029
2973
  });
3030
- /**
3031
- * @link https://nodejs.org/api/fs.html#fspromisesreaddirpath-options
3032
- */
3033
- const readdir = quansync$1({
2974
+ quansync$1({
3034
2975
  sync: fs$1.readdirSync,
3035
2976
  async: fs$1.promises.readdir
3036
2977
  });
3037
- /**
3038
- * @link https://nodejs.org/api/fs.html#fspromisesrealpathpath-options
3039
- */
3040
- const realpath = quansync$1({
2978
+ quansync$1({
3041
2979
  sync: fs$1.realpathSync,
3042
2980
  async: fs$1.promises.realpath
3043
2981
  });
3044
- /**
3045
- * @link https://nodejs.org/api/fs.html#fspromisesreadlinkpath-options
3046
- */
3047
- const readlink = quansync$1({
2982
+ quansync$1({
3048
2983
  sync: fs$1.readlinkSync,
3049
2984
  async: fs$1.promises.readlink
3050
2985
  });
3051
- /**
3052
- * @link https://nodejs.org/api/fs.html#fspromisessymlinktarget-path-type
3053
- */
3054
- const symlink = quansync$1({
2986
+ quansync$1({
3055
2987
  sync: fs$1.symlinkSync,
3056
2988
  async: fs$1.promises.symlink
3057
2989
  });
3058
- /**
3059
- * @link https://nodejs.org/api/fs.html#fspromiseschownpath-uid-gid
3060
- */
3061
- const chown = quansync$1({
2990
+ quansync$1({
3062
2991
  sync: fs$1.chownSync,
3063
2992
  async: fs$1.promises.chown
3064
2993
  });
3065
- /**
3066
- * @link https://nodejs.org/api/fs.html#fspromiseslchownpath-uid-gid
3067
- */
3068
- const lchown = quansync$1({
2994
+ quansync$1({
3069
2995
  sync: fs$1.lchownSync,
3070
2996
  async: fs$1.promises.lchown
3071
2997
  });
3072
- /**
3073
- * @link https://nodejs.org/api/fs.html#fspromiseschmodpath-mode
3074
- */
3075
- const chmod$1 = quansync$1({
2998
+ quansync$1({
3076
2999
  sync: fs$1.chmodSync,
3077
3000
  async: fs$1.promises.chmod
3078
3001
  });
3079
- /**
3080
- * @link https://nodejs.org/api/fs.html#fspromisesutimespath-atime-mtime
3081
- */
3082
- const utimes = quansync$1({
3002
+ quansync$1({
3083
3003
  sync: fs$1.utimesSync,
3084
3004
  async: fs$1.promises.utimes
3085
3005
  });
3086
- /**
3087
- * @link https://nodejs.org/api/fs.html#fspromiseslutimespath-atime-mtime
3088
- */
3089
- const lutimes = quansync$1({
3006
+ quansync$1({
3090
3007
  sync: fs$1.lutimesSync,
3091
3008
  async: fs$1.promises.lutimes
3092
3009
  });
3093
- /**
3094
- * @link https://nodejs.org/api/fs.html#fspromisesmkdtempprefix-options
3095
- */
3096
- const mkdtemp$1 = quansync$1({
3010
+ quansync$1({
3097
3011
  sync: fs$1.mkdtempSync,
3098
3012
  async: fs$1.promises.mkdtemp
3099
3013
  });
3100
-
3101
3014
  //#endregion
3102
3015
  //#region ../../node_modules/.pnpm/unconfig-core@7.5.0/node_modules/unconfig-core/dist/index.mjs
3103
3016
  const isFile = quansync(function* (path, allowSymlinks) {
@@ -3174,9 +3087,8 @@ function createConfigCoreLoader(options) {
3174
3087
  findConfigs
3175
3088
  };
3176
3089
  }
3177
-
3178
3090
  //#endregion
3179
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/options-DpJJmGDp.mjs
3091
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/options-DpJJmGDp.mjs
3180
3092
  const __cjs_require$1 = createRequire(import.meta.url);
3181
3093
  const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
3182
3094
  const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
@@ -3727,7 +3639,7 @@ async function nativeImport(id) {
3727
3639
  return mod.default || mod;
3728
3640
  }
3729
3641
  async function unrunImport(id) {
3730
- const { unrun } = await import("./dist-DVPyDO-_.js");
3642
+ const { unrun } = await import("./dist-Ba2DZx1w.js");
3731
3643
  const { module } = await unrun({ path: pathToFileURL(id).href });
3732
3644
  return module;
3733
3645
  }
@@ -3911,9 +3823,8 @@ function filterConfig(filter, configCwd, name) {
3911
3823
  if (filter instanceof RegExp) return name && filter.test(name) || filter.test(cwd);
3912
3824
  return toArray(filter).some((value) => name && name === value || cwd === value);
3913
3825
  }
3914
-
3915
3826
  //#endregion
3916
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/plugin-BQv869Ce.mjs
3827
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/plugin-BQv869Ce.mjs
3917
3828
  /**
3918
3829
  * Detect and remove "pure CSS chunks" — JS chunks that exist only because
3919
3830
  * they imported CSS files. These chunks have no JS exports and all their
@@ -4023,9 +3934,8 @@ function CssPlugin(config) {
4023
3934
  ...postHooks
4024
3935
  };
4025
3936
  }
4026
-
4027
3937
  //#endregion
4028
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/watch-BAbxxJcJ.mjs
3938
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/watch-BAbxxJcJ.mjs
4029
3939
  /**
4030
3940
  * The `node:` protocol was added in Node.js v14.18.0.
4031
3941
  * @see https://nodejs.org/api/esm.html#node-imports
@@ -4185,7 +4095,6 @@ function WatchPlugin(configFiles, { config, chunks }) {
4185
4095
  }
4186
4096
  };
4187
4097
  }
4188
-
4189
4098
  //#endregion
4190
4099
  //#region ../../node_modules/.pnpm/hookable@6.0.1/node_modules/hookable/dist/index.mjs
4191
4100
  function flatHooks(configHooks, hooks = {}, parentName) {
@@ -4354,9 +4263,8 @@ var Hookable = class {
4354
4263
  };
4355
4264
  }
4356
4265
  };
4357
-
4358
4266
  //#endregion
4359
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/build-TmLngPCw.mjs
4267
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/build-TmLngPCw.mjs
4360
4268
  const __cjs_require = createRequire(import.meta.url);
4361
4269
  const satisfies = __cjs_require("./npm_entry_semver_functions_satisfies.cjs");
4362
4270
  const coerce = __cjs_require("./npm_entry_semver_functions_coerce.cjs");
@@ -4692,7 +4600,7 @@ async function bundleDone(bundleByPkg, bundle) {
4692
4600
  async function packTarball(packageJsonPath) {
4693
4601
  const pkgDir = path.dirname(packageJsonPath);
4694
4602
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4695
- const [{ detect }, { pack }] = await Promise.all([import("./detect-DK-FDZQ9-CALXiuJa.js"), import("./index-node-Djp92Gzb-fgHTblzo.js")]);
4603
+ const [{ detect }, { pack }] = await Promise.all([import("./detect-DK-FDZQ9-CHuRhyUG.js"), import("./index-node-Djp92Gzb-B-AUHI4t.js")]);
4696
4604
  try {
4697
4605
  const detected = await detect({ cwd: pkgDir });
4698
4606
  if (detected?.name === "deno") throw new Error(`Cannot pack tarball for Deno projects at ${pkgDir}`);
@@ -4793,7 +4701,7 @@ async function resolveInputOptions(config, format, configFiles, bundle, cjsDts,
4793
4701
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
4794
4702
  if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepPlugin(config, bundle));
4795
4703
  if (dts) {
4796
- const { dts: dtsPlugin } = await import("./dist-uzMTIu3J.js");
4704
+ const { dts: dtsPlugin } = await import("./dist-DCol2bGA.js");
4797
4705
  const options = {
4798
4706
  tsconfig,
4799
4707
  ...dts
@@ -5126,6 +5034,5 @@ async function buildSingle(config, configFiles, isDualFormat, clean, restart, do
5126
5034
  ab = executeOnSuccess(config);
5127
5035
  }
5128
5036
  }
5129
-
5130
5037
  //#endregion
5131
- export { resolveUserConfig as i, buildWithConfigs as n, mergeConfig as r, build$1 as t };
5038
+ export { resolveUserConfig as i, buildWithConfigs as n, mergeConfig as r, build$1 as t };
@@ -0,0 +1,5 @@
1
+ import "./main-DYgM-9Cb.js";
2
+ import "./node-B3Gdtau1.js";
3
+ import "./filename-BDcjeHGl.js";
4
+ import { t as build$1 } from "./build-TmLngPCw-CBoVPzkZ.js";
5
+ export { build$1 as build };
@@ -1,5 +1,4 @@
1
- import { createRequire } from "node:module";
2
-
1
+ import "node:module";
3
2
  //#region \0rolldown/runtime.js
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
@@ -10,28 +9,20 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
9
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
11
10
  var __exportAll = (all, no_symbols) => {
12
11
  let target = {};
13
- for (var name in all) {
14
- __defProp(target, name, {
15
- get: all[name],
16
- enumerable: true
17
- });
18
- }
19
- if (!no_symbols) {
20
- __defProp(target, Symbol.toStringTag, { value: "Module" });
21
- }
12
+ for (var name in all) __defProp(target, name, {
13
+ get: all[name],
14
+ enumerable: true
15
+ });
16
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
22
17
  return target;
23
18
  };
24
19
  var __copyProps = (to, from, except, desc) => {
25
- if (from && typeof from === "object" || typeof from === "function") {
26
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
27
- key = keys[i];
28
- if (!__hasOwnProp.call(to, key) && key !== except) {
29
- __defProp(to, key, {
30
- get: ((k) => from[k]).bind(null, key),
31
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
32
- });
33
- }
34
- }
20
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
+ key = keys[i];
22
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
+ get: ((k) => from[k]).bind(null, key),
24
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
+ });
35
26
  }
36
27
  return to;
37
28
  };
@@ -39,6 +30,5 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
39
30
  value: mod,
40
31
  enumerable: true
41
32
  }) : target, mod));
42
-
43
33
  //#endregion
44
- export { __exportAll as n, __toESM as r, __commonJSMin as t };
34
+ export { __exportAll as n, __toESM as r, __commonJSMin as t };
@@ -1,7 +1,6 @@
1
- import { C as resolveComma, E as toArray } from "./main-BWoReXjl.js";
2
- import { n as enable, r as namespaces, t as createDebug } from "./node-Ba_UB_xO.js";
3
-
4
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/debug-tOJ_PtrM.mjs
1
+ import { C as resolveComma, E as toArray } from "./main-DYgM-9Cb.js";
2
+ import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
3
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/debug-tOJ_PtrM.mjs
5
4
  const debugLog = createDebug("tsdown:debug");
6
5
  function enableDebug(debug) {
7
6
  if (!debug) return;
@@ -13,6 +12,5 @@ function enableDebug(debug) {
13
12
  enable(namespace);
14
13
  debugLog("Debugging enabled", namespace);
15
14
  }
16
-
17
15
  //#endregion
18
- export { enableDebug as t };
16
+ export { enableDebug as t };
@@ -1,8 +1,7 @@
1
1
  import process from "node:process";
2
2
  import path from "node:path";
3
3
  import fs from "node:fs/promises";
4
-
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_743816f26d68021f6369d2afb428dae9/node_modules/tsdown/dist/detect-DK-FDZQ9.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.21.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.0_@tsdown+exe@0.21.0_@type_df9c58766eba71ed4fabe78a2cfe9dc9/node_modules/tsdown/dist/detect-DK-FDZQ9.mjs
6
5
  const AGENTS = [
7
6
  "npm",
8
7
  "yarn",
@@ -160,6 +159,5 @@ async function handlePackageManager(filepath, options) {
160
159
  function isMetadataYarnClassic(metadataPath) {
161
160
  return metadataPath.endsWith(".yarn_integrity");
162
161
  }
163
-
164
162
  //#endregion
165
- export { detect, getUserAgent };
163
+ export { detect, getUserAgent };
@@ -1,14 +1,13 @@
1
- import { builtinModules, createRequire } from "node:module";
1
+ import { builtinModules } from "node:module";
2
2
  import { fileURLToPath, pathToFileURL } from "node:url";
3
3
  import process from "node:process";
4
- import { spawn } from "node:child_process";
4
+ import "node:child_process";
5
5
  import path from "node:path";
6
6
  import { rolldown } from "@voidzero-dev/vite-plus-core/rolldown";
7
7
  import { tmpdir } from "node:os";
8
8
  import fs, { existsSync } from "node:fs";
9
9
  import { Buffer } from "node:buffer";
10
10
  import crypto from "node:crypto";
11
-
12
11
  //#region ../../node_modules/.pnpm/unrun@0.2.30/node_modules/unrun/dist/load-module-CeH7YHFU.mjs
13
12
  /**
14
13
  * Applies preset-specific handling to the loaded module.
@@ -716,7 +715,6 @@ async function loadModule(code, options) {
716
715
  }
717
716
  return _module;
718
717
  }
719
-
720
718
  //#endregion
721
719
  //#region ../../node_modules/.pnpm/unrun@0.2.30/node_modules/unrun/dist/index.mjs
722
720
  /**
@@ -739,6 +737,5 @@ async function unrun(options) {
739
737
  dependencies: output.dependencies
740
738
  };
741
739
  }
742
-
743
740
  //#endregion
744
- export { unrun };
741
+ export { unrun };