@voidzero-dev/vite-plus-core 0.1.14-alpha.0 → 0.1.14-alpha.2
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/rolldown/cli.mjs +6 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -8
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -8
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -5
- 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 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -3
- package/dist/rolldown/shared/{binding-Dsq9Azhm.d.mts → binding-CYVfiOV3.d.mts} +15 -0
- package/dist/rolldown/shared/{bindingify-input-options-nddSVL89.mjs → bindingify-input-options-DHK3MwUV.mjs} +26 -4
- package/dist/rolldown/shared/{constructors-DqC7XSXy.mjs → constructors-BfnFojy3.mjs} +1 -1
- package/dist/rolldown/shared/{constructors-DfpIbfMG.d.mts → constructors-DRe7RuMC.d.mts} +2 -2
- package/dist/rolldown/shared/{define-config-CV9D_Qea.d.mts → define-config-BkRKRADp.d.mts} +17 -3
- package/dist/rolldown/shared/{error-BO4SlZV_.mjs → error-D8cGyrC7.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CDqvxxnl.mjs → load-config-DT77Jzbv.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-D7wlw16t.mjs → normalize-string-or-regex-BFB1QNW3.mjs} +20 -12
- package/dist/rolldown/shared/{parse-WOgXxW4-.mjs → parse-CCDXnkPL.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-C3OzszY-.mjs → resolve-tsconfig-gxOviCVx.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DUOYLKyH.mjs → rolldown-DFpH3t7W.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-C7TjtSci.mjs → rolldown-build-ZUNnA-sr.mjs} +8 -6
- package/dist/rolldown/shared/{transform-B5D1aA1B.d.mts → transform-C_gBfjMR.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-BV1BB_LU.mjs → watch-C4x8DFD_.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -7
- package/dist/tsdown/{build-CoLhkNXE-DccPqXpK.js → build-CoLhkNXE-CmOD7RnO.js} +7 -7
- package/dist/tsdown/build-dhDyu66J-C6Nd9qmR.js +2 -0
- package/dist/tsdown/{debug-C4FmgzkJ-BxvFHEjv.js → debug-C4FmgzkJ-GjwR9kY5.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-CgZGWZG7.js → detect-DN3DXXYt-CCqla4Th.js} +1 -1
- package/dist/tsdown/index-types.d.ts +5 -5
- package/dist/tsdown/index.js +4 -6
- package/dist/tsdown/{main-CU_sednE.js → main-Dru8oclH.js} +2 -2
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +0 -1
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +0 -2
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +0 -1
- package/dist/tsdown/run.js +3 -4
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +0 -1
- package/dist/vite/node/chunks/config.js +0 -1
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +42 -30
- package/dist/vite/node/chunks/optimizer.js +0 -1
- package/dist/vite/node/chunks/preview.js +0 -1
- package/dist/vite/node/chunks/server.js +0 -1
- package/dist/vite/node/index.d.ts +9 -2
- package/package.json +9 -9
- package/dist/tsdown/build-dhDyu66J-C3xzaksU.js +0 -5
- /package/dist/rolldown/shared/{binding-BV_UWDF3.mjs → binding-ER32uZ22.mjs} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
|
|
2
|
-
import { C as resolveComma, E as toArray, S as promiseWithResolvers, T as slash, _ as debounce, a as createLogger, b as noop, c as globalLogger, d as bold, f as dim, g as yellow, h as underline, i as LogLevels, l as prettyFormat, m as red, n as z, o as generateColor, p as green, r as version, s as getNameLabel, t as R, u as blue, v as importWithError, w as resolveRegex, x as pkgExists, y as matchPattern } from "./main-
|
|
2
|
+
import { C as resolveComma, E as toArray, S as promiseWithResolvers, T as slash, _ as debounce, a as createLogger, b as noop, c as globalLogger, d as bold, f as dim, g as yellow, h as underline, i as LogLevels, l as prettyFormat, m as red, n as z, o as generateColor, p as green, r as version, s as getNameLabel, t as R, u as blue, v as importWithError, w as resolveRegex, x as pkgExists, y as matchPattern } from "./main-Dru8oclH.js";
|
|
3
3
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
4
4
|
import { i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-UU7z2A9Z.js";
|
|
5
5
|
import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
|
|
@@ -21,7 +21,7 @@ import fs$1, { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
|
21
21
|
import { Buffer } from "node:buffer";
|
|
22
22
|
import { brotliCompress, gzip } from "node:zlib";
|
|
23
23
|
import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
24
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
24
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
|
|
25
25
|
function fsExists(path) {
|
|
26
26
|
return access(path).then(() => true, () => false);
|
|
27
27
|
}
|
|
@@ -64,7 +64,7 @@ function stripExtname(filePath) {
|
|
|
64
64
|
return filePath.slice(0, -ext.length);
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
67
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/format-DPVBd8E4.mjs
|
|
68
68
|
const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
|
|
69
69
|
function getShimsInject(format, platform) {
|
|
70
70
|
if (format === "es" && platform === "node") return {
|
|
@@ -3076,7 +3076,7 @@ function createConfigCoreLoader(options) {
|
|
|
3076
3076
|
};
|
|
3077
3077
|
}
|
|
3078
3078
|
//#endregion
|
|
3079
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
3079
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/options-DoRzOC0d.mjs
|
|
3080
3080
|
const __cjs_require$1 = createRequire(import.meta.url);
|
|
3081
3081
|
const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
|
|
3082
3082
|
const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
|
|
@@ -3833,7 +3833,7 @@ function filterConfig(filter, configCwd, name) {
|
|
|
3833
3833
|
return toArray(filter).some((value) => name && name === value || cwd === value);
|
|
3834
3834
|
}
|
|
3835
3835
|
//#endregion
|
|
3836
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
3836
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/watch-CS1xCZMR.mjs
|
|
3837
3837
|
async function copy(options) {
|
|
3838
3838
|
if (!options.copy) return;
|
|
3839
3839
|
const resolved = await resolveCopyEntries(options);
|
|
@@ -4213,7 +4213,7 @@ var Hookable = class {
|
|
|
4213
4213
|
}
|
|
4214
4214
|
};
|
|
4215
4215
|
//#endregion
|
|
4216
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
4216
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/build-CoLhkNXE.mjs
|
|
4217
4217
|
const __cjs_require = createRequire(import.meta.url);
|
|
4218
4218
|
const satisfies = __cjs_require("./npm_entry_semver_functions_satisfies.cjs");
|
|
4219
4219
|
const coerce = __cjs_require("./npm_entry_semver_functions_coerce.cjs");
|
|
@@ -4506,7 +4506,7 @@ async function bundleDone(bundleByPkg, bundle) {
|
|
|
4506
4506
|
async function packTarball(packageJsonPath) {
|
|
4507
4507
|
const pkgDir = path.dirname(packageJsonPath);
|
|
4508
4508
|
const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
|
|
4509
|
-
const { detect } = await import("./detect-DN3DXXYt-
|
|
4509
|
+
const { detect } = await import("./detect-DN3DXXYt-CCqla4Th.js");
|
|
4510
4510
|
try {
|
|
4511
4511
|
const detected = await detect({ cwd: pkgDir });
|
|
4512
4512
|
if (detected?.name === "deno") throw new Error(`Cannot pack tarball for Deno projects at ${pkgDir}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as resolveComma, E as toArray } from "./main-
|
|
1
|
+
import { C as resolveComma, E as toArray } from "./main-Dru8oclH.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.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
3
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/debug-C4FmgzkJ.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.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/detect-DN3DXXYt.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -2,7 +2,7 @@ import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
|
2
2
|
import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, TreeshakingOptions } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
3
3
|
import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
4
4
|
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/logger-DtCm1ySP.d.mts
|
|
6
6
|
//#region src/utils/types.d.ts
|
|
7
7
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
8
8
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -9557,7 +9557,7 @@ interface TsgoOptions {
|
|
|
9557
9557
|
path?: string;
|
|
9558
9558
|
}
|
|
9559
9559
|
//#endregion
|
|
9560
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.
|
|
9560
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.8_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
9561
9561
|
//#region src/node/cli-commands.d.ts
|
|
9562
9562
|
interface StartOptions {
|
|
9563
9563
|
root?: string;
|
|
@@ -9708,7 +9708,7 @@ interface Options$1 {
|
|
|
9708
9708
|
depKinds?: Array<DepKind>;
|
|
9709
9709
|
}
|
|
9710
9710
|
//#endregion
|
|
9711
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
9711
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/types-D2Jnze_i.d.mts
|
|
9712
9712
|
//#region src/features/copy.d.ts
|
|
9713
9713
|
interface CopyEntry {
|
|
9714
9714
|
/**
|
|
@@ -10832,7 +10832,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
10832
10832
|
exe: false | ExeOptions;
|
|
10833
10833
|
}>; //#endregion
|
|
10834
10834
|
//#endregion
|
|
10835
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
10835
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/config-D9p_BCF3.d.mts
|
|
10836
10836
|
//#region src/config/options.d.ts
|
|
10837
10837
|
/**
|
|
10838
10838
|
* Resolve user config into resolved configs
|
|
@@ -10852,7 +10852,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
10852
10852
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
10853
10853
|
declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
|
|
10854
10854
|
//#endregion
|
|
10855
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
10855
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/index.d.mts
|
|
10856
10856
|
//#region src/build.d.ts
|
|
10857
10857
|
/**
|
|
10858
10858
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import "./
|
|
3
|
-
import { t as
|
|
4
|
-
import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-CoLhkNXE-DccPqXpK.js";
|
|
5
|
-
import "./filename-UU7z2A9Z.js";
|
|
1
|
+
import { c as globalLogger } from "./main-Dru8oclH.js";
|
|
2
|
+
import { t as enableDebug } from "./debug-C4FmgzkJ-GjwR9kY5.js";
|
|
3
|
+
import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-CoLhkNXE-CmOD7RnO.js";
|
|
6
4
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
7
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/config.mjs
|
|
8
6
|
function defineConfig(options) {
|
|
9
7
|
return options;
|
|
10
8
|
}
|
|
@@ -172,7 +172,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
|
|
|
172
172
|
module.exports = w, w.default = w;
|
|
173
173
|
})))(), 1)).default;
|
|
174
174
|
//#endregion
|
|
175
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
175
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/logger-BU0v7CAk.mjs
|
|
176
176
|
const LogLevels = {
|
|
177
177
|
silent: 0,
|
|
178
178
|
error: 1,
|
|
@@ -296,7 +296,7 @@ function hue2rgb(p, q, t) {
|
|
|
296
296
|
return p;
|
|
297
297
|
}
|
|
298
298
|
//#endregion
|
|
299
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@
|
|
299
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_f89d4c09e9f883d0adc3183e466a60b8/node_modules/tsdown/dist/package-BV2VRL7Z.mjs
|
|
300
300
|
var version = "0.21.4";
|
|
301
301
|
//#endregion
|
|
302
302
|
//#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
require("./npm_cjs_chunk_lt.cjs");
|
|
4
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
5
3
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/satisfies.js
|
|
6
4
|
var require_satisfies = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
require("./npm_cjs_chunk_lt.cjs");
|
|
4
3
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
5
4
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
6
5
|
var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-
|
|
3
|
-
import "./
|
|
4
|
-
import { t as enableDebug } from "./debug-C4FmgzkJ-BxvFHEjv.js";
|
|
2
|
+
import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-Dru8oclH.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-C4FmgzkJ-GjwR9kY5.js";
|
|
5
4
|
import module, { createRequire } from "node:module";
|
|
6
5
|
import process$1 from "node:process";
|
|
7
6
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -631,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
631
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) => {
|
|
632
631
|
globalLogger.level = flags.logLevel || "info";
|
|
633
632
|
globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
|
|
634
|
-
const { build } = await import("./build-dhDyu66J-
|
|
633
|
+
const { build } = await import("./build-dhDyu66J-C6Nd9qmR.js");
|
|
635
634
|
if (input.length > 0) flags.entry = input;
|
|
636
635
|
await build(flags);
|
|
637
636
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.121.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.
|
|
12
|
+
//#region \0@oxc-project+runtime@0.121.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.
|
|
24
|
+
//#region \0@oxc-project+runtime@0.121.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.
|
|
30
|
+
//#region \0@oxc-project+runtime@0.121.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,
|
|
@@ -72,7 +72,7 @@ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
72
72
|
}));
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region ../../vite/packages/vite/package.json
|
|
75
|
-
var version = "8.0.
|
|
75
|
+
var version = "8.0.2";
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
78
78
|
const ROLLUP_HOOKS = [
|
|
@@ -14677,7 +14677,7 @@ var require_shell_quote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
14677
14677
|
exports.parse = require_parse$1();
|
|
14678
14678
|
}));
|
|
14679
14679
|
//#endregion
|
|
14680
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14680
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/macos.js
|
|
14681
14681
|
var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14682
14682
|
module.exports = {
|
|
14683
14683
|
"/Applications/Atom.app/Contents/MacOS/Atom": "atom",
|
|
@@ -14687,6 +14687,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14687
14687
|
"/Applications/Sublime Text.app/Contents/MacOS/sublime_text": "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl",
|
|
14688
14688
|
"/Applications/Sublime Text 2.app/Contents/MacOS/Sublime Text 2": "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl",
|
|
14689
14689
|
"/Applications/Sublime Text Dev.app/Contents/MacOS/Sublime Text": "/Applications/Sublime Text Dev.app/Contents/SharedSupport/bin/subl",
|
|
14690
|
+
"/Applications/Visual Studio Code.app/Contents/MacOS/Code": "code",
|
|
14690
14691
|
"/Applications/Visual Studio Code.app/Contents/MacOS/Electron": "code",
|
|
14691
14692
|
"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Code - Insiders": "code-insiders",
|
|
14692
14693
|
"/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron": "code-insiders",
|
|
@@ -14711,7 +14712,7 @@ var require_macos = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14711
14712
|
};
|
|
14712
14713
|
}));
|
|
14713
14714
|
//#endregion
|
|
14714
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14715
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/linux.js
|
|
14715
14716
|
var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14716
14717
|
module.exports = {
|
|
14717
14718
|
atom: "atom",
|
|
@@ -14745,7 +14746,7 @@ var require_linux = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14745
14746
|
};
|
|
14746
14747
|
}));
|
|
14747
14748
|
//#endregion
|
|
14748
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14749
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/editor-info/windows.js
|
|
14749
14750
|
var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14750
14751
|
module.exports = [
|
|
14751
14752
|
"Brackets.exe",
|
|
@@ -14772,13 +14773,13 @@ var require_windows$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14772
14773
|
"goland64.exe",
|
|
14773
14774
|
"rider.exe",
|
|
14774
14775
|
"rider64.exe",
|
|
14775
|
-
"
|
|
14776
|
+
"Trae.exe",
|
|
14776
14777
|
"zed.exe",
|
|
14777
14778
|
"Antigravity.exe"
|
|
14778
14779
|
];
|
|
14779
14780
|
}));
|
|
14780
14781
|
//#endregion
|
|
14781
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14782
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/guess.js
|
|
14782
14783
|
var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14783
14784
|
const path$9 = __require$1("path");
|
|
14784
14785
|
const shellQuote = require_shell_quote();
|
|
@@ -14839,7 +14840,7 @@ var require_guess = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14839
14840
|
};
|
|
14840
14841
|
}));
|
|
14841
14842
|
//#endregion
|
|
14842
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14843
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/get-args.js
|
|
14843
14844
|
var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14844
14845
|
const path$8 = __require$1("path");
|
|
14845
14846
|
module.exports = function getArgumentsForPosition(editor, fileName, lineNumber, columnNumber = 1) {
|
|
@@ -14918,7 +14919,7 @@ var require_get_args = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14918
14919
|
};
|
|
14919
14920
|
}));
|
|
14920
14921
|
//#endregion
|
|
14921
|
-
//#region ../../node_modules/.pnpm/launch-editor@2.13.
|
|
14922
|
+
//#region ../../node_modules/.pnpm/launch-editor@2.13.2/node_modules/launch-editor/index.js
|
|
14922
14923
|
var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
14923
14924
|
/**
|
|
14924
14925
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
@@ -15017,7 +15018,7 @@ var require_launch_editor = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
15017
15018
|
module.exports = launchEditor;
|
|
15018
15019
|
}));
|
|
15019
15020
|
//#endregion
|
|
15020
|
-
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.13.
|
|
15021
|
+
//#region ../../node_modules/.pnpm/launch-editor-middleware@2.13.2/node_modules/launch-editor-middleware/index.js
|
|
15021
15022
|
var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
15022
15023
|
const path$6 = __require$1("path");
|
|
15023
15024
|
const launch = require_launch_editor();
|
|
@@ -17105,7 +17106,7 @@ function checkPublicFile(url, config) {
|
|
|
17105
17106
|
return tryStatSync(publicFile)?.isFile() ? publicFile : void 0;
|
|
17106
17107
|
}
|
|
17107
17108
|
//#endregion
|
|
17108
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17109
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js
|
|
17109
17110
|
var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17110
17111
|
const BINARY_TYPES = [
|
|
17111
17112
|
"nodebuffer",
|
|
@@ -17128,7 +17129,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17128
17129
|
};
|
|
17129
17130
|
}));
|
|
17130
17131
|
//#endregion
|
|
17131
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17132
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js
|
|
17132
17133
|
var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17133
17134
|
const { EMPTY_BUFFER } = require_constants();
|
|
17134
17135
|
const FastBuffer = Buffer[Symbol.species];
|
|
@@ -17228,7 +17229,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17228
17229
|
} catch (e) {}
|
|
17229
17230
|
}));
|
|
17230
17231
|
//#endregion
|
|
17231
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17232
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/limiter.js
|
|
17232
17233
|
var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17233
17234
|
const kDone = Symbol("kDone");
|
|
17234
17235
|
const kRun = Symbol("kRun");
|
|
@@ -17279,7 +17280,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17279
17280
|
module.exports = Limiter;
|
|
17280
17281
|
}));
|
|
17281
17282
|
//#endregion
|
|
17282
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17283
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js
|
|
17283
17284
|
var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17284
17285
|
const zlib$1 = __require$1("zlib");
|
|
17285
17286
|
const bufferUtil = require_buffer_util();
|
|
@@ -17312,6 +17313,9 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
17312
17313
|
* acknowledge disabling of client context takeover
|
|
17313
17314
|
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
|
17314
17315
|
* calls to zlib
|
|
17316
|
+
* @param {Boolean} [options.isServer=false] Create the instance in either
|
|
17317
|
+
* server or client mode
|
|
17318
|
+
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
|
17315
17319
|
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
|
17316
17320
|
* use of a custom server window size
|
|
17317
17321
|
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
|
@@ -17322,15 +17326,12 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
17322
17326
|
* deflate
|
|
17323
17327
|
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
|
17324
17328
|
* inflate
|
|
17325
|
-
* @param {Boolean} [isServer=false] Create the instance in either server or
|
|
17326
|
-
* client mode
|
|
17327
|
-
* @param {Number} [maxPayload=0] The maximum allowed message length
|
|
17328
17329
|
*/
|
|
17329
|
-
constructor(options
|
|
17330
|
-
this._maxPayload = maxPayload | 0;
|
|
17330
|
+
constructor(options) {
|
|
17331
17331
|
this._options = options || {};
|
|
17332
17332
|
this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
|
|
17333
|
-
this.
|
|
17333
|
+
this._maxPayload = this._options.maxPayload | 0;
|
|
17334
|
+
this._isServer = !!this._options.isServer;
|
|
17334
17335
|
this._deflate = null;
|
|
17335
17336
|
this._inflate = null;
|
|
17336
17337
|
this.params = null;
|
|
@@ -17612,7 +17613,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
|
|
|
17612
17613
|
}
|
|
17613
17614
|
}));
|
|
17614
17615
|
//#endregion
|
|
17615
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17616
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js
|
|
17616
17617
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17617
17618
|
const { isUtf8 } = __require$1("buffer");
|
|
17618
17619
|
const { hasBlob } = require_constants();
|
|
@@ -17808,7 +17809,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17808
17809
|
} catch (e) {}
|
|
17809
17810
|
}));
|
|
17810
17811
|
//#endregion
|
|
17811
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
17812
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/receiver.js
|
|
17812
17813
|
var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
17813
17814
|
const { Writable: Writable$1 } = __require$1("stream");
|
|
17814
17815
|
const PerMessageDeflate = require_permessage_deflate();
|
|
@@ -18255,7 +18256,7 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18255
18256
|
module.exports = Receiver;
|
|
18256
18257
|
}));
|
|
18257
18258
|
//#endregion
|
|
18258
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
18259
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/sender.js
|
|
18259
18260
|
var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18260
18261
|
const { Duplex: Duplex$3 } = __require$1("stream");
|
|
18261
18262
|
const { randomFillSync } = __require$1("crypto");
|
|
@@ -18746,7 +18747,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18746
18747
|
}
|
|
18747
18748
|
}));
|
|
18748
18749
|
//#endregion
|
|
18749
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
18750
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/event-target.js
|
|
18750
18751
|
var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18751
18752
|
const { kForOnEventAttribute, kListener } = require_constants();
|
|
18752
18753
|
const kCode = Symbol("kCode");
|
|
@@ -18958,7 +18959,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
18958
18959
|
}
|
|
18959
18960
|
}));
|
|
18960
18961
|
//#endregion
|
|
18961
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
18962
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/extension.js
|
|
18962
18963
|
var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
18963
18964
|
const { tokenChars } = require_validation();
|
|
18964
18965
|
/**
|
|
@@ -19101,7 +19102,7 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19101
19102
|
};
|
|
19102
19103
|
}));
|
|
19103
19104
|
//#endregion
|
|
19104
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
19105
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js
|
|
19105
19106
|
var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
19106
19107
|
const EventEmitter$2 = __require$1("events");
|
|
19107
19108
|
const https$3 = __require$1("https");
|
|
@@ -19642,7 +19643,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19642
19643
|
if (address instanceof URL$2) parsedUrl = address;
|
|
19643
19644
|
else try {
|
|
19644
19645
|
parsedUrl = new URL$2(address);
|
|
19645
|
-
} catch
|
|
19646
|
+
} catch {
|
|
19646
19647
|
throw new SyntaxError(`Invalid URL: ${address}`);
|
|
19647
19648
|
}
|
|
19648
19649
|
if (parsedUrl.protocol === "http:") parsedUrl.protocol = "ws:";
|
|
@@ -19681,7 +19682,11 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
19681
19682
|
opts.path = parsedUrl.pathname + parsedUrl.search;
|
|
19682
19683
|
opts.timeout = opts.handshakeTimeout;
|
|
19683
19684
|
if (opts.perMessageDeflate) {
|
|
19684
|
-
perMessageDeflate = new PerMessageDeflate(
|
|
19685
|
+
perMessageDeflate = new PerMessageDeflate({
|
|
19686
|
+
...opts.perMessageDeflate,
|
|
19687
|
+
isServer: false,
|
|
19688
|
+
maxPayload: opts.maxPayload
|
|
19689
|
+
});
|
|
19685
19690
|
opts.headers["Sec-WebSocket-Extensions"] = format({ [PerMessageDeflate.extensionName]: perMessageDeflate.offer() });
|
|
19686
19691
|
}
|
|
19687
19692
|
if (protocols.length) {
|
|
@@ -20072,7 +20077,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20072
20077
|
}
|
|
20073
20078
|
}));
|
|
20074
20079
|
//#endregion
|
|
20075
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
20080
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/stream.js
|
|
20076
20081
|
var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20077
20082
|
require_websocket();
|
|
20078
20083
|
const { Duplex: Duplex$1 } = __require$1("stream");
|
|
@@ -20188,7 +20193,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20188
20193
|
module.exports = createWebSocketStream;
|
|
20189
20194
|
}));
|
|
20190
20195
|
//#endregion
|
|
20191
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
20196
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/subprotocol.js
|
|
20192
20197
|
var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20193
20198
|
const { tokenChars } = require_validation();
|
|
20194
20199
|
/**
|
|
@@ -20227,7 +20232,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20227
20232
|
module.exports = { parse };
|
|
20228
20233
|
}));
|
|
20229
20234
|
//#endregion
|
|
20230
|
-
//#region ../../node_modules/.pnpm/ws@8.
|
|
20235
|
+
//#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket-server.js
|
|
20231
20236
|
var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20232
20237
|
const EventEmitter$1 = __require$1("events");
|
|
20233
20238
|
const http$4 = __require$1("http");
|
|
@@ -20441,7 +20446,11 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20441
20446
|
const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
|
|
20442
20447
|
const extensions = {};
|
|
20443
20448
|
if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
|
|
20444
|
-
const perMessageDeflate = new PerMessageDeflate(
|
|
20449
|
+
const perMessageDeflate = new PerMessageDeflate({
|
|
20450
|
+
...this.options.perMessageDeflate,
|
|
20451
|
+
isServer: true,
|
|
20452
|
+
maxPayload: this.options.maxPayload
|
|
20453
|
+
});
|
|
20445
20454
|
try {
|
|
20446
20455
|
const offers = extension.parse(secWebSocketExtensions);
|
|
20447
20456
|
if (offers[PerMessageDeflate.extensionName]) {
|
|
@@ -20601,8 +20610,11 @@ var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
20601
20610
|
}
|
|
20602
20611
|
}));
|
|
20603
20612
|
require_stream();
|
|
20613
|
+
require_extension();
|
|
20614
|
+
require_permessage_deflate();
|
|
20604
20615
|
require_receiver();
|
|
20605
20616
|
require_sender();
|
|
20617
|
+
require_subprotocol();
|
|
20606
20618
|
require_websocket();
|
|
20607
20619
|
var import_websocket_server = /* @__PURE__ */ __toESM(require_websocket_server(), 1);
|
|
20608
20620
|
//#endregion
|
|
@@ -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.8_@pnpm+logger@1001.0.1_typescript@5.9.3_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.8_@pnpm+logger@1001.0.1_typescript@5.9.3_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;
|
|
@@ -55,6 +55,13 @@ interface DevToolsConfig extends Partial<StartOptions> {
|
|
|
55
55
|
* @default true
|
|
56
56
|
*/
|
|
57
57
|
clientAuth?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Pre-configured auth tokens that are automatically trusted.
|
|
60
|
+
*
|
|
61
|
+
* Clients connecting with an auth token matching one of these
|
|
62
|
+
* will be auto-approved without a terminal prompt.
|
|
63
|
+
*/
|
|
64
|
+
clientAuthTokens?: string[];
|
|
58
65
|
}
|
|
59
66
|
interface ResolvedDevToolsConfig {
|
|
60
67
|
config: Omit<DevToolsConfig, 'enabled'> & {
|