@voidzero-dev/vite-plus-core 0.1.21-alpha.1 → 0.1.21-alpha.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 (38) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.mjs +2 -2
  3. package/dist/rolldown/experimental-index.mjs +8 -8
  4. package/dist/rolldown/experimental-runtime-types.d.ts +14 -5
  5. package/dist/rolldown/index.mjs +4 -4
  6. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  7. package/dist/rolldown/parse-ast-index.mjs +1 -1
  8. package/dist/rolldown/plugins-index.mjs +2 -2
  9. package/dist/rolldown/shared/{bindingify-input-options-CwT4BXgL.mjs → bindingify-input-options-BFomq0CL.mjs} +4 -4
  10. package/dist/rolldown/shared/{constructors-C2EWPKW3.mjs → constructors-CqLClvFc.mjs} +1 -1
  11. package/dist/rolldown/shared/{error-DL-e8-oE.mjs → error-D4ASW9r2.mjs} +1 -1
  12. package/dist/rolldown/shared/{load-config-DJUKhe3_.mjs → load-config-nKXo7Yxg.mjs} +1 -1
  13. package/dist/rolldown/shared/{normalize-string-or-regex-CbQQ69gT.mjs → normalize-string-or-regex-WerlQkgD.mjs} +1 -1
  14. package/dist/rolldown/shared/{parse-BG8jtBbb.mjs → parse-C-X7ajBy.mjs} +2 -2
  15. package/dist/rolldown/shared/{resolve-tsconfig-CfYpGzid.mjs → resolve-tsconfig-CxJB93yb.mjs} +2 -2
  16. package/dist/rolldown/shared/{rolldown-DLFt25hZ.mjs → rolldown-DNviFDiu.mjs} +1 -1
  17. package/dist/rolldown/shared/{rolldown-build-DrXmg2RO.mjs → rolldown-build-DdPwBoAu.mjs} +82 -144
  18. package/dist/rolldown/shared/{watch-MZrSsVh8.mjs → watch-BWGrirtv.mjs} +4 -4
  19. package/dist/rolldown/utils-index.d.mts +1 -1
  20. package/dist/rolldown/utils-index.mjs +5 -5
  21. package/dist/tsdown/{build-CgGnBlCD-Cyywno42.js → build-CgGnBlCD-CmgnJdWt.js} +58 -71
  22. package/dist/tsdown/{debug-CLlnG64L-Dn9UYJ-T.js → debug-CLlnG64L-Bga2f95T.js} +2 -2
  23. package/dist/tsdown/{detect-DN3DXXYt-VBvyr4oU.js → detect-DN3DXXYt-CQvReX03.js} +1 -1
  24. package/dist/tsdown/{dist-CaWgsVeS.js → dist-DJhmrSLH.js} +12 -12
  25. package/dist/tsdown/{dist-CbhZqEsp.js → dist-D_AJtdxQ.js} +3 -3
  26. package/dist/tsdown/{dist-DL4hnQY2.js → dist-dEREUhS4.js} +5 -9
  27. package/dist/tsdown/{filename-DQnUJlio-DHPB7cQg.js → filename-DQnUJlio-CkHYanGh.js} +1 -1
  28. package/dist/tsdown/index-types.d.ts +5 -5
  29. package/dist/tsdown/index.js +4 -4
  30. package/dist/tsdown/{main-DZy5NlsL.js → main-BQC8aVfq.js} +90 -97
  31. package/dist/tsdown/run.js +5 -5
  32. package/dist/tsdown/{tsc-Cm8giMT9.js → tsc-ILrjzsA_.js} +2 -2
  33. package/dist/tsdown/{tsc-context-B1O6kHlu.js → tsc-context-BBIdwth6.js} +1 -1
  34. package/dist/vite/client/client.mjs +4 -4
  35. package/dist/vite/node/chunks/node.js +0 -3
  36. package/dist/vite/node/index.d.ts +6 -2
  37. package/package.json +9 -9
  38. /package/dist/rolldown/shared/{binding-BeU_1iEk.mjs → binding-Cf9ARhL0.mjs} +0 -0
@@ -1,9 +1,9 @@
1
- import { n as __toESM, t as require_binding } from "./binding-BeU_1iEk.mjs";
1
+ import { n as __toESM, t as require_binding } from "./binding-Cf9ARhL0.mjs";
2
2
  import { o as logMultipleWatcherOption } from "./logs-D80CXhvg.mjs";
