@voidzero-dev/vite-plus-core 0.2.9 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +5 -5
- package/dist/rolldown/experimental-index.mjs +11 -9
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +2 -2
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-CVtkJvyl.d.mts → binding-Bvw14S3g.d.mts} +70 -1
- package/dist/rolldown/shared/{binding-CKyeQZen.mjs → binding-C__LJDBG.mjs} +29 -27
- package/dist/rolldown/shared/{bindingify-input-options-44iPAymO.mjs → bindingify-input-options-V9YvAjrr.mjs} +5 -5
- package/dist/rolldown/shared/{constructors-XaIbWpwJ.d.mts → constructors-CRumnw21.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-6Zc-JFd7.mjs → constructors-DklcHr18.mjs} +1 -1
- package/dist/rolldown/shared/{create-bundler-option-e1FU0w0P.mjs → create-bundler-option-DbV2ud0B.mjs} +5 -4
- package/dist/rolldown/shared/{define-config-DVsXPNaU.d.mts → define-config-DwTNhgWB.d.mts} +12 -6
- package/dist/rolldown/shared/{error-BzLGqhSQ.mjs → error-NcRuXAVN.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-C6QXSnoS.mjs → load-config-Dd7jKGUy.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-DYjJ67tj.mjs → normalize-string-or-regex-CFtim40S.mjs} +1 -1
- package/dist/rolldown/shared/{parse-uDDyc1el.mjs → parse-rvxTD36n.mjs} +2 -2
- package/dist/rolldown/shared/{resolve-tsconfig-Bcd82vVT.mjs → resolve-tsconfig-D2vSIIkR.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-CCbQNGZt.mjs → rolldown-Bblizyw1.mjs} +4 -4
- package/dist/rolldown/shared/{transform-WmU_cI8e.d.mts → transform--WSMLt1x.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-vuOCmvFs.mjs → watch-DPvOlccK.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +5 -5
- package/dist/tsdown/{build-D_enfyvD-Dg1eKRD4.js → build-D_enfyvD-tOzhITac.js} +1065 -13
- package/dist/tsdown/{debug-CKcBYQLP-C3NhYhrk.js → debug-CKcBYQLP-By_AQqN8.js} +3 -3
- package/dist/tsdown/{detect-DGhJGEqb-6CTf16BW.js → detect-DGhJGEqb-LL52mV6u.js} +1 -1
- package/dist/tsdown/{dist-DyXLnzyh.js → dist-BsS7BOcb.js} +5 -5
- package/dist/tsdown/index-types.d.ts +4 -4
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/internal-DSmmwu4u.js +3 -0
- package/dist/tsdown/{main-DiierkER.js → main-Bcv7jU2b.js} +1 -1
- package/dist/tsdown/{resolver-cwLsPb2o-Dk4xdAGE.js → resolver-cwLsPb2o-Bb9SDBm6.js} +2 -2
- package/dist/tsdown/run.js +4 -4
- package/dist/tsdown/{src-drVPfX63.js → src-JVSpR8xt.js} +5 -5
- package/dist/tsdown/{target-Bab3CUeB-DQ0pKhCv.js → target-Bab3CUeB-8PBzMh3p.js} +3 -3
- package/dist/tsdown/{tsc-JnMl2z7d.js → tsc-B8FD48Oc.js} +3 -3
- package/dist/tsdown/tsdown-css.js +5 -5
- package/dist/tsdown/tsdown-exe.js +3 -3
- package/dist/vite/client/bundledDevClient.mjs +67 -17
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +19 -19
- package/dist/vite/node/chunks/node.js +117 -83
- package/dist/vite/node/chunks/postcss-import.js +13 -16
- package/dist/vite/node/index.d.ts +58 -55
- package/dist/vite/node/module-runner.d.ts +13 -13
- package/dist/vite/node/module-runner.js +1 -2
- package/package.json +24 -24
- package/dist/tsdown/dist-CMKwGGNp.js +0 -1059
- package/dist/tsdown/internal-DKworeK4.js +0 -3
|
@@ -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-Bcv7jU2b.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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/logger-Das7E2bJ.mjs
|
|
5
5
|
const LogLevels = {
|
|
6
6
|
silent: 0,
|
|
7
7
|
error: 1,
|
|
@@ -140,7 +140,7 @@ function hue2rgb(p, q, t) {
|
|
|
140
140
|
return p;
|
|
141
141
|
}
|
|
142
142
|
//#endregion
|
|
143
|
-
//#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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/debug-CKcBYQLP.mjs
|
|
144
144
|
var version = "0.22.14";
|
|
145
145
|
const debugLog = createDebug("tsdown:debug");
|
|
146
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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/detect-DGhJGEqb.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -1,6 +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 {
|
|
1
|
+
import { r as createDebug } from "./main-Bcv7jU2b.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-8PBzMh3p.js";
|
|
3
|
+
import { o as at, s as ee } from "./build-D_enfyvD-tOzhITac.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { styleText } from "node:util";
|
|
@@ -1365,7 +1365,7 @@ function createGeneratePlugin({ generator, entry, tsconfig, tsconfigRaw, build,
|
|
|
1365
1365
|
if (generator === "tsgo") tsgoContext = await runTsgo(logger, rootDir, tsconfig, sourcemap, tsgo.path);
|
|
1366
1366
|
else if (generator === "tsc") if (parallel) tscWorker = createTscWorker();
|
|
1367
1367
|
else {
|
|
1368
|
-
tscModule = await import("./tsc-
|
|
1368
|
+
tscModule = await import("./tsc-B8FD48Oc.js");
|
|
1369
1369
|
if (newContext) tscContext = createContext();
|
|
1370
1370
|
}
|
|
1371
1371
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
|
@@ -2619,7 +2619,7 @@ function createDtsResolvePlugin({ cwd, tsconfig, tsconfigRaw, resolver, sideEffe
|
|
|
2619
2619
|
async function resolveDtsPath(id, importer, rolldownResolution) {
|
|
2620
2620
|
let dtsPath;
|
|
2621
2621
|
if (resolver === "tsc") {
|
|
2622
|
-
const { tscResolve } = await import("./resolver-cwLsPb2o-
|
|
2622
|
+
const { tscResolve } = await import("./resolver-cwLsPb2o-Bb9SDBm6.js");
|
|
2623
2623
|
dtsPath = tscResolve(id, importer, cwd, tsconfig, tsconfigRaw);
|
|
2624
2624
|
} else dtsPath = baseDtsResolver(id, importer);
|
|
2625
2625
|
debug$1("Using %s for dts import: %O -> %O", resolver, id, dtsPath);
|
|
@@ -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.
|
|
108
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.2.0_postcss@8.5.26__postcss@8.5.26_sas_b5ecbe85e36c638c226bc310ff1da39e/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 {
|
|
@@ -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_4084c24f9f44f250d2b604ebc16f10f3/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_4084c24f9f44f250d2b604ebc16f10f3/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_4084c24f9f44f250d2b604ebc16f10f3/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-By_AQqN8.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-D_enfyvD-tOzhITac.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_4084c24f9f44f250d2b604ebc16f10f3/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_4084c24f9f44f250d2b604ebc16f10f3/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 };
|
|
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
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_4084c24f9f44f250d2b604ebc16f10f3/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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as createDebug } from "./main-
|
|
2
|
-
import { t as requireTS } from "./dist-
|
|
1
|
+
import { r as createDebug } from "./main-Bcv7jU2b.js";
|
|
2
|
+
import { t as requireTS } from "./dist-BsS7BOcb.js";
|
|
3
3
|
import path from "node:path";
|
|
4
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");
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as blue, f as hex, n as x } from "./main-
|
|
3
|
-
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CKcBYQLP-
|
|
2
|
+
import { c as blue, f as hex, n as x } from "./main-Bcv7jU2b.js";
|
|
3
|
+
import { c as globalLogger, n as version, t as enableDebug } from "./debug-CKcBYQLP-By_AQqN8.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_4084c24f9f44f250d2b604ebc16f10f3/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-tOzhITac.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-Bcv7jU2b.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.26_tsx@4.23.12_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.26_tsx@4.23.12_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.26_tsx@4.23.12_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.26_tsx@4.23.12_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, n as x, p as red, r as createDebug, u as dim, y as importWithError } from "./main-
|
|
1
|
+
import { C as resolveComma, E as toArray, l as bold, n as x, p as red, r as createDebug, u as dim, y as importWithError } from "./main-Bcv7jU2b.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_4084c24f9f44f250d2b604ebc16f10f3/node_modules/tsdown/dist/format-DLxyxnif.mjs
|
|
9
9
|
function fsExists(path) {
|
|
10
10
|
return access(path).then(() => true, () => false);
|
|
11
11
|
}
|
|
@@ -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_4084c24f9f44f250d2b604ebc16f10f3/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,6 +1,6 @@
|
|
|
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, t as requireTS } from "./dist-
|
|
1
|
+
import { r as createDebug } from "./main-Bcv7jU2b.js";
|
|
2
|
+
import { h as RE_DTS_MAP, m as RE_DTS } from "./target-Bab3CUeB-8PBzMh3p.js";
|
|
3
|
+
import { n as globalContext, t as requireTS } from "./dist-BsS7BOcb.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
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
|
|
@@ -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-Bcv7jU2b.js";
|
|
2
|
+
import { i as expandBaselineTarget } from "./target-Bab3CUeB-8PBzMh3p.js";
|
|
3
|
+
import "./internal-DSmmwu4u.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.
|
|
9
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.22.14_jiti@2.7.0_postcss-import@16.2.0_postcss@8.5.26__postcss@8.5.26_sas_b5ecbe85e36c638c226bc310ff1da39e/node_modules/@tsdown/css/dist/index.mjs
|
|
10
10
|
const defaultCssBundleName = "style.css";
|
|
11
11
|
function resolveCssOptions(options = {}, topLevelTarget, unbundle) {
|
|
12
12
|
let cssTarget;
|
|
@@ -604,7 +604,7 @@ async function loadFileConfig(searchPath) {
|
|
|
604
604
|
if (cached !== void 0) return cached;
|
|
605
605
|
const promise = (async () => {
|
|
606
606
|
try {
|
|
607
|
-
const postcssrc = (await import("./src-
|
|
607
|
+
const postcssrc = (await import("./src-JVSpR8xt.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1))).default;
|
|
608
608
|
const result = await postcssrc({}, searchPath);
|
|
609
609
|
return {
|
|
610
610
|
options: result.options,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as x, r as createDebug } 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 { n as x, r as createDebug } from "./main-Bcv7jU2b.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-8PBzMh3p.js";
|
|
3
|
+
import "./internal-DSmmwu4u.js";
|
|
4
4
|
import process from "node:process";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pipeline } from "node:stream/promises";
|
|
@@ -41,7 +41,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
41
41
|
}) : target, mod));
|
|
42
42
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region \0@oxc-project+runtime@0.
|
|
44
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/typeof.js
|
|
45
45
|
function _typeof(o) {
|
|
46
46
|
"@babel/helpers - typeof";
|
|
47
47
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -51,7 +51,7 @@ function _typeof(o) {
|
|
|
51
51
|
}, _typeof(o);
|
|
52
52
|
}
|
|
53
53
|
//#endregion
|
|
54
|
-
//#region \0@oxc-project+runtime@0.
|
|
54
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPrimitive.js
|
|
55
55
|
function toPrimitive(t, r) {
|
|
56
56
|
if ("object" != _typeof(t) || !t) return t;
|
|
57
57
|
var e = t[Symbol.toPrimitive];
|
|
@@ -63,13 +63,13 @@ function toPrimitive(t, r) {
|
|
|
63
63
|
return ("string" === r ? String : Number)(t);
|
|
64
64
|
}
|
|
65
65
|
//#endregion
|
|
66
|
-
//#region \0@oxc-project+runtime@0.
|
|
66
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/toPropertyKey.js
|
|
67
67
|
function toPropertyKey(t) {
|
|
68
68
|
var i = toPrimitive(t, "string");
|
|
69
69
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
//#region \0@oxc-project+runtime@0.
|
|
72
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/defineProperty.js
|
|
73
73
|
function _defineProperty(e, r, t) {
|
|
74
74
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
75
75
|
value: t,
|
|
@@ -585,7 +585,11 @@ var BundledDevHMRClient = class extends HMRClient {
|
|
|
585
585
|
reason: `update propagated back to ${firstInvalidatedBy}, which already called \`import.meta.hot.invalidate()\``
|
|
586
586
|
};
|
|
587
587
|
if (this.isSelfAccepted(id)) {
|
|
588
|
-
boundaries.push(
|
|
588
|
+
boundaries.push({
|
|
589
|
+
boundary: id,
|
|
590
|
+
acceptedVia: id,
|
|
591
|
+
isWithinCircularImport: this.isNodeWithinCircularImports(id, stack)
|
|
592
|
+
});
|
|
589
593
|
return;
|
|
590
594
|
}
|
|
591
595
|
const parents = this.runtime.getImporters(id).filter((p) => this.runtime.isExecuted(p));
|
|
@@ -594,17 +598,52 @@ var BundledDevHMRClient = class extends HMRClient {
|
|
|
594
598
|
reason: `no hmr boundary found for module \`${id}\``
|
|
595
599
|
};
|
|
596
600
|
for (const parent of parents) {
|
|
601
|
+
const subChain = [...stack, parent];
|
|
597
602
|
if (this.acceptsDep(parent, id)) {
|
|
598
|
-
boundaries.push(
|
|
603
|
+
boundaries.push({
|
|
604
|
+
boundary: parent,
|
|
605
|
+
acceptedVia: id,
|
|
606
|
+
isWithinCircularImport: this.isNodeWithinCircularImports(parent, subChain)
|
|
607
|
+
});
|
|
599
608
|
continue;
|
|
600
609
|
}
|
|
601
|
-
if (stack.includes(parent))
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
|
|
610
|
+
if (!stack.includes(parent)) {
|
|
611
|
+
const fullReload = this.bubble(parent, subChain, updateSet, boundaries, firstInvalidatedBy, traversedModules);
|
|
612
|
+
if (fullReload) return fullReload;
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Check importers recursively if it's an import loop. An accepted module within
|
|
618
|
+
* an import loop cannot recover its execution order and should be reloaded.
|
|
619
|
+
*
|
|
620
|
+
* @param node The node that accepts HMR and is a boundary
|
|
621
|
+
* @param nodeChain The chain of nodes/imports that lead to the node.
|
|
622
|
+
* (The last node in the chain imports the `node` parameter)
|
|
623
|
+
* @param currentChain The current chain tracked from the `node` parameter
|
|
624
|
+
* @param traversedModules The set of modules that have traversed
|
|
625
|
+
*/
|
|
626
|
+
isNodeWithinCircularImports(node, nodeChain, currentChain = [node], traversedModules = /* @__PURE__ */ new Set()) {
|
|
627
|
+
if (traversedModules.has(node)) return false;
|
|
628
|
+
traversedModules.add(node);
|
|
629
|
+
for (const importer of this.runtime.getImporters(node)) {
|
|
630
|
+
if (importer === node) continue;
|
|
631
|
+
const importerIndex = nodeChain.indexOf(importer);
|
|
632
|
+
if (importerIndex > -1) {
|
|
633
|
+
const importChain = [
|
|
634
|
+
importer,
|
|
635
|
+
...[...currentChain].reverse(),
|
|
636
|
+
...nodeChain.slice(importerIndex, -1).reverse()
|
|
637
|
+
];
|
|
638
|
+
this.logger.debug(`circular imports detected: ${importChain.join(" -> ")}`);
|
|
639
|
+
return true;
|
|
640
|
+
}
|
|
641
|
+
if (!currentChain.includes(importer)) {
|
|
642
|
+
const result = this.isNodeWithinCircularImports(importer, nodeChain, currentChain.concat(importer), traversedModules);
|
|
643
|
+
if (result) return result;
|
|
644
|
+
}
|
|
607
645
|
}
|
|
646
|
+
return false;
|
|
608
647
|
}
|
|
609
648
|
handlePush(payload) {
|
|
610
649
|
this.applyQueue = this.applyQueue.then(() => this.applyPush(payload)).catch((err) => {
|
|
@@ -674,15 +713,25 @@ var BundledDevHMRClient = class extends HMRClient {
|
|
|
674
713
|
this.requestFullReload(`no factory for module \`${id}\``);
|
|
675
714
|
return;
|
|
676
715
|
}
|
|
677
|
-
const applies = update.boundaries.map((
|
|
716
|
+
const applies = update.boundaries.map(({ boundary, acceptedVia, isWithinCircularImport }) => ({
|
|
678
717
|
boundary,
|
|
679
718
|
acceptedVia,
|
|
719
|
+
isWithinCircularImport,
|
|
680
720
|
callbacks: this.hotModulesMap.get(boundary)?.callbacks.filter((c) => c.deps.includes(acceptedVia)) ?? []
|
|
681
721
|
}));
|
|
682
722
|
for (const id of update.updateSet) this.runtime.removeModuleCache(id);
|
|
683
|
-
for (const { boundary, acceptedVia, callbacks } of applies) {
|
|
684
|
-
|
|
685
|
-
|
|
723
|
+
for (const { boundary, acceptedVia, isWithinCircularImport, callbacks } of applies) {
|
|
724
|
+
let fresh;
|
|
725
|
+
try {
|
|
726
|
+
this.runtime.initModule(acceptedVia);
|
|
727
|
+
fresh = this.runtime.loadExports(acceptedVia);
|
|
728
|
+
} catch (err) {
|
|
729
|
+
if (isWithinCircularImport) {
|
|
730
|
+
this.requestFullReload(`${acceptedVia} failed to apply HMR as it's within a circular import. Reloading page to reset the execution order.`);
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
throw err;
|
|
734
|
+
}
|
|
686
735
|
try {
|
|
687
736
|
this.currentFirstInvalidatedBy = firstInvalidatedBy;
|
|
688
737
|
for (const { deps, fn } of callbacks) fn(deps.map((dep) => dep === acceptedVia ? fresh : void 0));
|
|
@@ -695,11 +744,12 @@ var BundledDevHMRClient = class extends HMRClient {
|
|
|
695
744
|
toUpdatePayload(boundaries, firstInvalidatedBy) {
|
|
696
745
|
return {
|
|
697
746
|
type: "update",
|
|
698
|
-
updates: boundaries.map((
|
|
747
|
+
updates: boundaries.map(({ boundary, acceptedVia, isWithinCircularImport }) => ({
|
|
699
748
|
type: "js-update",
|
|
700
749
|
path: boundary,
|
|
701
750
|
acceptedPath: acceptedVia,
|
|
702
751
|
timestamp: Date.now(),
|
|
752
|
+
isWithinCircularImport,
|
|
703
753
|
firstInvalidatedBy
|
|
704
754
|
}))
|
|
705
755
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.146.0/helpers/esm/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.146.0/helpers/esm/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.146.0/helpers/esm/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.146.0/helpers/esm/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,
|