@voidzero-dev/vite-plus-core 0.1.22 → 0.1.24

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 (94) hide show
  1. package/LICENSE +37 -26
  2. package/dist/pluginutils/filter/index.d.mts +194 -0
  3. package/dist/pluginutils/filter/index.mjs +2 -0
  4. package/dist/pluginutils/filter-B_mD-HGz.mjs +323 -0
  5. package/dist/pluginutils/index.d.mts +2 -0
  6. package/dist/pluginutils/index.mjs +2 -0
  7. package/dist/rolldown/cli.mjs +7 -7
  8. package/dist/rolldown/config.d.mts +1 -1
  9. package/dist/rolldown/config.mjs +3 -3
  10. package/dist/rolldown/experimental-index.d.mts +21 -4
  11. package/dist/rolldown/experimental-index.mjs +14 -9
  12. package/dist/rolldown/filter-index.d.mts +8 -9
  13. package/dist/rolldown/filter-index.mjs +2 -8
  14. package/dist/rolldown/get-log-filter.d.mts +3 -3
  15. package/dist/rolldown/index.d.mts +4 -4
  16. package/dist/rolldown/index.mjs +5 -5
  17. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  18. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  19. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  20. package/dist/rolldown/parse-ast-index.mjs +2 -2
  21. package/dist/rolldown/plugins-index.d.mts +3 -3
  22. package/dist/rolldown/plugins-index.mjs +2 -2
  23. package/dist/rolldown/shared/{binding-zH1vcmbM.d.mts → binding-BaCZTfMx.d.mts} +32 -3
  24. package/dist/rolldown/shared/{binding-ESkOU1xr.mjs → binding-CXquf8ay.mjs} +27 -26
  25. package/dist/rolldown/shared/{bindingify-input-options-wZdDRbfo.mjs → bindingify-input-options-D2ORek5s.mjs} +14 -14
  26. package/dist/rolldown/shared/{constructors-D6i2Tbyl.mjs → constructors-BiPdtLBB.mjs} +1 -1
  27. package/dist/rolldown/shared/{constructors-D0W3rNfA.d.mts → constructors-CbNaT434.d.mts} +2 -2
  28. package/dist/rolldown/shared/{define-config-5HJ1b9vG.d.mts → define-config-3BX_X2Am.d.mts} +70 -16
  29. package/dist/rolldown/shared/{error-BrnLyQ-g.mjs → error-BuvQYXuZ.mjs} +1 -1
  30. package/dist/rolldown/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
  31. package/dist/rolldown/shared/{load-config-BZFgt8GH.mjs → load-config-uvbpmLwO.mjs} +1 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-dAjLOSbp.mjs → normalize-string-or-regex-CNPF6PU9.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-DFts7Hyl.mjs → parse-1VOPJ1Lj.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-Bm9aMQjm.mjs → prompt-DV1XbtjC.mjs} +1 -1
  35. package/dist/rolldown/shared/{resolve-tsconfig-DCdBlPeK.mjs → resolve-tsconfig-CcfxWrib.mjs} +15 -4
  36. package/dist/rolldown/shared/{rolldown-Cs2eRf4R.mjs → rolldown-BZYLlfsv.mjs} +1 -1
  37. package/dist/rolldown/shared/{rolldown-build-CNhzgsn2.mjs → rolldown-build-CgMNHFY3.mjs} +54 -65
  38. package/dist/rolldown/shared/{transform-DgZ3paSD.d.mts → transform-7xCUVrpL.d.mts} +2 -2
  39. package/dist/rolldown/shared/{watch-De_8Tgeq.mjs → watch-BX_aH1Oh.mjs} +6 -6
  40. package/dist/rolldown/utils-index.d.mts +3 -3
  41. package/dist/rolldown/utils-index.mjs +5 -5
  42. package/dist/tsdown/{build-5FURNVr0-D2dbyiC6.js → build-BZshaq8i-C7uS6x65.js} +1173 -93
  43. package/dist/tsdown/{detect-DN3DXXYt-8gmDjZqp.js → detect-B97OSl92-CgjrIbmD.js} +1 -1
  44. package/dist/tsdown/{dist-DTzJRoOQ.js → dist-BHLOKn-2.js} +526 -224
  45. package/dist/tsdown/index-types.d.ts +30 -12
  46. package/dist/tsdown/index.js +3 -4
  47. package/dist/tsdown/main-nVIFtu2j.js +938 -0
  48. package/dist/tsdown/npm_cjs_chunk_range.cjs +11 -11
  49. package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
  50. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +2 -2
  51. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +1 -1
  52. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
  53. package/dist/tsdown/{resolver-DkvdaW3s-BeVUoOo-.js → resolver-DtsKFXi2-QB-x8j3e.js} +1 -1
  54. package/dist/tsdown/run.js +5 -6
  55. package/dist/tsdown/{tsc-Dr9kCkDm.js → tsc-WMktM0FW.js} +3 -3
  56. package/dist/tsdown/{tsc-context-CANQEB9U.js → tsc-context-DKufFI_s.js} +2 -2
  57. package/dist/vite/client/client.mjs +61 -27
  58. package/dist/vite/node/chunks/build.js +21 -21
  59. package/dist/vite/node/chunks/dist.js +1 -1
  60. package/dist/vite/node/chunks/dist2.js +136 -110
  61. package/dist/vite/node/chunks/lib.js +1 -1
  62. package/dist/vite/node/chunks/logger.js +36 -3
  63. package/dist/vite/node/chunks/node.js +490 -277
  64. package/dist/vite/node/chunks/postcss-import.js +11 -11
  65. package/dist/vite/node/cli.js +1 -2
  66. package/dist/vite/node/index.d.ts +29 -14
  67. package/dist/vite/node/module-runner.d.ts +1 -2
  68. package/dist/vite/node/module-runner.js +19 -18
  69. package/dist/vite/types/customEvent.d.ts +1 -1
  70. package/package.json +17 -23
  71. package/dist/pluginutils/filter/composable-filters.d.ts +0 -90
  72. package/dist/pluginutils/filter/composable-filters.js +0 -256
  73. package/dist/pluginutils/filter/filter-vite-plugins.d.ts +0 -28
  74. package/dist/pluginutils/filter/filter-vite-plugins.js +0 -75
  75. package/dist/pluginutils/filter/index.d.ts +0 -3
  76. package/dist/pluginutils/filter/index.js +0 -3
  77. package/dist/pluginutils/filter/simple-filters.d.ts +0 -71
  78. package/dist/pluginutils/filter/simple-filters.js +0 -70
  79. package/dist/pluginutils/index.d.ts +0 -1
  80. package/dist/pluginutils/index.js +0 -1
  81. package/dist/pluginutils/utils.d.ts +0 -2
  82. package/dist/pluginutils/utils.js +0 -17
  83. package/dist/tsdown/chunk-N93fKeF6.js +0 -34
  84. package/dist/tsdown/debug-CLlnG64L-BkAqwHVS.js +0 -16
  85. package/dist/tsdown/dist-Cv2Z0Bi_.js +0 -1012
  86. package/dist/tsdown/filename-DQnUJlio-D7-CzKqs.js +0 -29
  87. package/dist/tsdown/main-BNUO6D3N.js +0 -893
  88. package/dist/tsdown/node-B3Gdtau1.js +0 -268
  89. package/dist/vite/node/chunks/chunk.js +0 -35
  90. /package/dist/rolldown/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
  91. /package/dist/rolldown/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
  92. /package/dist/rolldown/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
  93. /package/dist/rolldown/shared/{misc-DJYbNKZX.mjs → misc-CoQm4NHO.mjs} +0 -0
  94. /package/dist/tsdown/{dist-JaOach5K.js → dist-CZtGyfn3.js} +0 -0
