@voidzero-dev/vite-plus-core 0.1.18 → 0.1.19-alpha.1

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 (66) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +4 -4
  5. package/dist/rolldown/experimental-index.mjs +8 -8
  6. package/dist/rolldown/filter-index.d.mts +1 -1
  7. package/dist/rolldown/index.d.mts +2 -2
  8. package/dist/rolldown/index.mjs +4 -4
  9. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  10. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  11. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  12. package/dist/rolldown/parse-ast-index.mjs +1 -1
  13. package/dist/rolldown/plugins-index.d.mts +3 -3
  14. package/dist/rolldown/plugins-index.mjs +2 -2
  15. package/dist/rolldown/shared/{binding-s-V_wTpj.mjs → binding-DI_PGVIh.mjs} +1 -1
  16. package/dist/rolldown/shared/{binding-DUEnSb0A.d.mts → binding-zH1vcmbM.d.mts} +27 -0
  17. package/dist/rolldown/shared/{bindingify-input-options-BZsZ-nl1.mjs → bindingify-input-options-CQLSwbb0.mjs} +24 -48
  18. package/dist/rolldown/shared/{constructors-DYemMpPL.d.mts → constructors-C29s6i8O.d.mts} +2 -2
  19. package/dist/rolldown/shared/{constructors-BaEBnHl3.mjs → constructors-Dzji6NUq.mjs} +1 -1
  20. package/dist/rolldown/shared/{define-config-DhJZwTRw.d.mts → define-config-DmrIgjVV.d.mts} +22 -1
  21. package/dist/rolldown/shared/{error-w0u7biK-.mjs → error-DAA7ncC5.mjs} +1 -1
  22. package/dist/rolldown/shared/{load-config-CmWRh-jo.mjs → load-config-DKK5aKL7.mjs} +1 -1
  23. package/dist/rolldown/shared/{normalize-string-or-regex-CVvpepxa.mjs → normalize-string-or-regex-E9GT23QI.mjs} +1 -1
  24. package/dist/rolldown/shared/{parse-Bd1l_BRJ.mjs → parse-BC6EwEdS.mjs} +2 -2
  25. package/dist/rolldown/shared/{prompt-DZIXsnf9.mjs → prompt-Bm9aMQjm.mjs} +4 -2
  26. package/dist/rolldown/shared/{resolve-tsconfig-CNjJwuKB.mjs → resolve-tsconfig-BVTabsge.mjs} +2 -2
  27. package/dist/rolldown/shared/{rolldown-CWkl-K9Q.mjs → rolldown-DN-NFVZl.mjs} +1 -1
  28. package/dist/rolldown/shared/{rolldown-build-BIk0DnUJ.mjs → rolldown-build-B-H35squ.mjs} +10 -6
  29. package/dist/rolldown/shared/{transform-Kz3D2LbX.d.mts → transform-DgZ3paSD.d.mts} +1 -1
  30. package/dist/rolldown/shared/{watch-CTRlKkoe.mjs → watch-DKEzXLor.mjs} +4 -4
  31. package/dist/rolldown/utils-index.d.mts +3 -3
  32. package/dist/rolldown/utils-index.mjs +5 -5
  33. package/dist/tsdown/{build-y6nUUkVJ-BUtpLkpw.js → build-OX8uszs6-4hNTeOrB.js} +143 -92
  34. package/dist/tsdown/{chunk-CSNpwdVU.js → chunk-N93fKeF6.js} +1 -1
  35. package/dist/tsdown/{debug-CLlnG64L-CvIUyX2c.js → debug-CLlnG64L-CuCVzZmG.js} +2 -2
  36. package/dist/tsdown/{detect-DN3DXXYt-DDr6LAmT.js → detect-DN3DXXYt-DtgPLlRO.js} +1 -1
  37. package/dist/tsdown/{dist-Cqme3mtE.js → dist-CrrE8ZBn.js} +1 -1
  38. package/dist/tsdown/{dist-PpqQ55q2.js → dist-DSi2MWPQ.js} +7 -6
  39. package/dist/tsdown/index-types.d.ts +64 -16
  40. package/dist/tsdown/index.js +4 -4
  41. package/dist/tsdown/{main-Ccx2FDJq.js → main-BsfiKQP8.js} +5 -5
  42. package/dist/tsdown/npm_cjs_chunk_chunk.cjs +1 -1
  43. package/dist/tsdown/run.js +4 -4
  44. package/dist/tsdown/{tsc-o1MoGgGA.js → tsc-Cm8giMT9.js} +1 -1
  45. package/dist/vite/client/client.mjs +4 -4
  46. package/dist/vite/node/chunks/build.js +5381 -2
  47. package/dist/vite/node/chunks/chunk.js +11 -2
  48. package/dist/vite/node/chunks/dist.js +21 -11
  49. package/dist/vite/node/chunks/dist2.js +4 -3
  50. package/dist/vite/node/chunks/logger.js +1 -1
  51. package/dist/vite/node/chunks/node.js +115 -59
  52. package/dist/vite/node/chunks/postcss-import.js +1 -1
  53. package/dist/vite/node/cli.js +6 -6
  54. package/dist/vite/node/index.d.ts +2 -2
  55. package/dist/vite/node/index.js +1 -1
  56. package/dist/vite/node/module-runner.js +2 -2
  57. package/package.json +12 -12
  58. package/dist/tsdown/build-y6nUUkVJ-B9JhNMeu.js +0 -2
  59. package/dist/vite/node/chunks/build2.js +0 -5378
  60. package/dist/vite/node/chunks/config.js +0 -2
  61. package/dist/vite/node/chunks/optimizer.js +0 -2
  62. package/dist/vite/node/chunks/preview.js +0 -2
  63. package/dist/vite/node/chunks/server.js +0 -2
  64. /package/dist/tsdown/{dist-D8aGMhnG.js → dist-JaOach5K.js} +0 -0
  65. /package/dist/tsdown/{resolver-DkvdaW3s-CCXGyGZ3.js → resolver-DkvdaW3s-BeVUoOo-.js} +0 -0
  66. /package/dist/tsdown/{tsc-context-C2cC1Bhi.js → tsc-context-B1O6kHlu.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
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
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
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-C2cC1Bhi.js";
5
+ import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-B1O6kHlu.js";
6
6
  import { createRequire } from "node:module";
7
7
  import process from "node:process";
8
8
  import { fork, spawn } from "node:child_process";
@@ -24386,7 +24386,8 @@ var UtilParser = class extends Tokenizer {
24386
24386
  const oldInModule = this.inModule;
24387
24387
  this.inModule = inModule;
24388
24388
  const oldScope = this.scope;
24389
- this.scope = new (this.getScopeHandler())(this, inModule);
24389
+ const ScopeHandler = this.getScopeHandler();
24390
+ this.scope = new ScopeHandler(this, inModule);
24390
24391
  const oldProdParam = this.prodParam;
24391
24392
  this.prodParam = new ProductionParameterHandler();
24392
24393
  const oldClassScope = this.classScope;
@@ -31211,12 +31212,12 @@ function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental
31211
31212
  if (tsgo) tsgoDist = await runTsgo(rootDir, tsconfig, sourcemap, tsgo.path);
31212
31213
  else if (!oxc) if (parallel) {
31213
31214
  childProcess = fork(new URL(WORKER_URL, import.meta.url), { stdio: "inherit" });
31214
- rpc = (await import("./dist-D8aGMhnG.js")).createBirpc({}, {
31215
+ rpc = (await import("./dist-JaOach5K.js")).createBirpc({}, {
31215
31216
  post: (data) => childProcess.send(data),
31216
31217
  on: (fn) => childProcess.on("message", fn)
31217
31218
  });
31218
31219
  } else {
31219
- tscModule = await import("./tsc-o1MoGgGA.js");
31220
+ tscModule = await import("./tsc-Cm8giMT9.js");
31220
31221
  if (newContext) tscContext = createContext();
31221
31222
  }
31222
31223
  if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
@@ -31548,7 +31549,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
31548
31549
  async function resolveDtsPath(id, importer, rolldownResolution) {
31549
31550
  let dtsPath;
31550
31551
  if (resolver === "tsc") {
31551
- const { tscResolve } = await import("./resolver-DkvdaW3s-CCXGyGZ3.js");
31552
+ const { tscResolve } = await import("./resolver-DkvdaW3s-BeVUoOo-.js");
31552
31553
  dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
31553
31554
  } else dtsPath = baseDtsResolver(id, importer);
31554
31555
  debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
@@ -1,10 +1,10 @@
1
1
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
2
- import { BuildOptions as BuildOptions$1, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
2
+ import { BuildOptions as BuildOptions$1, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, Plugin, RolldownPlugin, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
3
3
  import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
4
4
 
5
5
  //#region \0rolldown/runtime.js
6
6
  //#endregion
7
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/index-DraNj4FA.d.mts
7
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/index-DraNj4FA.d.mts
8
8
  //#region src/utils/types.d.ts
9
9
  type Overwrite<T, U> = Omit<T, keyof U> & U;
10
10
  type Awaitable<T> = T | Promise<T>;
@@ -332,8 +332,7 @@ type PackageJsonExports = string | PackageJsonExportsObject | Array<string | Pac
332
332
  */
333
333
  //#endregion
334
334
  //#endregion
335
- //#region ../../node_modules/.pnpm/hookable@6.1.0/node_modules/hookable/dist/index.d.mts
336
- //#region src/types.d.ts
335
+ //#region ../../node_modules/.pnpm/hookable@6.1.1/node_modules/hookable/dist/index.d.mts
337
336
  type HookCallback = (...arguments_: any) => Promise<void> | void;
338
337
  type HookKeys<T> = keyof T & string;
339
338
  type DeprecatedHook<T> = {
@@ -349,8 +348,7 @@ type Namespaces<T> = ValueOf<{ [key in Strings<T>]: key extends `${infer Namespa
349
348
  type BareHooks<T> = ValueOf<{ [key in Strings<T>]: key extends `${string}:${string}` ? never : key }>;
350
349
  type HooksInNamespace<T, Namespace extends string> = ValueOf<{ [key in Strings<T>]: key extends `${Namespace}:${infer HookName}` ? HookName : never }>;
351
350
  type WithoutNamespace<T, Namespace extends string> = { [key in HooksInNamespace<T, Namespace>]: `${Namespace}:${key}` extends keyof T ? T[`${Namespace}:${key}`] : never };
352
- type NestedHooks<T> = (Partial<StripGeneric<T>> | Partial<OnlyGeneric<T>>) & Partial<{ [key in Namespaces<StripGeneric<T>>]: NestedHooks<WithoutNamespace<T, key>> }> & Partial<{ [key in BareHooks<StripGeneric<T>>]: T[key] }>; //#endregion
353
- //#region src/hookable.d.ts
351
+ type NestedHooks<T> = (Partial<StripGeneric<T>> | Partial<OnlyGeneric<T>>) & Partial<{ [key in Namespaces<StripGeneric<T>>]: NestedHooks<WithoutNamespace<T, key>> }> & Partial<{ [key in BareHooks<StripGeneric<T>>]: T[key] }>;
354
352
  type InferCallback<HT, HN extends keyof HT> = HT[HN] extends HookCallback ? HT[HN] : never;
355
353
  type InferSpyEvent<HT extends Record<string, any>> = { [key in keyof HT]: {
356
354
  name: key;
@@ -8777,7 +8775,7 @@ interface GlobDependency {
8777
8775
  glob: string;
8778
8776
  }
8779
8777
  //#endregion
8780
- //#region ../../node_modules/.pnpm/@tsdown+css@0.21.8_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._81fd5f08d4f28d4e75e4fccd68b101e5/node_modules/@tsdown/css/dist/index.d.mts
8778
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.21.9_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._9c9534071e27f9dadaa3d21f923ad8c8/node_modules/@tsdown/css/dist/index.d.mts
8781
8779
  //#region src/options.d.ts
8782
8780
  type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
8783
8781
  interface CSSModulesOptions {
@@ -8926,7 +8924,7 @@ interface StylusPreprocessorOptions {
8926
8924
  [key: string]: any;
8927
8925
  }
8928
8926
  //#endregion
8929
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.13_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
8927
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
8930
8928
  //#region src/node/cli-commands.d.ts
8931
8929
  interface StartOptions {
8932
8930
  root?: string;
@@ -8936,7 +8934,7 @@ interface StartOptions {
8936
8934
  open?: boolean;
8937
8935
  }
8938
8936
  //#endregion
8939
- //#region ../../node_modules/.pnpm/@tsdown+exe@0.21.8_tsdown@0.21.8/node_modules/@tsdown/exe/dist/index.d.mts
8937
+ //#region ../../node_modules/.pnpm/@tsdown+exe@0.21.9_tsdown@0.21.9/node_modules/@tsdown/exe/dist/index.d.mts
8940
8938
  //#region src/platform.d.ts
8941
8939
  type ExePlatform = "win" | "darwin" | "linux";
8942
8940
  type ExeArch = "x64" | "arm64";
@@ -21423,7 +21421,7 @@ interface Options {
21423
21421
  depKinds?: Array<DepKind>;
21424
21422
  }
21425
21423
  //#endregion
21426
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/types-C7s2EXSK.d.mts
21424
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/types-BZNNnDKc.d.mts
21427
21425
  //#region src/features/copy.d.ts
21428
21426
  interface CopyEntry {
21429
21427
  /**
@@ -21767,6 +21765,55 @@ interface ExportsOptions {
21767
21765
  interface PublintOptions extends Omit<Options$2, "pack" | "pkgDir"> {
21768
21766
  module?: [typeof index_d_exports, typeof utils_d_exports];
21769
21767
  } //#endregion
21768
+ //#region src/features/plugin.d.ts
21769
+ /**
21770
+ * A tsdown-aware plugin. Extends Rolldown's `Plugin` with tsdown-specific
21771
+ * lifecycle hooks.
21772
+ *
21773
+ * Plugins that only use Rolldown's own lifecycle continue to work unchanged;
21774
+ * tsdown detects these optional methods via runtime duck-typing.
21775
+ */
21776
+ interface TsdownPlugin<A = any> extends Plugin<A> {
21777
+ /**
21778
+ * Modify tsdown's user config before it is resolved. Analogous to Vite's
21779
+ * [`config`](https://vite.dev/guide/api-plugin.html#config) hook.
21780
+ *
21781
+ * The hook may mutate `config` in place, or return a partial {@link UserConfig}
21782
+ * that will be deep-merged into the current config. Array fields are
21783
+ * replaced (not concatenated) during merging — to append plugins, mutate
21784
+ * `config.plugins` in place.
21785
+ *
21786
+ * The second argument is the original {@link InlineConfig} passed to
21787
+ * `build()` (typically the CLI flags), useful for distinguishing values
21788
+ * that came from the command line vs. the config file.
21789
+ *
21790
+ * Plugins injected via `fromVite` do not receive this hook, because they
21791
+ * are loaded after the tsdownConfig phase. Likewise, new plugins added by
21792
+ * another plugin's `tsdownConfig` do not themselves receive this hook
21793
+ * (plugins are snapshotted before dispatch).
21794
+ */
21795
+ tsdownConfig?: (config: UserConfig, inlineConfig: InlineConfig) => Awaitable<UserConfig | void | null>;
21796
+ /**
21797
+ * Called after tsdown has fully resolved the user config. Analogous to
21798
+ * Vite's [`configResolved`](https://vite.dev/guide/api-plugin.html#configresolved)
21799
+ * hook.
21800
+ *
21801
+ * This hook fires once per produced {@link ResolvedConfig} — i.e. once
21802
+ * per output format when `format` is an array. Typical usage is to stash
21803
+ * the resolved config for later use in Rolldown hooks. Mutations made to
21804
+ * `resolvedConfig` here are not supported.
21805
+ */
21806
+ tsdownConfigResolved?: (resolvedConfig: ResolvedConfig) => Awaitable<void>;
21807
+ }
21808
+ /**
21809
+ * A tsdown plugin slot — accepts tsdown plugins, any Rolldown plugin form,
21810
+ * `null`/`undefined`/`false`, promises, and nested arrays. Mirrors Rolldown's
21811
+ * {@link RolldownPluginOption} but with {@link TsdownPlugin} as the atom so
21812
+ * that tsdown-specific hooks are type-checked.
21813
+ */
21814
+ type TsdownPluginOption<A = any> = Awaitable<TsdownPlugin<A> | RolldownPlugin<A> | {
21815
+ name: string;
21816
+ } | undefined | null | void | false | TsdownPluginOption<A>[]>; //#endregion
21770
21817
  //#region src/features/report.d.ts
21771
21818
  interface ReportOptions {
21772
21819
  /**
@@ -22013,7 +22060,7 @@ interface UserConfig {
22013
22060
  */
22014
22061
  legacyCjs?: boolean;
22015
22062
  };
22016
- plugins?: InputOptions["plugins"];
22063
+ plugins?: TsdownPluginOption;
22017
22064
  /**
22018
22065
  * Use with caution; ensure you understand the implications.
22019
22066
  */
@@ -22284,6 +22331,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
22284
22331
  ignoreWatch: Array<string | RegExp>;
22285
22332
  deps: ResolvedDepsConfig; /** Resolved root directory of input files */
22286
22333
  root: string;
22334
+ configDeps: Set<string>;
22287
22335
  dts: false | DtsOptions;
22288
22336
  report: false | ReportOptions;
22289
22337
  tsconfig: false | string;
@@ -22295,7 +22343,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
22295
22343
  exe: false | ExeOptions;
22296
22344
  }>; //#endregion
22297
22345
  //#endregion
22298
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/config-BjpbFAQr.d.mts
22346
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/config-CuK0i1Bc.d.mts
22299
22347
  //#region src/config/options.d.ts
22300
22348
  /**
22301
22349
  * Resolve user config into resolved configs
@@ -22303,7 +22351,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
22303
22351
  * **Internal API, not for public use**
22304
22352
  * @private
22305
22353
  */
22306
- declare function resolveUserConfig(userConfig: UserConfig, inlineConfig: InlineConfig): Promise<ResolvedConfig[]>;
22354
+ declare function resolveUserConfig(userConfig: UserConfig, inlineConfig: InlineConfig, configDeps: Set<string>): Promise<ResolvedConfig[]>;
22307
22355
  declare function mergeConfig(defaults: UserConfig, ...overrides: UserConfig[]): UserConfig;
22308
22356
  declare function mergeConfig(defaults: InlineConfig, ...overrides: InlineConfig[]): InlineConfig; //#endregion
22309
22357
  //#region src/config.d.ts
@@ -22315,7 +22363,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
22315
22363
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
22316
22364
  declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
22317
22365
  //#endregion
22318
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/index.d.mts
22366
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/index.d.mts
22319
22367
  //#region src/build.d.ts
22320
22368
  /**
22321
22369
  * Build with tsdown.
@@ -22327,8 +22375,8 @@ declare function build$1(inlineConfig?: InlineConfig): Promise<TsdownBundle[]>;
22327
22375
  * **Internal API, not for public use**
22328
22376
  * @private
22329
22377
  */
22330
- declare function buildWithConfigs(configs: ResolvedConfig[], configFiles: string[], _restart: () => void): Promise<TsdownBundle[]>; //#endregion
22378
+ declare function buildWithConfigs(configs: ResolvedConfig[], configDeps: Set<string>, _restart: () => void): Promise<TsdownBundle[]>; //#endregion
22331
22379
  //#region src/features/debug.d.ts
22332
22380
  declare function enableDebug(debug?: boolean | Arrayable$1<string>): void; //#endregion
22333
22381
  //#endregion
22334
- export { AttwOptions, BuildContext, CIOption, ChunkAddon, ChunkAddonFunction, ChunkAddonObject, CopyEntry, CopyOptions, CopyOptionsFn, DepsConfig, DevtoolsOptions, DtsOptions, ExeOptions, ExportsOptions, Format, InlineConfig, type Logger$1 as Logger, NoExternalFn, NormalizedFormat, OutExtensionContext, OutExtensionFactory, OutExtensionObject, PackageJsonWithPath, PackageType, PublintOptions, ReportOptions, ResolvedConfig, ResolvedDepsConfig, Rolldown, RolldownChunk, RolldownContext, SeaConfig, Sourcemap, TreeshakingOptions, TsdownBundle, TsdownHooks, TsdownInputOption, Options as UnusedOptions, UserConfig, UserConfigExport, UserConfigFn, WithEnabled, Workspace, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };
22382
+ export { AttwOptions, BuildContext, CIOption, ChunkAddon, ChunkAddonFunction, ChunkAddonObject, CopyEntry, CopyOptions, CopyOptionsFn, DepsConfig, DevtoolsOptions, DtsOptions, ExeOptions, ExportsOptions, Format, InlineConfig, type Logger$1 as Logger, NoExternalFn, NormalizedFormat, OutExtensionContext, OutExtensionFactory, OutExtensionObject, PackageJsonWithPath, PackageType, PublintOptions, ReportOptions, ResolvedConfig, ResolvedDepsConfig, Rolldown, RolldownChunk, RolldownContext, SeaConfig, Sourcemap, TreeshakingOptions, TsdownBundle, TsdownHooks, TsdownInputOption, TsdownPlugin, TsdownPluginOption, Options as UnusedOptions, UserConfig, UserConfigExport, UserConfigFn, WithEnabled, Workspace, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };
@@ -1,8 +1,8 @@
1
- import { c as globalLogger } from "./main-Ccx2FDJq.js";
2
- import { t as enableDebug } from "./debug-CLlnG64L-CvIUyX2c.js";
3
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-y6nUUkVJ-BUtpLkpw.js";
1
+ import { c as globalLogger } from "./main-BsfiKQP8.js";
2
+ import { t as enableDebug } from "./debug-CLlnG64L-CuCVzZmG.js";
3
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-OX8uszs6-4hNTeOrB.js";
4
4
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
5
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/config.mjs
5
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/config.mjs
6
6
  function defineConfig(options) {
7
7
  return options;
8
8
  }
@@ -1,4 +1,4 @@
1
- import { r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
1
+ import { r as __toESM, t as __commonJSMin } from "./chunk-N93fKeF6.js";
2
2
  import { createRequire } from "node:module";
3
3
  import process$1, { cwd } from "node:process";
4
4
  import readline from "node:readline";
@@ -6,7 +6,7 @@ import { spawn } from "node:child_process";
6
6
  import { delimiter, dirname, normalize, resolve } from "node:path";
7
7
  import { pipeline } from "node:stream/promises";
8
8
  import { PassThrough } from "node:stream";
9
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/general-D3muxt2f.mjs
9
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/general-D3muxt2f.mjs
10
10
  const picomatch = createRequire(import.meta.url)("picomatch");
11
11
  function toArray(val, defaultValue) {
12
12
  if (Array.isArray(val)) return val;
@@ -170,7 +170,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
170
170
  module.exports = w, w.default = w;
171
171
  })))(), 1)).default;
172
172
  //#endregion
173
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
173
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
174
174
  const LogLevels = {
175
175
  silent: 0,
176
176
  error: 1,
@@ -294,8 +294,8 @@ function hue2rgb(p, q, t) {
294
294
  return p;
295
295
  }
296
296
  //#endregion
297
- //#region ../../node_modules/.pnpm/tsdown@0.21.8_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.8_@tsdown+exe@0.21.8_@type_bf863151738d83584e36df49913526fa/node_modules/tsdown/dist/package-yVk5dXcU.mjs
298
- var version = "0.21.8";
297
+ //#region ../../node_modules/.pnpm/tsdown@0.21.9_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.9_@tsdown+exe@0.21.9_@type_52058320c0a42ed3e52f8161aa9d656f/node_modules/tsdown/dist/package-JOXUdJGa.mjs
298
+ var version = "0.21.9";
299
299
  //#endregion
300
300
  //#region ../../node_modules/.pnpm/tinyexec@1.1.1/node_modules/tinyexec/dist/main.mjs
301
301
  var d = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
@@ -1,5 +1,5 @@
1
1
  //#region \0rolldown/runtime.js
2
- var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
2
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
3
3
  //#endregion
4
4
  Object.defineProperty(exports, "__commonJSMin", {
5
5
  enumerable: true,
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { _ as yellow, c as globalLogger, m as hex, r as version, t as U, u as blue } from "./main-Ccx2FDJq.js";
3
- import { t as enableDebug } from "./debug-CLlnG64L-CvIUyX2c.js";
2
+ import { _ as yellow, c as globalLogger, m as hex, r as version, t as U, u as blue } from "./main-BsfiKQP8.js";
3
+ import { t as enableDebug } from "./debug-CLlnG64L-CuCVzZmG.js";
4
4
  import module, { createRequire } from "node:module";
5
5
  import process$1 from "node:process";
6
6
  import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
@@ -630,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
630
630
  }).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
631
631
  globalLogger.level = flags.logLevel || "info";
632
632
  globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
633
- const { build } = await import("./build-y6nUUkVJ-B9JhNMeu.js").then((n) => n.r);
633
+ const { build } = await import("./build-OX8uszs6-4hNTeOrB.js").then((n) => n.r).then((n) => n.r);
634
634
  if (input.length > 0) flags.entry = input;
635
635
  await build(flags);
636
636
  });
@@ -662,7 +662,7 @@ async function runCLI() {
662
662
  process$1.exit(1);
663
663
  }
664
664
  }
665
- if (lt(process$1.version, "22.18.0")) console.warn(yellow`[tsdown] Node.js ${process$1.version} is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js 22.18.0 or later.`);
665
+ if (!process$1.versions.bun && lt(process$1.version, "22.18.0")) console.warn(yellow`[tsdown] Node.js ${process$1.version} is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js v22.18.0 or later.`);
666
666
  try {
667
667
  module.enableCompileCache?.();
668
668
  } catch {}
@@ -1,6 +1,6 @@
1
1
  import { t as createDebug } from "./node-B3Gdtau1.js";
2
2
  import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-DHPB7cQg.js";
3
- import { n as globalContext } from "./tsc-context-C2cC1Bhi.js";
3
+ import { n as globalContext } from "./tsc-context-B1O6kHlu.js";
4
4
  import { createRequire } from "node:module";
5
5
  import path from "node:path";
6
6
  import { pathToFileURL } from "node:url";
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region \0@oxc-project+runtime@0.124.0/helpers/typeof.js
2
+ //#region \0@oxc-project+runtime@0.126.0/helpers/typeof.js
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
5
5
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -9,7 +9,7 @@ function _typeof(o) {
9
9
  }, _typeof(o);
10
10
  }
11
11
  //#endregion
12
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.126.0/helpers/toPrimitive.js
13
13
  function toPrimitive(t, r) {
14
14
  if ("object" != _typeof(t) || !t) return t;
15
15
  var e = t[Symbol.toPrimitive];
@@ -21,13 +21,13 @@ function toPrimitive(t, r) {
21
21
  return ("string" === r ? String : Number)(t);
22
22
  }
23
23
  //#endregion
24
- //#region \0@oxc-project+runtime@0.124.0/helpers/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.126.0/helpers/toPropertyKey.js
25
25
  function toPropertyKey(t) {
26
26
  var i = toPrimitive(t, "string");
27
27
  return "symbol" == _typeof(i) ? i : i + "";
28
28
  }
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.124.0/helpers/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.126.0/helpers/defineProperty.js
31
31
  function _defineProperty(e, r, t) {
32
32
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
33
33
  value: t,