@voidzero-dev/vite-plus-core 0.2.7 → 0.2.8
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 +35 -0
- package/dist/rolldown/cli.mjs +9 -10
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-default-runtime.mjs +116 -0
- package/dist/rolldown/experimental-index.d.mts +10 -4
- package/dist/rolldown/experimental-index.mjs +32 -16
- package/dist/rolldown/experimental-runtime-base.mjs +95 -0
- package/dist/rolldown/experimental-runtime.d.ts +177 -0
- package/dist/rolldown/experimental-runtime.mjs +257 -0
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/filter-index.mjs +1 -3
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +3 -3
- 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 +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-Dbbi0RbO.d.mts → binding-CVtkJvyl.d.mts} +11 -0
- package/dist/rolldown/shared/{binding-Dby9rwGk.mjs → binding-DwUQWZOo.mjs} +178 -104
- package/dist/rolldown/shared/{bindingify-input-options-DVQ4K-zY.mjs → bindingify-input-options-B03y7DfJ.mjs} +448 -268
- package/dist/rolldown/shared/{constructors-CSWbNgBZ.d.mts → constructors-ALilxAii.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-CuGa75s-.mjs → constructors-COwFYQna.mjs} +10 -6
- package/dist/rolldown/shared/{rolldown-build-BGXNOfvH.mjs → create-bundler-option-B-tSTZRt.mjs} +72 -179
- package/dist/rolldown/shared/{define-config-B-IDOhDz.d.mts → define-config-DSMNXceb.d.mts} +85 -22
- package/dist/rolldown/shared/{error-DFGNOCle.mjs → error-nLggAzpQ.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-R0z2olkB.mjs → load-config-O4G7NVNA.mjs} +2 -2
- package/dist/rolldown/shared/{logs-ZGEh6uhb.mjs → logs-DmYCAKcW.mjs} +8 -1
- package/dist/rolldown/shared/{misc-CoQm4NHO.mjs → misc-DOSKtd97.mjs} +9 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-SiXbePVH.mjs → normalize-string-or-regex-Cj-DgIV1.mjs} +2 -2
- package/dist/rolldown/shared/{parse-D5dkElpf.mjs → parse-CQfUbVuN.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-pZFoa1TT.mjs → prompt-uaCPq0_A.mjs} +2 -6
- package/dist/rolldown/shared/{resolve-tsconfig-2TXRF_zr.mjs → resolve-tsconfig-CE3HNSOK.mjs} +2 -2
- package/dist/rolldown/shared/rolldown-qV_fUwyM.mjs +178 -0
- package/dist/rolldown/shared/{transform-Cs2bUDRH.d.mts → transform-WmU_cI8e.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-DVucf-VG.mjs → watch-BNIsji74.mjs} +16 -13
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-D_enfyvD-DX5mX46j.js → build-D_enfyvD-X5SFXZZc.js} +10 -11
- package/dist/tsdown/{debug-CKcBYQLP-GQrJ--dM.js → debug-CKcBYQLP-avlAPNcV.js} +4 -6
- package/dist/tsdown/{detect-DGhJGEqb-Cz6qOZuP.js → detect-DGhJGEqb-CGd2brAW.js} +1 -1
- package/dist/tsdown/{dist-CWolxbYK.js → dist-BZO8q3c0.js} +43 -10
- package/dist/tsdown/{dist-DCMiHFrJ.js → dist-CMKwGGNp.js} +1 -3
- package/dist/tsdown/index-types.d.ts +6 -6
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-DyaNxVWW.js +3 -0
- package/dist/tsdown/{main-DI8qthUB.js → main-Jz_9T-KA.js} +2 -2
- package/dist/tsdown/npm_entry_picomatch.cjs +1 -1
- package/dist/tsdown/npm_entry_tree-kill.cjs +11 -13
- package/dist/tsdown/{resolver-cwLsPb2o-DvUqSYux.js → resolver-cwLsPb2o-BqQjnCbF.js} +3 -3
- package/dist/tsdown/run.js +4 -4
- package/dist/tsdown/{src-CPDzmpAq.js → src-D5keKqGd.js} +5 -5
- package/dist/tsdown/{target-Bab3CUeB-Di6tCARH.js → target-Bab3CUeB-CERZYTwS.js} +4 -4
- package/dist/tsdown/{tsc-BQoNcjeB.js → tsc-DmzrnJwy.js} +4 -5
- package/dist/tsdown/tsdown-css.js +7 -9
- package/dist/tsdown/tsdown-exe.js +3 -3
- package/dist/vite/client/bundledDevClient.mjs +1465 -0
- package/dist/vite/client/client.mjs +51 -82
- package/dist/vite/node/chunks/build.js +47 -43
- package/dist/vite/node/chunks/dist.js +26 -85
- package/dist/vite/node/chunks/dist2.js +5 -10
- package/dist/vite/node/chunks/node.js +2728 -2311
- package/dist/vite/node/chunks/postcss-import.js +10 -10
- package/dist/vite/node/index.d.ts +68 -14
- package/dist/vite/node/module-runner.js +21 -11
- package/dist/vite/types/customEvent.d.ts +3 -1
- package/dist/vite/types/hmrPayload.d.ts +20 -6
- package/package.json +28 -14
- package/dist/rolldown/shared/rolldown-BnV7isAX.mjs +0 -40
- package/dist/tsdown/internal-DAh_SWnB.js +0 -3
- package/dist/tsdown/load-tsc-BKULZsrs-Bha6Vsu1.js +0 -18
- package/dist/tsdown/tsc-context-BhMGQ9Qr.js +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as pkgExists, T as slash, _ as createConcurrencyExecutor, b as matchPattern, c as blue, d as green, g as yellow, h as underline, l as bold, n as z, r as createDebug, t as R, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-
|
|
2
|
-
import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CKcBYQLP-
|
|
3
|
-
import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-Bab3CUeB-
|
|
4
|
-
import { n as ee } from "./dist-
|
|
1
|
+
import { A as __toESM, C as resolveComma, D as __commonJSMin, E as toArray, O as __exportAll$1, S as pkgExists, T as slash, _ as createConcurrencyExecutor, b as matchPattern, c as blue, d as green, g as yellow, h as underline, l as bold, n as z, r as createDebug, t as R, u as dim, v as debounce, w as resolveRegex, x as noop, y as importWithError } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { a as createSuppressWarnings, c as globalLogger, i as createLogger, l as prettyFormat, n as version, o as generateColor, r as LogLevels, s as getNameLabel } from "./debug-CKcBYQLP-avlAPNcV.js";
|
|
3
|
+
import { A as fsStat, D as fsCopy, E as formatBytes, M as stripExtname, O as fsExists, S as filename_js_to_dts, a as resolveTarget, d as satisfies, g as RE_JS, j as lowestCommonAncestor, k as fsRemove, m as RE_DTS, o as validateSea, p as RE_CSS, r as buildExe, s as coerce, u as parseRange, v as RE_NODE_MODULES$1 } from "./target-Bab3CUeB-CERZYTwS.js";
|
|
4
|
+
import { n as ee } from "./dist-CMKwGGNp.js";
|
|
5
5
|
import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import readline from "node:readline";
|
|
@@ -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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
26
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/deps-B_uZzM4C.mjs
|
|
27
27
|
const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
|
|
28
28
|
const shimsInject = {
|
|
29
29
|
__dirname: [shimFile, "__dirname"],
|
|
@@ -897,7 +897,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
897
897
|
};
|
|
898
898
|
module.exports = {
|
|
899
899
|
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
900
|
-
MAX_LENGTH:
|
|
900
|
+
MAX_LENGTH: 65536,
|
|
901
901
|
POSIX_REGEX_SOURCE: {
|
|
902
902
|
__proto__: null,
|
|
903
903
|
alnum: "a-zA-Z0-9",
|
|
@@ -4183,7 +4183,7 @@ function filterConfig(filter, configCwd, name) {
|
|
|
4183
4183
|
return toArray(filter).some((value) => name && name === value || cwd === value);
|
|
4184
4184
|
}
|
|
4185
4185
|
//#endregion
|
|
4186
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
4186
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/watch-DOMHXvCH.mjs
|
|
4187
4187
|
async function copy(options) {
|
|
4188
4188
|
if (!options.copy) return;
|
|
4189
4189
|
const resolved = await resolveCopyEntries(options);
|
|
@@ -4563,7 +4563,7 @@ var Hookable = class {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
};
|
|
4565
4565
|
//#endregion
|
|
4566
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
4566
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/build-D_enfyvD.mjs
|
|
4567
4567
|
var build_D_enfyvD_exports = /* @__PURE__ */ __exportAll$1({
|
|
4568
4568
|
n: () => buildWithConfigs,
|
|
4569
4569
|
r: () => build_exports,
|
|
@@ -4878,7 +4878,7 @@ async function bundleDone(bundleByPkg, bundle) {
|
|
|
4878
4878
|
async function packTarball(packageJsonPath) {
|
|
4879
4879
|
const pkgDir = path.dirname(packageJsonPath);
|
|
4880
4880
|
const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
|
|
4881
|
-
const { detect } = await import("./detect-DGhJGEqb-
|
|
4881
|
+
const { detect } = await import("./detect-DGhJGEqb-CGd2brAW.js");
|
|
4882
4882
|
try {
|
|
4883
4883
|
const detected = await detect({ cwd: pkgDir });
|
|
4884
4884
|
debug$1("Detected package manager: %o", detected);
|
|
@@ -5023,7 +5023,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
|
|
|
5023
5023
|
if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
|
|
5024
5024
|
if (config.pkg || config.deps.skipNodeModulesBundle || config.deps.neverBundle === true || config.deps.dts.neverBundle === true) plugins.push(DepsPlugin(config, bundle));
|
|
5025
5025
|
if (dts) {
|
|
5026
|
-
const { dts: dtsPlugin } = await import("./dist-
|
|
5026
|
+
const { dts: dtsPlugin } = await import("./dist-BZO8q3c0.js");
|
|
5027
5027
|
const { cjsReexport: _, ...dtsPluginOptions } = dts;
|
|
5028
5028
|
const options = {
|
|
5029
5029
|
tsconfig,
|
|
@@ -5378,7 +5378,6 @@ async function buildSingle(config, configDeps, isDualFormat, clean, restart, don
|
|
|
5378
5378
|
await event.result.close();
|
|
5379
5379
|
logger.error(event.error);
|
|
5380
5380
|
hasError = true;
|
|
5381
|
-
break;
|
|
5382
5381
|
}
|
|
5383
5382
|
});
|
|
5384
5383
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-
|
|
1
|
+
import { C as resolveComma, E as toArray, a as namespaces, c as blue, d as green, g as yellow, i as enable, m as rgb, o as bgRed, r as createDebug, s as bgYellow, x as noop, l as bold, p as red } from "./main-Jz_9T-KA.js";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import readline from "node:readline";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
|
|
5
5
|
const LogLevels = {
|
|
6
6
|
silent: 0,
|
|
7
7
|
error: 1,
|
|
@@ -94,9 +94,7 @@ function prettyFormat(format) {
|
|
|
94
94
|
case "es":
|
|
95
95
|
formatText = "ESM";
|
|
96
96
|
break;
|
|
97
|
-
default:
|
|
98
|
-
formatText = format.toUpperCase();
|
|
99
|
-
break;
|
|
97
|
+
default: formatText = format.toUpperCase();
|
|
100
98
|
}
|
|
101
99
|
return formatColor(`[${formatText}]`);
|
|
102
100
|
}
|
|
@@ -142,7 +140,7 @@ function hue2rgb(p, q, t) {
|
|
|
142
140
|
return p;
|
|
143
141
|
}
|
|
144
142
|
//#endregion
|
|
145
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
143
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
|
|
146
144
|
var version = "0.22.14";
|
|
147
145
|
const debugLog = createDebug("tsdown:debug");
|
|
148
146
|
function enableDebug(debug) {
|
|
@@ -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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { r as createDebug } from "./main-
|
|
2
|
-
import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-
|
|
3
|
-
import { n as ee, t as at } from "./dist-
|
|
4
|
-
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-BhMGQ9Qr.js";
|
|
5
|
-
import { t as requireTS } from "./load-tsc-BKULZsrs-Bha6Vsu1.js";
|
|
1
|
+
import { r as createDebug } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { C as filename_to_dts, S as filename_js_to_dts, T as resolveTemplateFn, _ as RE_JSON, b as RE_TS, g as RE_JS, h as RE_DTS_MAP, m as RE_DTS, p as RE_CSS, v as RE_NODE_MODULES, w as replaceTemplateName, x as filename_dts_to, y as RE_ROLLDOWN_RUNTIME } from "./target-Bab3CUeB-CERZYTwS.js";
|
|
3
|
+
import { n as ee, t as at } from "./dist-CMKwGGNp.js";
|
|
6
4
|
import { createRequire } from "node:module";
|
|
7
5
|
import process from "node:process";
|
|
8
6
|
import { styleText } from "node:util";
|
|
@@ -15,6 +13,41 @@ import { tmpdir } from "node:os";
|
|
|
15
13
|
import { ResolverFactory, isolatedDeclarationSync } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
16
14
|
import { print } from "yuku-codegen";
|
|
17
15
|
import { parse as parse$1 } from "yuku-parser";
|
|
16
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
17
|
+
const debug$7 = createDebug("rolldown-plugin-dts:tsc-context");
|
|
18
|
+
function createContext() {
|
|
19
|
+
return {
|
|
20
|
+
programs: [],
|
|
21
|
+
files: /* @__PURE__ */ new Map(),
|
|
22
|
+
projects: /* @__PURE__ */ new Map()
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function invalidateContextFile(context, file) {
|
|
26
|
+
file = path.resolve(file).replaceAll("\\", "/");
|
|
27
|
+
debug$7(`invalidating context file: ${file}`);
|
|
28
|
+
context.files.delete(file);
|
|
29
|
+
context.programs = context.programs.filter((program) => {
|
|
30
|
+
return !program.getSourceFiles().some((sourceFile) => sourceFile.fileName === file);
|
|
31
|
+
});
|
|
32
|
+
context.projects.clear();
|
|
33
|
+
}
|
|
34
|
+
const globalContext = createContext();
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/load-tsc-BKULZsrs.mjs
|
|
37
|
+
const require$2 = createRequire(import.meta.url);
|
|
38
|
+
const debug$6 = createDebug("rolldown-plugin-dts:load-tsc");
|
|
39
|
+
let _ts;
|
|
40
|
+
function requireTS(message = "") {
|
|
41
|
+
if (_ts) return _ts;
|
|
42
|
+
try {
|
|
43
|
+
_ts = require$2("typescript");
|
|
44
|
+
if (debug$6.enabled) debug$6(`loaded TypeScript version ${_ts.version} from ${require$2.resolve("typescript")}`);
|
|
45
|
+
return _ts;
|
|
46
|
+
} catch (cause) {
|
|
47
|
+
throw new Error(`TypeScript is not installed. You should install \`typescript\` package. ${message}`, { cause });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
18
51
|
//#region ../../node_modules/.pnpm/yuku-ast@0.7.0/node_modules/yuku-ast/dist/index.js
|
|
19
52
|
const ALIAS_GROUPS = {
|
|
20
53
|
Expression: [
|
|
@@ -1092,7 +1125,7 @@ function nameOf(node) {
|
|
|
1092
1125
|
return null;
|
|
1093
1126
|
}
|
|
1094
1127
|
//#endregion
|
|
1095
|
-
//#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.
|
|
1128
|
+
//#region ../../node_modules/.pnpm/dts-resolver@3.0.0_oxc-resolver@11.24.2/node_modules/dts-resolver/dist/index.mjs
|
|
1096
1129
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
1097
1130
|
function createResolver({ tsconfig, cwd = process.cwd(), resolveNodeModules = false, ResolverFactory } = {}) {
|
|
1098
1131
|
ResolverFactory ||= __require("oxc-resolver").ResolverFactory;
|
|
@@ -1204,7 +1237,7 @@ function ensureValue(value) {
|
|
|
1204
1237
|
return value && ALLOW_EXTENSIONS.has(extname(value)) ? value.replaceAll("\\", "/") : null;
|
|
1205
1238
|
}
|
|
1206
1239
|
//#endregion
|
|
1207
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
1240
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/index.mjs
|
|
1208
1241
|
function createDtsInputPlugin({ sideEffects }) {
|
|
1209
1242
|
return {
|
|
1210
1243
|
name: "rolldown-plugin-dts:dts-input",
|
|
@@ -1332,7 +1365,7 @@ function createGeneratePlugin({ generator, entry, tsconfig, tsconfigRaw, build,
|
|
|
1332
1365
|
if (generator === "tsgo") tsgoContext = await runTsgo(logger, rootDir, tsconfig, sourcemap, tsgo.path);
|
|
1333
1366
|
else if (generator === "tsc") if (parallel) tscWorker = createTscWorker();
|
|
1334
1367
|
else {
|
|
1335
|
-
tscModule = await import("./tsc-
|
|
1368
|
+
tscModule = await import("./tsc-DmzrnJwy.js");
|
|
1336
1369
|
if (newContext) tscContext = createContext();
|
|
1337
1370
|
}
|
|
1338
1371
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
|
@@ -2586,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
|
|
|
2586
2619
|
async function resolveDtsPath(id, importer, rolldownResolution) {
|
|
2587
2620
|
let dtsPath;
|
|
2588
2621
|
if (resolver === "tsc") {
|
|
2589
|
-
const { tscResolve } = await import("./resolver-cwLsPb2o-
|
|
2622
|
+
const { tscResolve } = await import("./resolver-cwLsPb2o-BqQjnCbF.js");
|
|
2590
2623
|
dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
|
|
2591
2624
|
} else dtsPath = baseDtsResolver(id, importer);
|
|
2592
2625
|
debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
|
|
@@ -2613,4 +2646,4 @@ function dts(options = {}) {
|
|
|
2613
2646
|
return plugins;
|
|
2614
2647
|
}
|
|
2615
2648
|
//#endregion
|
|
2616
|
-
export { dts };
|
|
2649
|
+
export { dts, globalContext as n, requireTS as t };
|
|
@@ -105,7 +105,7 @@ interface ExeExtensionOptions {
|
|
|
105
105
|
nodeDistIndexUrl?: string;
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.
|
|
108
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.25__postcss@8.5.25_sas_6a16dd13a926d2b2137531bbae459a0e/node_modules/@tsdown/css/dist/index.d.mts
|
|
109
109
|
//#region src/options.d.ts
|
|
110
110
|
type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
|
|
111
111
|
interface CSSModulesOptions {
|
|
@@ -260,7 +260,7 @@ interface StylusPreprocessorOptions {
|
|
|
260
260
|
[key: string]: any;
|
|
261
261
|
}
|
|
262
262
|
//#endregion
|
|
263
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
263
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/volar-Cxz5qLKE.d.mts
|
|
264
264
|
//#region src/volar.d.ts
|
|
265
265
|
interface VolarPlugin {
|
|
266
266
|
extensionPatterns: RegExp[];
|
|
@@ -1133,7 +1133,7 @@ type TsConfigJson = {
|
|
|
1133
1133
|
references?: TsConfigJson.References[];
|
|
1134
1134
|
};
|
|
1135
1135
|
//#endregion
|
|
1136
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
1136
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
1137
1137
|
//#region src/options.d.ts
|
|
1138
1138
|
interface Logger$1 {
|
|
1139
1139
|
info: (...args: any[]) => void;
|
|
@@ -1373,7 +1373,7 @@ interface TsgoOptions {
|
|
|
1373
1373
|
path?: string;
|
|
1374
1374
|
}
|
|
1375
1375
|
//#endregion
|
|
1376
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
1376
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/types-DP3_0kws.d.mts
|
|
1377
1377
|
//#region src/utils/types.d.ts
|
|
1378
1378
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
1379
1379
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -2858,7 +2858,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
2858
2858
|
exe: false | ExeOptions;
|
|
2859
2859
|
}>;
|
|
2860
2860
|
//#endregion
|
|
2861
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
2861
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config-Dnbs_AoW.d.mts
|
|
2862
2862
|
//#region src/config/options.d.ts
|
|
2863
2863
|
/**
|
|
2864
2864
|
* Resolve user config into resolved configs
|
|
@@ -2879,7 +2879,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
2879
2879
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
2880
2880
|
declare function defineConfig(options: UserConfigExport): UserConfigExport;
|
|
2881
2881
|
//#endregion
|
|
2882
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
2882
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.d.mts
|
|
2883
2883
|
//#region src/build.d.ts
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-
|
|
2
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-
|
|
1
|
+
import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-CKcBYQLP-avlAPNcV.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-X5SFXZZc.js";
|
|
3
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/config.mjs
|
|
5
5
|
function defineConfig(options) {
|
|
6
6
|
return options;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
9
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/index.mjs
|
|
10
10
|
const version = version$1;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
|
|
@@ -35,13 +35,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
35
35
|
}
|
|
36
36
|
return to;
|
|
37
37
|
};
|
|
38
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
38
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
39
39
|
value: mod,
|
|
40
40
|
enumerable: true
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
44
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/general-BbZk8B18.mjs
|
|
45
45
|
const picomatch = createRequire(import.meta.url)("./npm_entry_picomatch.cjs");
|
|
46
46
|
function toArray(val, defaultValue) {
|
|
47
47
|
if (Array.isArray(val)) return val;
|
|
@@ -26,19 +26,17 @@ var require_tree_kill = /* @__PURE__ */ require("./npm_cjs_chunk_rolldown-runtim
|
|
|
26
26
|
killAll(tree, signal, callback);
|
|
27
27
|
});
|
|
28
28
|
break;
|
|
29
|
-
default:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
});
|
|
41
|
-
break;
|
|
29
|
+
default: buildProcessTree(pid, tree, pidsToProcess, function(parentPid) {
|
|
30
|
+
return spawn("ps", [
|
|
31
|
+
"-o",
|
|
32
|
+
"pid",
|
|
33
|
+
"--no-headers",
|
|
34
|
+
"--ppid",
|
|
35
|
+
parentPid
|
|
36
|
+
]);
|
|
37
|
+
}, function() {
|
|
38
|
+
killAll(tree, signal, callback);
|
|
39
|
+
});
|
|
42
40
|
}
|
|
43
41
|
};
|
|
44
42
|
function killAll(tree, signal, callback) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as createDebug } from "./main-
|
|
2
|
-
import { t as requireTS } from "./
|
|
1
|
+
import { r as createDebug } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { t as requireTS } from "./dist-BZO8q3c0.js";
|
|
3
3
|
import path from "node:path";
|
|
4
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
4
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/resolver-cwLsPb2o.mjs
|
|
5
5
|
const debug = createDebug("rolldown-plugin-dts:tsc-resolver");
|
|
6
6
|
const ts = requireTS();
|
|
7
7
|
function tscResolve(id, importer, cwd, tsconfig, tsconfigRaw, reference) {
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as blue, f as hex, t as R } from "./main-
|
|
3
|
-
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CKcBYQLP-
|
|
2
|
+
import { c as blue, f as hex, t as R } from "./main-Jz_9T-KA.js";
|
|
3
|
+
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CKcBYQLP-avlAPNcV.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.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
625
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/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("--concurrency <count>", "Maximum number of Rolldown builds to run in parallel").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").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-D_enfyvD-
|
|
634
|
+
const { build } = await import("./build-D_enfyvD-X5SFXZZc.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
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as __commonJSMin, k as __require } from "./main-
|
|
1
|
+
import { D as __commonJSMin, k as __require } from "./main-Jz_9T-KA.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
|
|
3
3
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
const path = __require("path");
|
|
@@ -345,7 +345,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
345
345
|
};
|
|
346
346
|
}));
|
|
347
347
|
//#endregion
|
|
348
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.
|
|
348
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.25_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/req.js
|
|
349
349
|
var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
350
350
|
const { createRequire } = __require("node:module");
|
|
351
351
|
const { pathToFileURL } = __require("node:url");
|
|
@@ -387,7 +387,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
387
387
|
module.exports = req;
|
|
388
388
|
}));
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.
|
|
390
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.25_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/options.js
|
|
391
391
|
var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
392
392
|
const req = require_req();
|
|
393
393
|
/**
|
|
@@ -421,7 +421,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
module.exports = options;
|
|
422
422
|
}));
|
|
423
423
|
//#endregion
|
|
424
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.
|
|
424
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.25_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/plugins.js
|
|
425
425
|
var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
426
426
|
const req = require_req();
|
|
427
427
|
/**
|
|
@@ -475,7 +475,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
475
475
|
module.exports = plugins;
|
|
476
476
|
}));
|
|
477
477
|
//#endregion
|
|
478
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.
|
|
478
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.25_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/index.js
|
|
479
479
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
480
480
|
const { resolve } = __require("node:path");
|
|
481
481
|
const config = require_src$1();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as resolveComma, E as toArray, l as bold, p as red, r as createDebug, t as R, u as dim, y as importWithError } from "./main-
|
|
1
|
+
import { C as resolveComma, E as toArray, l as bold, p as red, r as createDebug, t as R, u as dim, y as importWithError } from "./main-Jz_9T-KA.js";
|
|
2
2
|
import process from "node:process";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
5
5
|
import { access, cp, mkdir, mkdtemp, rm, stat, writeFile } from "node:fs/promises";
|
|
6
6
|
import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
|
|
7
7
|
import { tmpdir } from "node:os";
|
|
8
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
8
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
9
9
|
function fsExists(path) {
|
|
10
10
|
return access(path).then(() => true, () => false);
|
|
11
11
|
}
|
|
@@ -53,7 +53,7 @@ function formatBytes(bytes) {
|
|
|
53
53
|
return `${(bytes / 1e3).toFixed(2)} kB`;
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
56
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
56
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/filename-BrNNypc2.mjs
|
|
57
57
|
const RE_JS = /\.([cm]?)jsx?$/;
|
|
58
58
|
const RE_TS = /\.([cm]?)tsx?$/;
|
|
59
59
|
const RE_DTS = /\.d\.([cm]?)ts$/;
|
|
@@ -453,7 +453,7 @@ function coerce(value, options = {}) {
|
|
|
453
453
|
return parsed ? formatFullVersion(parsed) : null;
|
|
454
454
|
}
|
|
455
455
|
//#endregion
|
|
456
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@
|
|
456
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.14_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.14_@tsdown+exe@0.22.14_@t_3f66331a323f6503c9462b3ef80883b8/node_modules/tsdown/dist/target-Bab3CUeB.mjs
|
|
457
457
|
const NODE_SEA_MIN_VERSION = "25.7.0";
|
|
458
458
|
const NODE_SEA_MIN_VERSION_PARSED = {
|
|
459
459
|
major: 25,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { r as createDebug } from "./main-
|
|
2
|
-
import { h as RE_DTS_MAP, m as RE_DTS } from "./target-Bab3CUeB-
|
|
3
|
-
import { n as globalContext } from "./
|
|
4
|
-
import { t as requireTS } from "./load-tsc-BKULZsrs-Bha6Vsu1.js";
|
|
1
|
+
import { r as createDebug } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { h as RE_DTS_MAP, m as RE_DTS } from "./target-Bab3CUeB-CERZYTwS.js";
|
|
3
|
+
import { n as globalContext, t as requireTS } from "./dist-BZO8q3c0.js";
|
|
5
4
|
import path from "node:path";
|
|
6
5
|
import { pathToFileURL } from "node:url";
|
|
7
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-
|
|
6
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.13_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolve_19173df252fb1b72b750fe1e656588b8/node_modules/rolldown-plugin-dts/dist/tsc-KtFHcISk.mjs
|
|
8
7
|
const debug$3 = createDebug("rolldown-plugin-dts:tsc-system");
|
|
9
8
|
const ts$3 = requireTS();
|
|
10
9
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { A as __toESM, C as resolveComma, E as toArray, y as importWithError } from "./main-
|
|
2
|
-
import { i as expandBaselineTarget } from "./target-Bab3CUeB-
|
|
3
|
-
import "./internal-
|
|
1
|
+
import { A as __toESM, C as resolveComma, E as toArray, y as importWithError } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { i as expandBaselineTarget } from "./target-Bab3CUeB-CERZYTwS.js";
|
|
3
|
+
import "./internal-DyaNxVWW.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { readFileSync } from "node:fs";
|
|
6
6
|
import { readFile } from "node:fs/promises";
|
|
7
7
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
8
8
|
import { ResolverFactory } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
9
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.1.1_postcss@8.5.25__postcss@8.5.25_sas_6a16dd13a926d2b2137531bbae459a0e/node_modules/@tsdown/css/dist/index.mjs
|
|
10
10
|
const defaultCssBundleName = "style.css";
|
|
11
11
|
function resolveCssOptions(options = {}, topLevelTarget, unbundle) {
|
|
12
12
|
let cssTarget;
|
|
@@ -56,10 +56,8 @@ function applyLocalsConvention(modules, convention) {
|
|
|
56
56
|
result[key] = value;
|
|
57
57
|
if (key.includes("-")) result[camelized] = value;
|
|
58
58
|
break;
|
|
59
|
-
case "dashesOnly":
|
|
60
|
-
|
|
61
|
-
else result[key] = value;
|
|
62
|
-
break;
|
|
59
|
+
case "dashesOnly": if (key.includes("-")) result[camelized] = value;
|
|
60
|
+
else result[key] = value;
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
return result;
|
|
@@ -606,7 +604,7 @@ async function loadFileConfig(searchPath) {
|
|
|
606
604
|
if (cached !== void 0) return cached;
|
|
607
605
|
const promise = (async () => {
|
|
608
606
|
try {
|
|
609
|
-
const postcssrc = (await import("./src-
|
|
607
|
+
const postcssrc = (await import("./src-D5keKqGd.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).default;
|
|
610
608
|
const result = await postcssrc({}, searchPath);
|
|
611
609
|
return {
|
|
612
610
|
options: result.options,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as createDebug, t as R } from "./main-
|
|
2
|
-
import { O as fsExists, c as isGreaterOrEqual, f as tryParse, k as fsRemove, l as normalize$1, n as NODE_SEA_MIN_VERSION_PARSED, t as NODE_SEA_MIN_VERSION } from "./target-Bab3CUeB-
|
|
3
|
-
import "./internal-
|
|
1
|
+
import { r as createDebug, t as R } from "./main-Jz_9T-KA.js";
|
|
2
|
+
import { O as fsExists, c as isGreaterOrEqual, f as tryParse, k as fsRemove, l as normalize$1, n as NODE_SEA_MIN_VERSION_PARSED, t as NODE_SEA_MIN_VERSION } from "./target-Bab3CUeB-CERZYTwS.js";
|
|
3
|
+
import "./internal-DyaNxVWW.js";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|