@@ -2,16 +2,13 @@ import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
2
2
  import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, Plugin, RolldownPlugin, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
3
3
  import { StartOptions } from "@vitejs/devtools/cli-commands";
4
4
  import { ExeExtensionOptions } from "@tsdown/exe";
5
- import * as _$_arethetypeswrong_core0 from "@arethetypeswrong/core";
6
5
  import { CheckPackageOptions } from "@arethetypeswrong/core";
7
- import * as _$publint from "publint";
8
6
  import { Options } from "publint";
9
- import * as _$publint_utils0 from "publint/utils";
10
7
  import { CssOptions } from "@tsdown/css";
11
8
  import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
12
9
  import { Options as UnusedOptions } from "unplugin-unused";
13
10
 
14
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_d181d85b1bafdbf27821083f8481d00c/node_modules/tsdown/dist/index-CTZ4qxd_.d.mts
11
+ //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/index-C0LaRpVv.d.mts
15
12
  //#region src/utils/types.d.ts
16
13
  type Overwrite<T, U> = Omit<T, keyof U> & U;
17
14
  type Awaitable<T> = T | Promise<T>;
@@ -1148,7 +1145,7 @@ type TsConfigJson = {
1148
1145
  references?: TsConfigJson.References[];
1149
1146
  };
1150
1147
  //#endregion
1151
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.0_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_b3cc7660f16ac76b66135f298381de19/node_modules/rolldown-plugin-dts/dist/index.d.mts
1148
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_8152cf0e534aee518f40abeb59f8494a/node_modules/rolldown-plugin-dts/dist/index.d.mts
1152
1149
  //#region src/options.d.ts