3
- import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-CwT4BXgL.mjs";
3
+ import { v as LOG_LEVEL_WARN } from "./bindingify-input-options-BFomq0CL.mjs";
4
4
  import { t as arraify } from "./misc-DJYbNKZX.mjs";
5
- import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DrXmg2RO.mjs";
6
- import { t as aggregateBindingErrorsIntoJsError } from "./error-DL-e8-oE.mjs";
5
+ import { n as createBundlerOptions, u as PluginDriver } from "./rolldown-build-DdPwBoAu.mjs";
6
+ import { t as aggregateBindingErrorsIntoJsError } from "./error-D4ASW9r2.mjs";
7
7
  //#region ../../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
8
8
  /**
9
9
  * This is not the set of all possible signals.
@@ -3,7 +3,7 @@ import { a as MinifyOptions, c as minifySync, d as parse, f as parseSync, i as t
3
3
  import * as ESTree from "@oxc-project/types";
4
4
  import { Program } from "@oxc-project/types";
5
5
 
6
- //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
6
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/visitor.d.ts
7
7
  interface VisitorObject$1 {
8
8
  DebuggerStatement?: (node: ESTree.DebuggerStatement) => void;
9
9
  "DebuggerStatement:exit"?: (node: ESTree.DebuggerStatement) => void;
@@ -1,6 +1,6 @@
1
- import { n as parseSync, t as parse } from "./shared/parse-BG8jtBbb.mjs";
2
- import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CfYpGzid.mjs";
3
- //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
1
+ import { n as parseSync, t as parse } from "./shared/parse-C-X7ajBy.mjs";
2
+ import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-CxJB93yb.mjs";
3
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
4
4
  function walkNode(node, visitors) {
5
5
  if (node == null) return;
6
6
  if (Array.isArray(node)) {
@@ -2010,7 +2010,7 @@ function walkTSUnionType(node, visitors) {
2010
2010
  exit !== null && exit(node);
2011
2011
  }
2012
2012
  //#endregion
2013
- //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2013
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/generated/visit/type_ids.js
2014
2014
  /** Mapping from node type name to node type ID */
