@voidzero-dev/vite-plus-core 0.1.23 → 0.2.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.
- package/LICENSE +2 -2
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +10 -10
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-CXquf8ay.mjs → binding-CfwqjDbP.mjs} +31 -30
- package/dist/rolldown/shared/{binding-BaCZTfMx.d.mts → binding-DgGsNpT9.d.mts} +97 -1
- package/dist/rolldown/shared/{bindingify-input-options-D2ORek5s.mjs → bindingify-input-options--chmbDhw.mjs} +16 -8
- package/dist/rolldown/shared/{constructors-CbNaT434.d.mts → constructors-Bx1tSad6.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-BiPdtLBB.mjs → constructors-DnT9y_13.mjs} +1 -1
- package/dist/rolldown/shared/{define-config-3BX_X2Am.d.mts → define-config-ChOOV2QZ.d.mts} +29 -11
- package/dist/rolldown/shared/{error-BuvQYXuZ.mjs → error-C0TrL0_H.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-uvbpmLwO.mjs → load-config-BXgGQtnA.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-CNPF6PU9.mjs → normalize-string-or-regex-DGbe3BlX.mjs} +1 -1
- package/dist/rolldown/shared/{parse-1VOPJ1Lj.mjs → parse-26ORR8fZ.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-CcfxWrib.mjs → resolve-tsconfig-D3YLh9ff.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-BZYLlfsv.mjs → rolldown-DpXXI00f.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CgMNHFY3.mjs → rolldown-build-D8R4Zzfy.mjs} +48 -6
- package/dist/rolldown/shared/{transform-7xCUVrpL.d.mts → transform-C-XSNVrd.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BX_aH1Oh.mjs → watch-D5Zm0Vsz.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-5FURNVr0-CsM6vj3e.js → build-B_nvJe4A-hrVGPLD6.js} +150 -97
- package/dist/tsdown/{detect-DN3DXXYt-TsZBbdhI.js → detect-B97OSl92-B5bcx_Ya.js} +1 -1
- package/dist/tsdown/{dist-wWM45aJq.js → dist-Dvzn3mZN.js} +883 -1661
- package/dist/tsdown/index-types.d.ts +30 -14
- package/dist/tsdown/index.js +3 -3
- package/dist/tsdown/main-BMtwTklr.js +973 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +30 -26
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +22 -15
- package/dist/tsdown/npm_entry_picomatch.cjs +7 -7
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +5 -5
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +3 -3
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +3 -3
- package/dist/tsdown/npm_entry_tree-kill.cjs +1 -1
- package/dist/tsdown/{resolver-DkvdaW3s-Dz1U-gxd.js → resolver-DtsKFXi2-DQOmVgSY.js} +1 -1
- package/dist/tsdown/run.js +6 -6
- package/dist/tsdown/{tsc-context-DXovbMXp.js → tsc-context-DfwSQt2q.js} +2 -2
- package/dist/tsdown/{tsc-Dp9emiKb.js → tsc-q0JAW6kD.js} +3 -3
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/dist2.js +3 -3
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +220 -114
- package/dist/vite/node/index.d.ts +2 -2
- package/package.json +17 -17
- package/dist/tsdown/chunk-DJK8HYOj.js +0 -34
- package/dist/tsdown/main-Cq8Is40L.js +0 -1173
- /package/dist/tsdown/{npm_cjs_chunk_chunk.cjs → npm_cjs_chunk_rolldown-runtime.cjs} +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.
|
|
11
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/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.
|
|
1148
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.26.0_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_6f03fea6114f4c67cf5f12416b2625b7/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
1152
1149
|
//#region src/options.d.ts
|
|
1153
1150
|
interface GeneralOptions {
|
|
1154
1151
|
/**
|
|
@@ -1350,7 +1347,7 @@ interface TsgoOptions {
|
|
|
1350
1347
|
path?: string;
|
|
1351
1348
|
}
|
|
1352
1349
|
//#endregion
|
|
1353
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
1350
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/types-F1pJie3k.d.mts
|
|
1354
1351
|
//#region src/features/copy.d.ts
|
|
1355
1352
|
interface CopyEntry {
|
|
1356
1353
|
/**
|
|
@@ -1425,12 +1422,20 @@ interface DepsConfig {
|
|
|
1425
1422
|
* @default false
|
|
1426
1423
|
*/
|
|
1427
1424
|
skipNodeModulesBundle?: boolean;
|
|
1425
|
+
/**
|
|
1426
|
+
* Override dependency bundling options for declaration file generation.
|
|
1427
|
+
*/
|
|
1428
|
+
dts?: Pick<DepsConfig, "alwaysBundle" | "neverBundle">;
|
|
1428
1429
|
}
|
|
1429
1430
|
interface ResolvedDepsConfig {
|
|
1430
1431
|
neverBundle?: ExternalOption;
|
|
1431
1432
|
alwaysBundle?: NoExternalFn;
|
|
1432
1433
|
onlyBundle?: Array<string | RegExp> | false;
|
|
1433
1434
|
skipNodeModulesBundle: boolean;
|
|
1435
|
+
/**
|
|
1436
|
+
* Override dependency bundling options for declaration file generation.
|
|
1437
|
+
*/
|
|
1438
|
+
dts: Pick<ResolvedDepsConfig, "alwaysBundle" | "neverBundle">;
|
|
1434
1439
|
}
|
|
1435
1440
|
//#endregion
|
|
1436
1441
|
//#region src/features/devtools.d.ts
|
|
@@ -1559,7 +1564,7 @@ type ChunkAddonFunction = (ctx: {
|
|
|
1559
1564
|
type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string; //#endregion
|
|
1560
1565
|
//#region src/features/pkg/attw.d.ts
|
|
1561
1566
|
interface AttwOptions extends CheckPackageOptions {
|
|
1562
|
-
module?: typeof
|
|
1567
|
+
module?: typeof import("@arethetypeswrong/core");
|
|
1563
1568
|
/**
|
|
1564
1569
|
* Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
|
|
1565
1570
|
* of those required are ignored.
|
|
@@ -1784,7 +1789,7 @@ interface ExportsOptions {
|
|
|
1784
1789
|
} //#endregion
|
|
1785
1790
|
//#region src/features/pkg/publint.d.ts
|
|
1786
1791
|
interface PublintOptions extends Omit<Options, "pack" | "pkgDir"> {
|
|
1787
|
-
module?: [typeof
|
|
1792
|
+
module?: [typeof import("publint"), typeof import("publint/utils")];
|
|
1788
1793
|
} //#endregion
|
|
1789
1794
|
//#region src/features/plugin.d.ts
|
|
1790
1795
|
/**
|
|
@@ -1875,6 +1880,13 @@ interface DtsOptions extends Options$1 {
|
|
|
1875
1880
|
*
|
|
1876
1881
|
* Only applies when building both `esm` and `cjs` formats simultaneously.
|
|
1877
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
|
+
*
|
|
1878
1890
|
* @default false
|
|
1879
1891
|
*/
|
|
1880
1892
|
cjsReexport?: boolean;
|
|
@@ -2220,6 +2232,10 @@ interface UserConfig {
|
|
|
2220
2232
|
*/
|
|
2221
2233
|
outExtensions?: OutExtensionFactory;
|
|
2222
2234
|
/**
|
|
2235
|
+
* @deprecated Use {@linkcode outExtensions} instead.
|
|
2236
|
+
*/
|
|
2237
|
+
outExtension?: OutExtensionFactory;
|
|
2238
|
+
/**
|
|
2223
2239
|
* If enabled, appends hash to chunk filenames.
|
|
2224
2240
|
* @default true
|
|
2225
2241
|
*/
|
|
@@ -2332,8 +2348,8 @@ interface UserConfig {
|
|
|
2332
2348
|
/**
|
|
2333
2349
|
* Generate package exports for `package.json`.
|
|
2334
2350
|
*
|
|
2335
|
-
* This will set the `
|
|
2336
|
-
*
|
|
2351
|
+
* This will set the `exports` field in `package.json` to point to the
|
|
2352
|
+
* generated files.
|
|
2337
2353
|
*
|
|
2338
2354
|
* @default false
|
|
2339
2355
|
*/
|
|
@@ -2402,7 +2418,7 @@ type UserConfigFn = (inlineConfig: InlineConfig, context: {
|
|
|
2402
2418
|
rootConfig?: UserConfig;
|
|
2403
2419
|
}) => Awaitable<Arrayable<UserConfig>>;
|
|
2404
2420
|
type UserConfigExport = Awaitable<Arrayable<UserConfig> | UserConfigFn>;
|
|
2405
|
-
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">, {
|
|
2406
2422
|
/**
|
|
2407
2423
|
* Resolved entry map (after glob expansion)
|
|
2408
2424
|
*/
|
|
@@ -2436,7 +2452,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
2436
2452
|
exe: false | ExeOptions;
|
|
2437
2453
|
}>; //#endregion
|
|
2438
2454
|
//#endregion
|
|
2439
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
2455
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/config-BJZDmsYq.d.mts
|
|
2440
2456
|
//#region src/config/options.d.ts
|
|
2441
2457
|
/**
|
|
2442
2458
|
* Resolve user config into resolved configs
|
|
@@ -2456,7 +2472,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
2456
2472
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
2457
2473
|
declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
|
|
2458
2474
|
//#endregion
|
|
2459
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
2475
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/index.d.mts
|
|
2460
2476
|
//#region src/build.d.ts
|
|
2461
2477
|
/**
|
|
2462
2478
|
* Build with tsdown.
|
|
@@ -2472,4 +2488,4 @@ declare function buildWithConfigs(configs: ResolvedConfig[], configDeps: Set<str
|
|
|
2472
2488
|
//#region src/features/debug.d.ts
|
|
2473
2489
|
declare function enableDebug(debug?: boolean | Arrayable<string>): void; //#endregion
|
|
2474
2490
|
//#endregion
|
|
2475
|
-
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 };
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as enableDebug, u as globalLogger } from "./main-
|
|
2
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-
|
|
1
|
+
import { r as enableDebug, u as globalLogger } from "./main-BMtwTklr.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-hrVGPLD6.js";
|
|
3
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/config.mjs
|
|
5
5
|
function defineConfig(options) {
|
|
6
6
|
return options;
|
|
7
7
|
}
|