1153
1150
  interface GeneralOptions {
1154
1151
  /**
@@ -1221,6 +1218,8 @@ interface GeneralOptions {
1221
1218
  * If set to `true`, and you are only exporting a single item using `export default ...`,
1222
1219
  * the output will use `export = ...` instead of the standard ES module syntax.
1223
1220
  * This is useful for compatibility with CommonJS.
1221
+ * This only controls the output format and does not enable support for
1222
+ * CommonJS-style `.d.ts` input.
1224
1223
  */
1225
1224
  cjsDefault?: boolean;
1226
1225
  /**
@@ -1348,7 +1347,7 @@ interface TsgoOptions {
1348
1347
  path?: string;
1349
1348
  }
1350
1349
  //#endregion
1351
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_d181d85b1bafdbf27821083f8481d00c/node_modules/tsdown/dist/types-CQaSBA5U.d.mts
1350
+ //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/types-BezgYwPk.d.mts
1352
1351
  //#region src/features/copy.d.ts
1353
1352
  interface CopyEntry {
1354
1353
  /**
@@ -1423,12 +1422,20 @@ interface DepsConfig {
1423
1422
  * @default false
1424
1423
  */
1425
1424
  skipNodeModulesBundle?: boolean;
1425
+ /**
1426
+ * Override dependency bundling options for declaration file generation.
1427
+ */
1428
+ dts?: Pick<DepsConfig, "alwaysBundle" | "neverBundle">;
1426
1429
  }
1427
1430
  interface ResolvedDepsConfig {
1428
1431
  neverBundle?: ExternalOption;
1429
1432
  alwaysBundle?: NoExternalFn;
1430
1433
  onlyBundle?: Array<string | RegExp> | false;
1431
1434
  skipNodeModulesBundle: boolean;
1435
+ /**
1436
+ * Override dependency bundling options for declaration file generation.
1437
+ */
1438
+ dts: Pick<ResolvedDepsConfig, "alwaysBundle" | "neverBundle">;
1432
1439
  }
1433
1440
  //#endregion
1434
1441
  //#region src/features/devtools.d.ts
