@voidzero-dev/vite-plus-core 0.2.8 → 0.3.0

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 (63) hide show
  1. package/LICENSE +30 -1
  2. package/dist/rolldown/cli.mjs +14 -10
  3. package/dist/rolldown/config.d.mts +1 -1
  4. package/dist/rolldown/config.mjs +2 -2
  5. package/dist/rolldown/experimental-index.d.mts +5 -5
  6. package/dist/rolldown/experimental-index.mjs +11 -9
  7. package/dist/rolldown/filter-index.d.mts +1 -1
  8. package/dist/rolldown/index.d.mts +2 -2
  9. package/dist/rolldown/index.mjs +4 -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 +1 -1
  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-CVtkJvyl.d.mts → binding-Bvw14S3g.d.mts} +70 -1
  17. package/dist/rolldown/shared/binding-C__LJDBG.mjs +675 -0
  18. package/dist/rolldown/shared/{bindingify-input-options-B03y7DfJ.mjs → bindingify-input-options-V9YvAjrr.mjs} +6 -10
  19. package/dist/rolldown/shared/{constructors-ALilxAii.d.mts → constructors-CRumnw21.d.mts} +2 -2
  20. package/dist/rolldown/shared/{constructors-COwFYQna.mjs → constructors-DklcHr18.mjs} +1 -1
  21. package/dist/rolldown/shared/{create-bundler-option-B-tSTZRt.mjs → create-bundler-option-DbV2ud0B.mjs} +5 -4
  22. package/dist/rolldown/shared/{define-config-DSMNXceb.d.mts → define-config-DwTNhgWB.d.mts} +12 -10
  23. package/dist/rolldown/shared/{error-nLggAzpQ.mjs → error-NcRuXAVN.mjs} +1 -1
  24. package/dist/rolldown/shared/{load-config-O4G7NVNA.mjs → load-config-Dd7jKGUy.mjs} +1 -1
  25. package/dist/rolldown/shared/{normalize-string-or-regex-Cj-DgIV1.mjs → normalize-string-or-regex-CFtim40S.mjs} +1 -1
  26. package/dist/rolldown/shared/{parse-CQfUbVuN.mjs → parse-rvxTD36n.mjs} +2 -2
  27. package/dist/rolldown/shared/{resolve-tsconfig-CE3HNSOK.mjs → resolve-tsconfig-D2vSIIkR.mjs} +2 -2
  28. package/dist/rolldown/shared/{rolldown-qV_fUwyM.mjs → rolldown-Bblizyw1.mjs} +4 -4
  29. package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform--WSMLt1x.d.mts} +1 -1
  30. package/dist/rolldown/shared/{watch-BNIsji74.mjs → watch-DPvOlccK.mjs} +5 -5
  31. package/dist/rolldown/utils-index.d.mts +3 -3
  32. package/dist/rolldown/utils-index.mjs +15 -13
  33. package/dist/tsdown/{build-D_enfyvD-X5SFXZZc.js → build-D_enfyvD-tOzhITac.js} +1076 -20
  34. package/dist/tsdown/{debug-CKcBYQLP-avlAPNcV.js → debug-CKcBYQLP-By_AQqN8.js} +3 -3
  35. package/dist/tsdown/{detect-DGhJGEqb-CGd2brAW.js → detect-DGhJGEqb-LL52mV6u.js} +1 -1
  36. package/dist/tsdown/{dist-BZO8q3c0.js → dist-BsS7BOcb.js} +5 -5
  37. package/dist/tsdown/index-types.d.ts +4 -4
  38. package/dist/tsdown/index.js +4 -4
  39. package/dist/tsdown/internal-DSmmwu4u.js +3 -0
  40. package/dist/tsdown/{main-Jz_9T-KA.js → main-Bcv7jU2b.js} +210 -196
  41. package/dist/tsdown/npm_entry_picomatch.cjs +10 -6
  42. package/dist/tsdown/npm_entry_tree-kill.cjs +4 -2
  43. package/dist/tsdown/{resolver-cwLsPb2o-BqQjnCbF.js → resolver-cwLsPb2o-Bb9SDBm6.js} +2 -2
  44. package/dist/tsdown/run.js +6 -6
  45. package/dist/tsdown/{src-D5keKqGd.js → src-JVSpR8xt.js} +5 -5
  46. package/dist/tsdown/{target-Bab3CUeB-CERZYTwS.js → target-Bab3CUeB-8PBzMh3p.js} +5 -5
  47. package/dist/tsdown/{tsc-DmzrnJwy.js → tsc-B8FD48Oc.js} +3 -3
  48. package/dist/tsdown/tsdown-css.js +5 -5
  49. package/dist/tsdown/tsdown-exe.js +4 -4
  50. package/dist/vite/client/bundledDevClient.mjs +393 -27
  51. package/dist/vite/client/client.mjs +20 -14
  52. package/dist/vite/node/chunks/build.js +70 -64
  53. package/dist/vite/node/chunks/dist.js +36 -29
  54. package/dist/vite/node/chunks/dist2.js +193 -149
  55. package/dist/vite/node/chunks/node.js +1047 -875
  56. package/dist/vite/node/chunks/postcss-import.js +23 -25
  57. package/dist/vite/node/index.d.ts +63 -58
  58. package/dist/vite/node/module-runner.d.ts +13 -13
  59. package/dist/vite/node/module-runner.js +24 -19
  60. package/package.json +32 -26
  61. package/dist/rolldown/shared/binding-DwUQWZOo.mjs +0 -662
  62. package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
  63. package/dist/tsdown/internal-DyaNxVWW.js +0 -3
