@voidzero-dev/vite-plus-core 0.1.21-alpha.4 → 0.1.21-alpha.6
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/dist/tsdown/{build-5FURNVr0-BYnPlyxS.js → build-5FURNVr0-D2dbyiC6.js} +7 -7
- package/dist/tsdown/client.d.ts +63 -0
- package/dist/tsdown/{debug-CLlnG64L-DgUic6dq.js → debug-CLlnG64L-BkAqwHVS.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-C8fBJ-Pz.js → detect-DN3DXXYt-8gmDjZqp.js} +1 -1
- package/dist/tsdown/index-types.d.ts +4 -4
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-D7FQqhAT.js → main-BNUO6D3N.js} +3 -3
- package/dist/tsdown/run.js +4 -4
- package/dist/vite/node/index.d.ts +2 -2
- package/package.json +6 -3
|
@@ -1,5 +1,5 @@
|
|
|
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 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-
|
|
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-BNUO6D3N.js";
|
|
3
3
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
4
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-D7-CzKqs.js";
|
|
5
5
|
import { n as ee } from "./dist-Cv2Z0Bi_.js";
|
|
@@ -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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
26
|
+
//#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/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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
69
|
+
//#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/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 {
|
|
@@ -3354,7 +3354,7 @@ function createConfigCoreLoader(options) {
|
|
|
3354
3354
|
};
|
|
3355
3355
|
}
|
|
3356
3356
|
//#endregion
|
|
3357
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
3357
|
+
//#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/options-DUthngzZ.mjs
|
|
3358
3358
|
const __cjs_require$1 = createRequire(import.meta.url);
|
|
3359
3359
|
const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
|
|
3360
3360
|
const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
|
|
@@ -4221,7 +4221,7 @@ function filterConfig(filter, configCwd, name) {
|
|
|
4221
4221
|
return toArray(filter).some((value) => name && name === value || cwd === value);
|
|
4222
4222
|
}
|
|
4223
4223
|
//#endregion
|
|
4224
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
4224
|
+
//#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/watch-B659_4oi.mjs
|
|
4225
4225
|
async function copy(options) {
|
|
4226
4226
|
if (!options.copy) return;
|
|
4227
4227
|
const resolved = await resolveCopyEntries(options);
|
|
@@ -4601,7 +4601,7 @@ var Hookable = class {
|
|
|
4601
4601
|
}
|
|
4602
4602
|
};
|
|
4603
4603
|
//#endregion
|
|
4604
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
4604
|
+
//#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/build-5FURNVr0.mjs
|
|
4605
4605
|
var build_5FURNVr0_exports = /* @__PURE__ */ __exportAll$1({
|
|
4606
4606
|
n: () => buildWithConfigs,
|
|
4607
4607
|
r: () => build_exports,
|
|
@@ -4915,7 +4915,7 @@ async function bundleDone(bundleByPkg, bundle) {
|
|
|
4915
4915
|
async function packTarball(packageJsonPath) {
|
|
4916
4916
|
const pkgDir = path.dirname(packageJsonPath);
|
|
4917
4917
|
const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
|
|
4918
|
-
const { detect } = await import("./detect-DN3DXXYt-
|
|
4918
|
+
const { detect } = await import("./detect-DN3DXXYt-8gmDjZqp.js");
|
|
4919
4919
|
try {
|
|
4920
4920
|
const detected = await detect({ cwd: pkgDir });
|
|
4921
4921
|
debug$1("Detected package manager: %o", detected);
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
interface ImportGlobOptions<Eager extends boolean> {
|
|
2
|
+
/**
|
|
3
|
+
* Import as static or dynamic
|
|
4
|
+
*
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
eager?: Eager
|
|
8
|
+
/**
|
|
9
|
+
* Import only the specific named export. Set to `default` to import the default export.
|
|
10
|
+
*/
|
|
11
|
+
import?: string
|
|
12
|
+
/**
|
|
13
|
+
* Custom queries
|
|
14
|
+
*/
|
|
15
|
+
query?: string | Record<string, string | number | boolean>
|
|
16
|
+
/**
|
|
17
|
+
* Search files also inside `node_modules/` and hidden directories (e.g. `.git/`). This might have impact on performance.
|
|
18
|
+
*
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
exhaustive?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* Base path to resolve relative paths.
|
|
24
|
+
*/
|
|
25
|
+
base?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type GeneralImportGlobOptions = ImportGlobOptions<boolean>
|
|
29
|
+
|
|
30
|
+
interface KnownAsTypeMap {
|
|
31
|
+
raw: string
|
|
32
|
+
url: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface ImportGlobFunction {
|
|
36
|
+
/**
|
|
37
|
+
* Import a list of files with a glob pattern.
|
|
38
|
+
*
|
|
39
|
+
* Overload 1: Module generic provided, infer the type from `eager: false`
|
|
40
|
+
*/
|
|
41
|
+
<M>(
|
|
42
|
+
glob: string | string[],
|
|
43
|
+
options?: ImportGlobOptions<false>,
|
|
44
|
+
): Record<string, () => Promise<M>>
|
|
45
|
+
/**
|
|
46
|
+
* Import a list of files with a glob pattern.
|
|
47
|
+
*
|
|
48
|
+
* Overload 2: Module generic provided, infer the type from `eager: true`
|
|
49
|
+
*/
|
|
50
|
+
<M>(
|
|
51
|
+
glob: string | string[],
|
|
52
|
+
options: ImportGlobOptions<true>,
|
|
53
|
+
): Record<string, M>
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface ImportMeta {
|
|
57
|
+
glob: ImportGlobFunction
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare module '*?inline' {
|
|
61
|
+
const src: string
|
|
62
|
+
export default src
|
|
63
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as toArray, w as resolveComma } from "./main-
|
|
1
|
+
import { D as toArray, w as resolveComma } from "./main-BNUO6D3N.js";
|
|
2
2
|
import { n as enable, r as namespaces, t as createDebug } from "./node-B3Gdtau1.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
3
|
+
//#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/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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
4
|
+
//#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/detect-DN3DXXYt.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -11,7 +11,7 @@ import { CssOptions } from "@tsdown/css";
|
|
|
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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
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
|
|
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>;
|
|
@@ -1348,7 +1348,7 @@ interface TsgoOptions {
|
|
|
1348
1348
|
path?: string;
|
|
1349
1349
|
}
|
|
1350
1350
|
//#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_@
|
|
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
|
|
1352
1352
|
//#region src/features/copy.d.ts
|
|
1353
1353
|
interface CopyEntry {
|
|
1354
1354
|
/**
|
|
@@ -2434,7 +2434,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
2434
2434
|
exe: false | ExeOptions;
|
|
2435
2435
|
}>; //#endregion
|
|
2436
2436
|
//#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_@
|
|
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
|
|
2438
2438
|
//#region src/config/options.d.ts
|
|
2439
2439
|
/**
|
|
2440
2440
|
* Resolve user config into resolved configs
|
|
@@ -2454,7 +2454,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
2454
2454
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
2455
2455
|
declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
|
|
2456
2456
|
//#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_@
|
|
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
|
|
2458
2458
|
//#region src/build.d.ts
|
|
2459
2459
|
/**
|
|
2460
2460
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
3
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-5FURNVr0-
|
|
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";
|
|
4
4
|
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_@
|
|
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
|
|
6
6
|
function defineConfig(options) {
|
|
7
7
|
return options;
|
|
8
8
|
}
|
|
@@ -6,7 +6,7 @@ import { spawn } from "node:child_process";
|
|
|
6
6
|
import { delimiter, dirname, 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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
9
|
+
//#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/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.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
173
|
+
//#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/logger-uV8l1UFa.mjs
|
|
174
174
|
const LogLevels = {
|
|
175
175
|
silent: 0,
|
|
176
176
|
error: 1,
|
|
@@ -294,7 +294,7 @@ function hue2rgb(p, q, t) {
|
|
|
294
294
|
return p;
|
|
295
295
|
}
|
|
296
296
|
//#endregion
|
|
297
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
297
|
+
//#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/package-Dzmmm_a2.mjs
|
|
298
298
|
var version = "0.22.0";
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region ../../node_modules/.pnpm/tinyexec@1.1.2/node_modules/tinyexec/dist/main.mjs
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as globalLogger, m as hex, n as V, r as version, u as blue } from "./main-
|
|
3
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
2
|
+
import { c as globalLogger, m as hex, n as V, r as version, u as blue } from "./main-BNUO6D3N.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-CLlnG64L-BkAqwHVS.js";
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -622,7 +622,7 @@ var CAC = class extends EventTarget {
|
|
|
622
622
|
*/
|
|
623
623
|
const cac = (name = "") => new CAC(name);
|
|
624
624
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@
|
|
625
|
+
//#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/run.mjs
|
|
626
626
|
const cli = cac("tsdown");
|
|
627
627
|
cli.help().version(version);
|
|
628
628
|
cli.command("[...files]", "Bundle files", {
|
|
@@ -631,7 +631,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
631
631
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, 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) => {
|
|
632
632
|
globalLogger.level = flags.logLevel || "info";
|
|
633
633
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
634
|
-
const { build } = await import("./build-5FURNVr0-
|
|
634
|
+
const { build } = await import("./build-5FURNVr0-D2dbyiC6.js").then((n) => n.r).then((n) => n.r);
|
|
635
635
|
if (input.length > 0) flags.entry = input;
|
|
636
636
|
await build(flags);
|
|
637
637
|
});
|
|
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
|
|
|
31
31
|
|
|
32
32
|
//#region \0rolldown/runtime.js
|
|
33
33
|
//#endregion
|
|
34
|
-
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.
|
|
34
|
+
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.21_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
35
35
|
//#region src/node/cli-commands.d.ts
|
|
36
36
|
interface StartOptions {
|
|
37
37
|
root?: string;
|
|
@@ -41,7 +41,7 @@ interface StartOptions {
|
|
|
41
41
|
open?: boolean;
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.
|
|
44
|
+
//#region ../../../node_modules/.pnpm/@vitejs+devtools@0.1.21_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/config.d.ts
|
|
45
45
|
//#region src/node/config.d.ts
|
|
46
46
|
interface DevToolsConfig extends Partial<StartOptions> {
|
|
47
47
|
enabled: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidzero-dev/vite-plus-core",
|
|
3
|
-
"version": "0.1.21-alpha.
|
|
3
|
+
"version": "0.1.21-alpha.6",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
"default": "./dist/tsdown/index.js",
|
|
47
47
|
"types": "./dist/tsdown/index-types.d.ts"
|
|
48
48
|
},
|
|
49
|
+
"./pack/client": {
|
|
50
|
+
"types": "./dist/tsdown/client.d.ts"
|
|
51
|
+
},
|
|
49
52
|
"./package.json": "./package.json",
|
|
50
53
|
"./rolldown": {
|
|
51
54
|
"default": "./dist/rolldown/index.mjs",
|
|
@@ -112,7 +115,7 @@
|
|
|
112
115
|
"@babel/types": "^7.28.5",
|
|
113
116
|
"@oxc-node/cli": "^0.1.0",
|
|
114
117
|
"@oxc-node/core": "^0.1.0",
|
|
115
|
-
"@vitejs/devtools": "^0.1.
|
|
118
|
+
"@vitejs/devtools": "^0.1.21",
|
|
116
119
|
"es-module-lexer": "^1.7.0",
|
|
117
120
|
"hookable": "^6.0.1",
|
|
118
121
|
"magic-string": "^0.30.21",
|
|
@@ -129,7 +132,7 @@
|
|
|
129
132
|
"tree-kill": "^1.2.2",
|
|
130
133
|
"tsdown": "^0.22.0",
|
|
131
134
|
"rolldown": "1.0.0",
|
|
132
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.
|
|
135
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.1.21-alpha.6"
|
|
133
136
|
},
|
|
134
137
|
"peerDependencies": {
|
|
135
138
|
"@arethetypeswrong/core": "^0.18.1",
|