@@ -1557,7 +1564,7 @@ type ChunkAddonFunction = (ctx: {
1557
1564
  type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string; //#endregion
1558
1565
  //#region src/features/pkg/attw.d.ts
1559
1566
  interface AttwOptions extends CheckPackageOptions {
1560
- module?: typeof _$_arethetypeswrong_core0;
1567
+ module?: typeof import("@arethetypeswrong/core");
1561
1568
  /**
1562
1569
  * Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
1563
1570
  * of those required are ignored.
@@ -1782,7 +1789,7 @@ interface ExportsOptions {
1782
1789
  } //#endregion
1783
1790
  //#region src/features/pkg/publint.d.ts
1784
1791
  interface PublintOptions extends Omit<Options, "pack" | "pkgDir"> {
1785
- module?: [typeof _$publint, typeof _$publint_utils0];
1792
+ module?: [typeof import("publint"), typeof import("publint/utils")];
1786
1793
  } //#endregion
1787
1794
  //#region src/features/plugin.d.ts
1788
1795
  /**
@@ -1873,6 +1880,13 @@ interface DtsOptions extends Options$1 {
1873
1880
  *
1874
1881
  * Only applies when building both `esm` and `cjs` formats simultaneously.
1875
1882
  *
1883
+ * @remarks
1884
+ * The generated `.d.cts` stub uses a relative path to re-export from the
1885
+ * corresponding `.d.mts` file, so both formats must be emitted to the
1886
+ * **same** `outDir`. Splitting CJS and ESM outputs into separate
1887
+ * format-specific directories (e.g. `dist/cjs` and `dist/esm`) is not
1888
+ * supported with this option, because the re-export path would be invalid.
1889
+ *
1876
1890
  * @default false
1877
1891
  */
1878
1892
  cjsReexport?: boolean;
@@ -2218,6 +2232,10 @@ interface UserConfig {
2218
2232
  */
2219
2233
  outExtensions?: OutExtensionFactory;
2220
2234
  /**
2235
+ * @deprecated Use {@linkcode outExtensions} instead.
2236
+ */
2237
+ outExtension?: OutExtensionFactory;
2238
+ /**
2221
2239
  * If enabled, appends hash to chunk filenames.
2222
2240
  * @default true
2223
2241
  */
@@ -2400,7 +2418,7 @@ type UserConfigFn = (inlineConfig: InlineConfig, context: {
2400
2418
  rootConfig?: UserConfig;
2401
2419
  }) => Awaitable<Arrayable<UserConfig>>;
2402
2420
  type UserConfigExport = Awaitable<Arrayable<UserConfig> | UserConfigFn>;
2403
- type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "fromVite" | "publicDir" | "bundle" | "injectStyle" | "removeNodeProtocol" | "external" | "noExternal" | "inlineOnly" | "skipNodeModulesBundle" | "logLevel" | "failOnWarn" | "customLogger" | "envFile" | "envPrefix">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "onSuccess" | "outExtensions" | "hooks" | "copy" | "loader" | "name" | "banner" | "footer" | "checks" | "css">, {
2421
+ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "fromVite" | "publicDir" | "bundle" | "injectStyle" | "removeNodeProtocol" | "outExtension" | "external" | "noExternal" | "inlineOnly" | "skipNodeModulesBundle" | "logLevel" | "failOnWarn" | "customLogger" | "envFile" | "envPrefix">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "onSuccess" | "outExtensions" | "hooks" | "copy" | "loader" | "name" | "banner" | "footer" | "checks" | "css">, {
2404
2422
  /**
2405
2423
  * Resolved entry map (after glob expansion)
2406
2424
  */
@@ -2434,7 +2452,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
2434
2452
  exe: false | ExeOptions;
2435
2453
  }>; //#endregion
2436
2454
  //#endregion
2437
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_d181d85b1bafdbf27821083f8481d00c/node_modules/tsdown/dist/config-BWeUm0f3.d.mts
2455
+ //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/config-CeytBssC.d.mts
2438
2456
  //#region src/config/options.d.ts
2439
2457
  /**
2440
2458
  * Resolve user config into resolved configs
@@ -2454,7 +2472,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
2454
2472
  declare function defineConfig(options: UserConfigFn): UserConfigFn;
2455
2473
  declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
2456
2474
  //#endregion
2457
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_d181d85b1bafdbf27821083f8481d00c/node_modules/tsdown/dist/index.d.mts
2475
+ //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/index.d.mts
2458
2476
  //#region src/build.d.ts
2459
2477
  /**
2460
2478
  * Build with tsdown.
@@ -2470,4 +2488,4 @@ declare function buildWithConfigs(configs: ResolvedConfig[], configDeps: Set<str
2470
2488
  //#region src/features/debug.d.ts
2471
2489
  declare function enableDebug(debug?: boolean | Arrayable<string>): void; //#endregion
2472
2490
  //#endregion
2473
- export { AttwOptions, BuildContext, CIOption, ChunkAddon, ChunkAddonFunction, ChunkAddonObject, CopyEntry, CopyOptions, CopyOptionsFn, DepsConfig, DevtoolsOptions, DtsOptions, ExeOptions, ExportsOptions, Format, InlineConfig, type Logger, NoExternalFn, NormalizedFormat, OutExtensionContext, OutExtensionFactory, OutExtensionObject, PackageJsonWithPath, PackageType, PublintOptions, ReportOptions, ResolvedConfig, ResolvedDepsConfig, Rolldown, RolldownChunk, RolldownContext, SeaConfig, Sourcemap, TreeshakingOptions, TsdownBundle, TsdownHooks, TsdownInputOption, TsdownPlugin, TsdownPluginOption, UnusedOptions, UserConfig, UserConfigExport, UserConfigFn, WithEnabled, Workspace, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };
2491
+ export { type AttwOptions, type BuildContext, CIOption, type ChunkAddon, type ChunkAddonFunction, type ChunkAddonObject, type CopyEntry, type CopyOptions, type CopyOptionsFn, type DepsConfig, type DevtoolsOptions, DtsOptions, type ExeOptions, type ExportsOptions, Format, InlineConfig, type Logger, type NoExternalFn, NormalizedFormat, type OutExtensionContext, type OutExtensionFactory, type OutExtensionObject, type PackageJsonWithPath, type PackageType, type PublintOptions, type ReportOptions, ResolvedConfig, type ResolvedDepsConfig, Rolldown, type RolldownChunk, type RolldownContext, type SeaConfig, Sourcemap, type TreeshakingOptions, type TsdownBundle, type TsdownHooks, TsdownInputOption, type TsdownPlugin, type TsdownPluginOption, type UnusedOptions, UserConfig, UserConfigExport, UserConfigFn, WithEnabled, Workspace, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig };
@@ -1,8 +1,7 @@
1
- import { c as globalLogger } from "./main-BNUO6D3N.js";
2
- import { t as enableDebug } from "./debug-CLlnG64L-BkAqwHVS.js";
3
- import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-5FURNVr0-D2dbyiC6.js";
1
+ import { r as enableDebug, u as globalLogger } from "./main-nVIFtu2j.js";
2
+ import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-BZshaq8i-C7uS6x65.js";
4
3
  import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
5
- //#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_d181d85b1bafdbf27821083f8481d00c/node_modules/tsdown/dist/config.mjs
4
+ //#region ../../node_modules/.pnpm/tsdown@0.22.1_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.1_@tsdown+exe@0.22.1_@type_b2f732f99208225f009f13478ba95350/node_modules/tsdown/dist/config.mjs
6
5
  function defineConfig(options) {
7
6
  return options;
8
7
  }