2015
2015
  const NODE_TYPE_IDS_MAP = new Map([
2016
2016
  ["DebuggerStatement", 0],
@@ -2180,7 +2180,7 @@ const NODE_TYPE_IDS_MAP = new Map([
2180
2180
  ["TSUnionType", 164]
2181
2181
  ]);
2182
2182
  //#endregion
2183
- //#region ../../../node_modules/.pnpm/oxc-parser@0.127.0/node_modules/oxc-parser/src-js/visit/visitor.js
2183
+ //#region ../../../node_modules/.pnpm/oxc-parser@0.129.0/node_modules/oxc-parser/src-js/visit/visitor.js
2184
2184
  let compiledVisitor;
2185
2185
  function createCompiledVisitor() {
2186
2186
  compiledVisitor = [];
@@ -1,8 +1,8 @@
1
1
  import { n as __exportAll$1, r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
2
- import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as W, o as generateColor, p as green, r as version, s as getNameLabel, t as U, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-DZy5NlsL.js";
2
+ import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as V, o as generateColor, p as green, r as version, s as getNameLabel, t as H, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-BQC8aVfq.js";
3
3
  import { t as createDebug } from "./node-B3Gdtau1.js";
4
- import { d as filename_js_to_dts, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-DQnUJlio-DHPB7cQg.js";
5
- import "./dist-CbhZqEsp.js";
4
+ import { d as filename_js_to_dts, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-DQnUJlio-CkHYanGh.js";
5
+ import "./dist-D_AJtdxQ.js";
6
6
  import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
7
7
  import process$1, { env } from "node:process";
8
8
  import readline from "node:readline";
@@ -11,10 +11,10 @@ import path, { dirname, isAbsolute, join, parse, resolve } from "node:path";
11
11
  import { VERSION, build, watch } from "@voidzero-dev/vite-plus-core/rolldown";
12
12
  import { access, chmod, cp, mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
13
13
  import { and, id, importerId, include } from "@voidzero-dev/vite-plus-core/rolldown/filter";
14
- import fs$1, { existsSync, readFileSync, writeFileSync } from "node:fs";
14
+ import re, { existsSync, readFileSync, writeFileSync } from "node:fs";
15
15
  import * as nativeFs from "fs";
16
16
  import { readdir as readdir$1, readdirSync, realpath, realpathSync, stat as stat$1, statSync } from "fs";
17
- import { basename, dirname as dirname$1, isAbsolute as isAbsolute$1, normalize as normalize$1, posix, relative, resolve as resolve$1, sep } from "path";
17
+ import { basename, dirname as dirname$1, isAbsolute as isAbsolute$1, normalize, posix, relative, resolve as resolve$1, sep } from "path";
18
18
  import { fileURLToPath } from "url";
19
19
  import { createRequire as createRequire$1 } from "module";
20
20
  import { tmpdir } from "node:os";
@@ -23,7 +23,7 @@ import { AsyncLocalStorage } from "node:async_hooks";
23
23
  import { Buffer } from "node:buffer";
24
24
  import { brotliCompress, gzip } from "node:zlib";
25
25
  import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
26
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
26
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
27
27
  function fsExists(path) {
28
28
  return access(path).then(() => true, () => false);
29
29
  }
@@ -66,7 +66,7 @@ function stripExtname(filePath) {
66
66
  return filePath.slice(0, -ext.length);
67
67
  }
68
68
  //#endregion
69
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/format-CajNSstg.mjs
69
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/format-CajNSstg.mjs
70
70
  const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
71
71
  function getShimsInject(format, platform) {
72
72
  if (format === "es" && platform === "node") return {
@@ -326,24 +326,11 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
326
326
  function createDefu(merger) {
327
327
  return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
328
328
  }
329
- createDefu();
330
- createDefu((object, key, currentValue) => {
331
- if (object[key] !== void 0 && typeof currentValue === "function") {
332
- object[key] = currentValue(object[key]);
333
- return true;
334
- }
335
- });
336
- createDefu((object, key, currentValue) => {
337
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
338
- object[key] = currentValue(object[key]);
339
- return true;
340
- }
341
- });
342
329
  //#endregion
343
330
  //#region ../../node_modules/.pnpm/fdir@6.5.0_picomatch@4.0.4/node_modules/fdir/dist/index.mjs
344
331
  var __require$1 = /* @__PURE__ */ createRequire$1(import.meta.url);
345
332
  function cleanPath(path) {
346
- let normalized = normalize$1(path);
333
+ let normalized = normalize(path);
347
334
  if (normalized.length > 1 && normalized[normalized.length - 1] === sep) normalized = normalized.substring(0, normalized.length - 1);
348
335
  return normalized;
349
336
  }
@@ -3208,87 +3195,87 @@ quansync$1({
3208
3195
  */
3209
3196
  const quansync = quansync$1;
3210
3197
  quansync$1({
3211
- sync: fs$1.readFileSync,
3212
- async: fs$1.promises.readFile
3198
+ sync: re.readFileSync,
3199
+ async: re.promises.readFile
3213
3200
  });
3214
3201
  quansync$1({
3215
- sync: fs$1.writeFileSync,
3216
- async: fs$1.promises.writeFile
3202
+ sync: re.writeFileSync,
3203
+ async: re.promises.writeFile
3217
3204
  });
3218
3205
  quansync$1({
3219
- sync: fs$1.unlinkSync,
3220
- async: fs$1.promises.unlink
3206
+ sync: re.unlinkSync,
3207
+ async: re.promises.unlink
3221
3208
  });
3222
3209
  quansync$1({
3223
- sync: fs$1.accessSync,
3224
- async: fs$1.promises.access
3210
+ sync: re.accessSync,
3211
+ async: re.promises.access
3225
3212
  });
3226
3213
  /**
3227
3214
  * @link https://nodejs.org/api/fs.html#fspromisesstatpath-options
3228
3215
  */
3229
3216
  const stat$2 = quansync$1({
3230
- sync: fs$1.statSync,
3231
- async: fs$1.promises.stat
3217
+ sync: re.statSync,
3218
+ async: re.promises.stat
3232
3219
  });
3233
3220
  const lstat = quansync$1({
3234
- sync: fs$1.lstatSync,
3235
- async: fs$1.promises.lstat
3221
+ sync: re.lstatSync,
3222
+ async: re.promises.lstat
3236
3223
  });
3237
3224
  quansync$1({
3238
- sync: fs$1.copyFileSync,
3239
- async: fs$1.promises.copyFile
3225
+ sync: re.copyFileSync,
3226
+ async: re.promises.copyFile
3240
3227
  });
3241
3228
  quansync$1({
3242
- sync: fs$1.rmSync,
3243
- async: fs$1.promises.rm
3229
+ sync: re.rmSync,
3230
+ async: re.promises.rm
3244
3231
  });
3245
3232
  quansync$1({
3246
- sync: fs$1.mkdirSync,
3247
- async: fs$1.promises.mkdir
3233
+ sync: re.mkdirSync,
3234
+ async: re.promises.mkdir
3248
3235
  });
3249
3236
  quansync$1({
3250
- sync: fs$1.renameSync,
3251
- async: fs$1.promises.rename
3237
+ sync: re.renameSync,
3238
+ async: re.promises.rename
3252
3239
  });
3253
3240
  quansync$1({
3254
- sync: fs$1.readdirSync,
3255
- async: fs$1.promises.readdir
3241
+ sync: re.readdirSync,
3242
+ async: re.promises.readdir
3256
3243
  });
3257
3244
  quansync$1({
3258
- sync: fs$1.realpathSync,
3259
- async: fs$1.promises.realpath
3245
+ sync: re.realpathSync,
3246
+ async: re.promises.realpath
3260
3247
  });
3261
3248
  quansync$1({
3262
- sync: fs$1.readlinkSync,
3263
- async: fs$1.promises.readlink
3249
+ sync: re.readlinkSync,
3250
+ async: re.promises.readlink
3264
3251
  });
3265
3252
  quansync$1({
3266
- sync: fs$1.symlinkSync,
3267
- async: fs$1.promises.symlink
3253
+ sync: re.symlinkSync,
3254
+ async: re.promises.symlink
3268
3255
  });
3269
3256
  quansync$1({
3270
- sync: fs$1.chownSync,
3271
- async: fs$1.promises.chown
3257
+ sync: re.chownSync,
3258
+ async: re.promises.chown
3272
3259
  });
3273
3260
  quansync$1({
3274
- sync: fs$1.lchownSync,
3275
- async: fs$1.promises.lchown
3261
+ sync: re.lchownSync,
3262
+ async: re.promises.lchown
3276
3263
  });
3277
3264
  quansync$1({
3278
- sync: fs$1.chmodSync,
3279
- async: fs$1.promises.chmod
3265
+ sync: re.chmodSync,
3266
+ async: re.promises.chmod
3280
3267
  });
3281
3268
  quansync$1({
3282
- sync: fs$1.utimesSync,
3283
- async: fs$1.promises.utimes
3269
+ sync: re.utimesSync,
3270
+ async: re.promises.utimes
3284
3271
  });
3285
3272
  quansync$1({
3286
- sync: fs$1.lutimesSync,
3287
- async: fs$1.promises.lutimes
3273
+ sync: re.lutimesSync,
3274
+ async: re.promises.lutimes
3288
3275
  });
3289
3276
  quansync$1({
3290
- sync: fs$1.mkdtempSync,
3291
- async: fs$1.promises.mkdtemp
3277
+ sync: re.mkdtempSync,
3278
+ async: re.promises.mkdtemp
3292
3279
  });
3293
3280
  //#endregion
3294
3281
  //#region ../../node_modules/.pnpm/unconfig-core@7.5.0/node_modules/unconfig-core/dist/index.mjs
@@ -3367,7 +3354,7 @@ function createConfigCoreLoader(options) {
3367
3354
  };
3368
3355
  }
3369
3356
  //#endregion
3370
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/options-8hmVMssn.mjs
3357
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/options-8hmVMssn.mjs
3371
3358
  const __cjs_require$1 = createRequire(import.meta.url);
3372
3359
  const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
3373
3360
  const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
@@ -3540,7 +3527,7 @@ async function buildSingleExe(config, bundledFile, outputFile, executable, targe
3540
3527
  await writeFile(seaConfigPath, JSON.stringify(seaConfig));
3541
3528
  debug$3$2("Wrote sea-config.json: %O -> %s", seaConfig, seaConfigPath);
3542
3529
  debug$3$2("Running: %s --build-sea %s", process$1.execPath, seaConfigPath);
3543
- await U(process$1.execPath, ["--build-sea", seaConfigPath], {
3530
+ await V(process$1.execPath, ["--build-sea", seaConfigPath], {
3544
3531
  nodeOptions: { stdio: [
3545
3532
  "ignore",
3546
3533
  "ignore",
@@ -3553,7 +3540,7 @@ async function buildSingleExe(config, bundledFile, outputFile, executable, targe
3553
3540
  else await fsRemove(tempDir);
3554
3541
  }
3555
3542
  if ((target?.platform || process$1.platform) === "darwin") try {
3556
- await U("codesign", [
3543
+ await V("codesign", [
3557
3544
  "--sign",
3558
3545
  "-",
3559
3546
  outputPath
@@ -4013,7 +4000,7 @@ async function nativeImport(id) {
4013
4000
  return [mod.default || mod, deps];
4014
4001
  }
4015
4002
  async function unrunImport(id) {
4016
- const { unrun } = await import("./dist-CaWgsVeS.js");
4003
+ const { unrun } = await import("./dist-DJhmrSLH.js");
4017
4004
  const { module, dependencies } = await unrun({ path: pathToFileURL(id).href });
4018
4005
  return [module, new Set(dependencies)];
4019
4006
  }
@@ -4222,7 +4209,7 @@ function filterConfig(filter, configCwd, name) {
4222
4209
  return toArray(filter).some((value) => name && name === value || cwd === value);
4223
4210
  }
4224
4211
  //#endregion
4225
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/watch-D6EGzM6P.mjs
4212
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/watch-D6EGzM6P.mjs
4226
4213
  async function copy(options) {
4227
4214
  if (!options.copy) return;
4228
4215
  const resolved = await resolveCopyEntries(options);
@@ -4602,7 +4589,7 @@ var Hookable = class {
4602
4589
  }
4603
4590
  };
4604
4591
  //#endregion
4605
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/build-CgGnBlCD.mjs
4592
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/build-CgGnBlCD.mjs
4606
4593
  var build_CgGnBlCD_exports = /* @__PURE__ */ __exportAll$1({
4607
4594
  n: () => buildWithConfigs,
4608
4595
  r: () => build_exports,
@@ -4736,7 +4723,7 @@ function executeOnSuccess(config) {
4736
4723
  if (!config.onSuccess) return;
4737
4724
  const ab = new AbortController();
4738
4725
  if (typeof config.onSuccess === "string") {
4739
- const p = W(config.onSuccess, [], { nodeOptions: {
4726
+ const p = H(config.onSuccess, [], { nodeOptions: {
4740
4727
  shell: true,
4741
4728
  stdio: "inherit",
4742
4729
  cwd: config.cwd
@@ -4914,7 +4901,7 @@ async function bundleDone(bundleByPkg, bundle) {
4914
4901
  async function packTarball(packageJsonPath) {
4915
4902
  const pkgDir = path.dirname(packageJsonPath);
4916
4903
  const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
4917
- const { detect } = await import("./detect-DN3DXXYt-VBvyr4oU.js");
4904
+ const { detect } = await import("./detect-DN3DXXYt-CQvReX03.js");
4918
4905
  try {
4919
4906
  const detected = await detect({ cwd: pkgDir });
4920
4907
  if (detected?.name === "deno") throw new Error(`Cannot pack tarball for Deno projects at ${pkgDir}`);
@@ -4981,7 +4968,7 @@ async function pack(dir, pm, destination, ignoreScripts) {
4981
4968
  args.push("--ignore-scripts");
4982
4969
  break;
4983
4970
  }
4984
- const output = await U(command, args, { nodeOptions: { cwd: dir } });
4971
+ const output = await V(command, args, { nodeOptions: { cwd: dir } });
4985
4972
  const tarballFile = await readdir(destination).then((files) => files.find((file) => file.endsWith(".tgz")));
4986
4973
  if (!tarballFile) throw new Error(`Failed to find packed tarball file in ${destination}. Command output:\n${JSON.stringify(output, null, 2)}`);
4987
4974
  return path.join(destination, tarballFile);
@@ -5050,7 +5037,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
5050
5037
  if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
5051
5038
  if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepsPlugin(config, bundle));
5052
5039
  if (dts) {
5053
- const { dts: dtsPlugin } = await import("./dist-DL4hnQY2.js");
5040
+ const { dts: dtsPlugin } = await import("./dist-dEREUhS4.js");
5054
5041
  const { cjsReexport: _, ...dtsPluginOptions } = dts;
5055
5042
  const options = {
5056
5043
  tsconfig,
@@ -1,6 +1,6 @@
1
- import { D as toArray, w as resolveComma } from "./main-DZy5NlsL.js";
1
+ import { D as toArray, w as resolveComma } from "./main-BQC8aVfq.js";
2
2
  import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
3
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/debug-CLlnG64L.mjs
3
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/debug-CLlnG64L.mjs
4
4
  const debugLog = createDebug("tsdown:debug");
5
5
  function enableDebug(debug) {
6
6
  if (!debug) return;
@@ -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.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
5
5
  const AGENTS = [
6
6
  "npm",
7
7
  "yarn",
@@ -3,7 +3,7 @@ import process from "node:process";
3
3
  import "node:child_process";
4
4
  import path from "node:path";
5
5
  import { rolldown } from "@voidzero-dev/vite-plus-core/rolldown";
6
- import fs, { existsSync } from "node:fs";
6
+ import re, { existsSync } from "node:fs";
7
7
  import { tmpdir } from "node:os";
8
8
  import { fileURLToPath, pathToFileURL } from "node:url";
9
9
  import { Buffer } from "node:buffer";
@@ -54,7 +54,7 @@ function resolveOptions(options = {}) {
54
54
  inputOptions: options.inputOptions,
55
55
  outputOptions: options.outputOptions
56
56
  };
57
- if (!fs.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
57
+ if (!re.existsSync(resolvedOptions.path)) throw new Error(`[unrun] File not found: ${resolvedOptions.path}`);
58
58
  if (!new Set([
59
59
  "none",
60
60
  "jiti",
@@ -268,7 +268,7 @@ function createJsonLoader() {
268
268
  let isRequire = false;
269
269
  try {
270
270
  if (importer) {
271
- const src = fs.readFileSync(importer, "utf8");
271
+ const src = re.readFileSync(importer, "utf8");
272
272
  const escaped = source.replaceAll(/[.*+?^${}()|[\]\\]/g, (m) => `\\${m}`);
273
273
  const pattern = String.raw`\brequire\s*\(\s*['"]${escaped}['"]\s*\)`;
274
274
  isRequire = new RegExp(pattern).test(src);
@@ -281,7 +281,7 @@ function createJsonLoader() {
281
281
  handler(id) {
282
282
  try {
283
283
  const realId = id.replace(/\?unrun-json\.(?:mjs|cjs)$/, "");
284
- const src = fs.readFileSync(realId, "utf8");
284
+ const src = re.readFileSync(realId, "utf8");
285
285
  const data = JSON.parse(src);
286
286
  const jsonLiteral = JSON.stringify(data);
287
287
  if (id.endsWith("?unrun-json.cjs")) return { code: `const __data = ${jsonLiteral}\ntry { Object.defineProperty(__data, 'default', { value: __data, enumerable: false, configurable: true }) } catch {}\nmodule.exports = __data\n` };
@@ -375,7 +375,7 @@ function createRequireResolveFix(options) {
375
375
  ".cjs"
376
376
  ]) {
377
377
  const testPath = path.resolve(baseDir, id + ext);
378
- if (fs.existsSync(testPath)) return JSON.stringify(testPath);
378
+ if (re.existsSync(testPath)) return JSON.stringify(testPath);
379
379
  }
380
380
  const resolvedPath = path.resolve(baseDir, id);
381
381
  return JSON.stringify(resolvedPath);
@@ -416,7 +416,7 @@ function createSourceContextShimsPlugin() {
416
416
  const normalizedPhysicalId = path.normalize(physicalId);
417
417
  let code;
418
418
  try {
419
- code = fs.readFileSync(normalizedPhysicalId, "utf8");
419
+ code = re.readFileSync(normalizedPhysicalId, "utf8");
420
420
  } catch {
421
421
  return null;
422
422
  }
@@ -658,7 +658,7 @@ function cleanModule(moduleUrl, options) {
658
658
  try {
659
659
  if (moduleUrl.startsWith("file://")) {
660
660
  const filePath = new URL(moduleUrl);
661
- fs.unlinkSync(filePath);
661
+ re.unlinkSync(filePath);
662
662
  }
663
663
  } catch (error) {
664
664
  if (error.code !== "ENOENT") throw error;
@@ -682,14 +682,14 @@ function writeModule(code, options) {
682
682
  const projectNodeModules = path.join(process.cwd(), "node_modules");
683
683
  const outDir = path.join(projectNodeModules, ".unrun");
684
684
  const outFile = path.join(outDir, fname);
685
- if (!fs.existsSync(outFile)) try {
686
- fs.mkdirSync(outDir, { recursive: true });
687
- fs.writeFileSync(outFile, code, "utf8");
685
+ if (!re.existsSync(outFile)) try {
686
+ re.mkdirSync(outDir, { recursive: true });
687
+ re.writeFileSync(outFile, code, "utf8");
688
688
  } catch {
689
689
  const fallbackDir = path.join(tmpdir(), "unrun-cache");
690
690
  const fallbackFile = path.join(fallbackDir, fname);
691
- fs.mkdirSync(fallbackDir, { recursive: true });
692
- fs.writeFileSync(fallbackFile, code, "utf8");
691
+ re.mkdirSync(fallbackDir, { recursive: true });
692
+ re.writeFileSync(fallbackFile, code, "utf8");
693
693
  moduleUrl = pathToFileURL(fallbackFile).href;
694
694
  }
695
695
  moduleUrl = moduleUrl || pathToFileURL(outFile).href;
@@ -1,6 +1,6 @@
1
1
  import module from "node:module";
2
2
  import path from "node:path";
3
- import fs from "node:fs";
3
+ import re from "node:fs";
4
4
  import xe from "fs";
5
5
  import Be from "os";
6
6
  import Ie from "path";
@@ -63,11 +63,11 @@ function h(e) {
63
63
  }
64
64
  i(h, "slash");
65
65
  const Z = i((e) => {
66
- const t = fs[e];
66
+ const t = re[e];
67
67
  return (s, ...n) => {
68
68
  const o = `${e}:${n.join(":")}`;
69
69
  let l = s == null ? void 0 : s.get(o);
70
- return l === void 0 && (l = Reflect.apply(t, fs, n), s?.set(o, l)), l;
70
+ return l === void 0 && (l = Reflect.apply(t, re, n), s?.set(o, l)), l;
71
71
  };
72
72
  }, "cacheFs"), E = Z("existsSync"), $e = Z("readFileSync"), G = Z("statSync"), fe = i((e, t, s) => {
73
73
  for (;;) {
@@ -1,8 +1,8 @@
1
1
  import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
2
2
  import { t as createDebug } from "./node-B3Gdtau1.js";
3
- import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio-DHPB7cQg.js";
4
- import { n as pe, t as Ge } from "./dist-CbhZqEsp.js";
5
- import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-B1O6kHlu.js";
3
+ import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio-CkHYanGh.js";
4
+ import { n as pe, t as Ge } from "./dist-D_AJtdxQ.js";
5
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-BBIdwth6.js";
6
6
  import { createRequire } from "node:module";
7
7
  import process from "node:process";
8
8
  import { fork, spawn } from "node:child_process";
@@ -602,8 +602,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
602
602
  if (skipable && skipSourceless(line, index)) return;
603
603
  return insert(line, index, [genColumn]);
604
604
  }
605
- assert$2(sourceLine);
606
- assert$2(sourceColumn);
607
605
  const sourcesIndex = put(sources, source);
608
606
  const namesIndex = name ? put(names, name) : NO_NAME;
609
607
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -621,7 +619,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
621
619
  sourceColumn
622
620
  ]);
623
621
  }
624
- function assert$2(_val) {}
625
622
  function getIndex(arr, index) {
626
623
  for (let i = arr.length; i <= index; i++) arr[i] = [];
627
624
  return arr[index];
@@ -654,7 +651,6 @@ function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIn
654
651
  function addMappingInternal(skipable, map, mapping) {
655
652
  const { generated, source, original, name, content } = mapping;
656
653
  if (!source) return addSegmentInternal(skipable, map, generated.line - 1, generated.column, null, null, null, null, null);
657
- assert$2(original);
658
654
  return addSegmentInternal(skipable, map, generated.line - 1, generated.column, source, original.line - 1, original.column, name, content);
659
655
  }
660
656
  //#endregion
@@ -30410,7 +30406,7 @@ function resolveTemplateLiteral(node) {
30410
30406
  */
30411
30407
  const walkAST = walk;
30412
30408
  //#endregion
30413
- //#region ../../node_modules/.pnpm/dts-resolver@2.1.3_oxc-resolver@11.19.1_@emnapi+core@1.9.2_@emnapi+runtime@1.9.2_/node_modules/dts-resolver/dist/index.mjs
30409
+ //#region ../../node_modules/.pnpm/dts-resolver@2.1.3_oxc-resolver@11.19.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_/node_modules/dts-resolver/dist/index.mjs
30414
30410
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
30415
30411
  function createResolver({ tsconfig, cwd = process.cwd(), resolveNodeModules = false, ResolverFactory } = {}) {
30416
30412
  ResolverFactory ||= __require("oxc-resolver").ResolverFactory;
@@ -31217,7 +31213,7 @@ function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental
31217
31213
  on: (fn) => childProcess.on("message", fn)
31218
31214
  });
31219
31215
  } else {
31220
- tscModule = await import("./tsc-Cm8giMT9.js");
31216
+ tscModule = await import("./tsc-ILrjzsA_.js");
31221
31217
  if (newContext) tscContext = createContext();
31222
31218
  }
31223
31219
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -1,6 +1,6 @@
1
1
  import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
2
2
  import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
3
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_cb3700e83d33e7fb90f7550267bb8c2d/node_modules/rolldown-plugin-dts/dist/filename-DQnUJlio.mjs
3
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_766394248e9ecd4faca560651c4c5680/node_modules/rolldown-plugin-dts/dist/filename-DQnUJlio.mjs
4
4
  const RE_JS = /\.([cm]?)jsx?$/;
5
5
  const RE_TS = /\.([cm]?)tsx?$/;
6
6
  const RE_DTS = /\.d\.([cm]?)ts$/;
@@ -11,7 +11,7 @@ import * as _$publint_utils0 from "publint/utils";
11
11
  import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
12
12
  import { Options as UnusedOptions } from "unplugin-unused";
13
13
 
14
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/index-DraNj4FA.d.mts
14
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/index-DraNj4FA.d.mts
15
15
  //#region src/utils/types.d.ts
16
16
  type Overwrite<T, U> = Omit<T, keyof U> & U;
17
17
  type Awaitable<T> = T | Promise<T>;
@@ -1145,7 +1145,7 @@ type TsConfigJson = {
1145
1145
  references?: TsConfigJson.References[];
1146
1146
  };
1147
1147
  //#endregion
1148
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_cb3700e83d33e7fb90f7550267bb8c2d/node_modules/rolldown-plugin-dts/dist/index.d.mts
1148
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_766394248e9ecd4faca560651c4c5680/node_modules/rolldown-plugin-dts/dist/index.d.mts
1149
1149
  //#region src/options.d.ts
1150
1150
  interface GeneralOptions {
1151
1151
  /**
@@ -1345,7 +1345,7 @@ interface TsgoOptions {
1345
1345
  path?: string;
1346
1346
  }
1347
1347
  //#endregion
1348
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/types-BZNNnDKc.d.mts
1348
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/types-BZNNnDKc.d.mts
1349
1349
  //#region src/features/copy.d.ts
1350
1350
  interface CopyEntry {
1351
1351
  /**
@@ -2267,7 +2267,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2267
2267
  exe: false | ExeOptions;
2268
2268
  }>; //#endregion
2269
2269
  //#endregion
2270
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/config-CuK0i1Bc.d.mts
2270
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/config-CuK0i1Bc.d.mts
2271
2271
  //#region src/config/options.d.ts
2272
2272
  /**
2273
2273
  * Resolve user config into resolved configs
@@ -2287,7 +2287,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2287
2287
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2288
2288
  declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
2289
2289
  //#endregion
2290
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/index.d.mts
2290
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/index.d.mts
2291
2291
  //#region src/build.d.ts
2292
2292
  /**
2293
2293
  * Build with tsdown.
@@ -1,8 +1,8 @@
1
- import { c as globalLogger } from "./main-DZy5NlsL.js";
2
- import { t as enableDebug } from "./debug-CLlnG64L-Dn9UYJ-T.js";
3
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-CgGnBlCD-Cyywno42.js";
1
+ import { c as globalLogger } from "./main-BQC8aVfq.js";
2
+ import { t as enableDebug } from "./debug-CLlnG64L-Bga2f95T.js";
3
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-CgGnBlCD-CmgnJdWt.js";
4
4
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_43eb91aec0ed7105f0ebbe65dd74eb9a/node_modules/tsdown/dist/config.mjs
5
+ //#region ../../node_modules/.pnpm/tsdown@0.21.10_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.10_@tsdown+exe@0.21.10_@t_1dda983e987248a6524e731dd43b2076/node_modules/tsdown/dist/config.mjs
6
6
  function defineConfig(options) {
7
7
  return options;
8
8
  }