@@ -1,7 +1,7 @@
1
- import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-Jz_9T-KA.js";
1
+ import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-Bcv7jU2b.js";
2
2
  import process from "node:process";
3
3
  import readline from "node:readline";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
5
5
  const LogLevels = {
6
6
  silent: 0,
7
7
  error: 1,
@@ -140,7 +140,7 @@ function hue2rgb(p, q, t) {
140
140
  return p;
141
141
  }
142
142
  //#endregion
143
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
143
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
144
144
  var version = "0.22.14";
145
145
  const debugLog = createDebug("tsdown:debug");
146
146
  function enableDebug(debug) {
@@ -1,7 +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
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -1,6 +1,6 @@
1
- import { r as createDebug } from "./main-Jz_9T-KA.js";
2
- import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-CERZYTwS.js";
3
- import { n as ee, t as at } from "./dist-CMKwGGNp.js";
1
+ import { r as createDebug } from "./main-Bcv7jU2b.js";
2
+ import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-8PBzMh3p.js";
3
+ import { o as at, s as ee } from "./build-D_enfyvD-tOzhITac.js";
4
4
  import { createRequire } from "node:module";
5
5
  import process from "node:process";
6
6
  import { styleText } from "node:util";
@@ -1365,7 +1365,7 @@ function createGeneratePlugin({ generator, entry, tsconfig, tsconfigRaw, build,
1365
1365
  if (generator === "tsgo") tsgoContext = await runTsgo(logger, rootDir, tsconfig, sourcemap, tsgo.path);
1366
1366
  else if (generator === "tsc") if (parallel) tscWorker = createTscWorker();
1367
1367
  else {
1368
- tscModule = await import("./tsc-DmzrnJwy.js");
1368
+ tscModule = await import("./tsc-B8FD48Oc.js");
1369
1369
  if (newContext) tscContext = createContext();
1370
1370
  }
1371
1371
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -2619,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
2619
2619
  async function resolveDtsPath(id, importer, rolldownResolution) {
2620
2620
  let dtsPath;
2621
2621
  if (resolver === "tsc") {
2622
- const { tscResolve } = await import("./resolver-cwLsPb2o-BqQjnCbF.js");
2622
+ const { tscResolve } = await import("./resolver-cwLsPb2o-Bb9SDBm6.js");
2623
2623
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
2624
2624
  } else dtsPath = baseDtsResolver(id, importer);
2625
2625
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -105,7 +105,7 @@ interface ExeExtensionOptions {
105
105
  nodeDistIndexUrl?: string;
106
106
  }
107
107
  //#endregion
108
- //#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.25__postcss@8.5.25_sas_6a16dd13a926d2b2137531bbae459a0e/node_modules/@tsdown/css/dist/index.d.mts
108
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.2.0_postcss@8.5.26__postcss@8.5.26_sas_b5ecbe85e36c638c226bc310ff1da39e/node_modules/@tsdown/css/dist/index.d.mts
109
109
  //#region src/options.d.ts
110
110
  type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
111
111
  interface CSSModulesOptions {
@@ -1373,7 +1373,7 @@ interface TsgoOptions {
1373
1373
  path?: string;
1374
1374
  }
1375
1375
  //#endregion
1376
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/types-DP3_0kws.d.mts
1376
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/types-DP3_0kws.d.mts
1377
1377
  //#region src/utils/types.d.ts
1378
1378
  type Overwrite<T, U> = Omit<T, keyof U> & U;
1379
1379
  type Awaitable<T> = T | Promise<T>;
@@ -2858,7 +2858,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2858
2858
  exe: false | ExeOptions;
2859
2859
  }>;
2860
2860
  //#endregion
2861
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2861
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
2862
2862
  //#region src/config/options.d.ts
2863
2863
  /**
2864
2864
  * Resolve user config into resolved configs
@@ -2879,7 +2879,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2879
2879
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2880
2880
  declare function defineConfig(options: UserConfigExport): UserConfigExport;
2881
2881
  //#endregion
2882
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.d.mts
2882
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/index.d.mts
2883
2883
  //#region src/build.d.ts
2884
2884
  /**
2885
2885
  * Build with tsdown.
@@ -1,12 +1,12 @@
1
- import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-avlAPNcV.js";
2
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-X5SFXZZc.js";
1
+ import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-By_AQqN8.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-tOzhITac.js";
3
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
4
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/config.mjs
5
5
  function defineConfig(options) {
6
6
  return options;
7
7
  }
8
8
  //#endregion
9
- //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/index.mjs
10
10
  const version = version$1;
11
11
  //#endregion
12
12
  export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
@@ -0,0 +1,3 @@
1
+ import "./main-Bcv7jU2b.js";
2
+ import "./target-Bab3CUeB-8PBzMh3p.js";
3
+ export {};