@voidzero-dev/vite-plus-core 0.1.13-alpha.4 → 0.1.13-alpha.5
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 +211 -73
- package/dist/rolldown/config.d.mts +1 -1
- package/dist/rolldown/config.mjs +8 -8
- package/dist/rolldown/experimental-index.d.mts +7 -7
- package/dist/rolldown/experimental-index.mjs +12 -13
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +9 -9
- package/dist/rolldown/parallel-plugin-worker.mjs +5 -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 +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +3 -3
- package/dist/rolldown/shared/{binding-BohGL_65.d.mts → binding-Dsq9Azhm.d.mts} +14 -17
- package/dist/rolldown/shared/{bindingify-input-options-D6u7COm1.mjs → bindingify-input-options-nddSVL89.mjs} +16 -11
- package/dist/rolldown/shared/{constructors-DNuo4d0H.d.mts → constructors-DfpIbfMG.d.mts} +7 -3
- package/dist/rolldown/shared/{constructors-Ctal_Rbv.mjs → constructors-DqC7XSXy.mjs} +8 -2
- package/dist/rolldown/shared/{define-config-cG45vHwf.d.mts → define-config-CV9D_Qea.d.mts} +19 -12
- package/dist/rolldown/shared/{error-CP8smW_P.mjs → error-BO4SlZV_.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CjCoDD5h.mjs → load-config-CDqvxxnl.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-C5RWbu3O.mjs → normalize-string-or-regex-D7wlw16t.mjs} +1 -1
- package/dist/rolldown/shared/{parse-BhVn_3w_.mjs → parse-WOgXxW4-.mjs} +1 -1
- package/dist/rolldown/shared/{transform-BfdLLNnY.mjs → resolve-tsconfig-C3OzszY-.mjs} +28 -5
- package/dist/rolldown/shared/{rolldown-B7hI_r7G.mjs → rolldown-DUOYLKyH.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-CYoDea9V.mjs → rolldown-build-C7TjtSci.mjs} +4 -4
- package/dist/rolldown/shared/{transform-BoJxrM-e.d.mts → transform-B5D1aA1B.d.mts} +19 -2
- package/dist/rolldown/shared/{watch-CAj7leYN.mjs → watch-BV1BB_LU.mjs} +4 -4
- package/dist/rolldown/utils-index.d.mts +2 -2
- package/dist/rolldown/utils-index.mjs +4 -5
- package/dist/tsdown/{build-CoLhkNXE-DtR1EaBG.js → build-CoLhkNXE-DccPqXpK.js} +7 -7
- package/dist/tsdown/{build-dhDyu66J-DxSssGzc.js → build-dhDyu66J-C3xzaksU.js} +2 -2
- package/dist/tsdown/{debug-C4FmgzkJ-Co4tnxmE.js → debug-C4FmgzkJ-BxvFHEjv.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-BiiMP_XL.js → detect-DN3DXXYt-CgZGWZG7.js} +1 -1
- package/dist/tsdown/index-types.d.ts +6 -6
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-JovZVvCY.js → main-CU_sednE.js} +2 -2
- package/dist/tsdown/run.js +3 -3
- package/dist/vite/client/client.mjs +5 -5
- package/dist/vite/node/chunks/build2.js +5 -14
- package/dist/vite/node/chunks/dist.js +6 -11
- package/dist/vite/node/chunks/dist2.js +1 -4
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +98 -83
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/module-runner.js +2 -2
- package/package.json +7 -7
- /package/dist/rolldown/shared/{binding-C5G6_6ql.mjs → binding-BV_UWDF3.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import "./shared/error-
|
|
3
|
-
import { n as parseSync, t as parse } from "./shared/parse-
|
|
4
|
-
import { a as
|
|
1
|
+
import "./shared/binding-BV_UWDF3.mjs";
|
|
2
|
+
import "./shared/error-BO4SlZV_.mjs";
|
|
3
|
+
import { n as parseSync, t as parse } from "./shared/parse-WOgXxW4-.mjs";
|
|
4
|
+
import { a as minify, i as transformSync, o as minifySync, r as transform, t as TsconfigCache } from "./shared/resolve-tsconfig-C3OzszY-.mjs";
|
|
5
5
|
//#region ../../../node_modules/.pnpm/oxc-parser@0.120.0/node_modules/oxc-parser/src-js/generated/visit/walk.js
|
|
6
6
|
function walkNode(node, visitors) {
|
|
7
7
|
if (node == null) return;
|
|
@@ -2413,5 +2413,4 @@ var Visitor = class {
|
|
|
2413
2413
|
}
|
|
2414
2414
|
};
|
|
2415
2415
|
//#endregion
|
|
2416
|
-
var TsconfigCache = import_binding.TsconfigCache;
|
|
2417
2416
|
export { TsconfigCache, Visitor, minify, minifySync, parse, parseSync, transform, transformSync };
|
|
@@ -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-CU_sednE.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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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-CgZGWZG7.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,5 +1,5 @@
|
|
|
1
|
-
import "./main-
|
|
1
|
+
import "./main-CU_sednE.js";
|
|
2
2
|
import "./node-B3Gdtau1.js";
|
|
3
|
-
import { t as build$1 } from "./build-CoLhkNXE-
|
|
3
|
+
import { t as build$1 } from "./build-CoLhkNXE-DccPqXpK.js";
|
|
4
4
|
import "./filename-UU7z2A9Z.js";
|
|
5
5
|
export { build$1 as build };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as resolveComma, E as toArray } from "./main-
|
|
1
|
+
import { C as resolveComma, E as toArray } from "./main-CU_sednE.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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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>;
|
|
@@ -8474,7 +8474,7 @@ interface GlobDependency {
|
|
|
8474
8474
|
glob: string;
|
|
8475
8475
|
}
|
|
8476
8476
|
//#endregion
|
|
8477
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.21.4_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0.
|
|
8477
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.21.4_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._3b842bfa645c044334f2fa01c5474b7d/node_modules/@tsdown/css/dist/index.d.mts
|
|
8478
8478
|
//#region src/options.d.ts
|
|
8479
8479
|
type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
|
|
8480
8480
|
interface CSSModulesOptions {
|
|
@@ -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.3_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core_vue@3.5.27_typescript@5.9.3_/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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,10 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
1
|
+
import { c as globalLogger } from "./main-CU_sednE.js";
|
|
2
2
|
import "./node-B3Gdtau1.js";
|
|
3
|
-
import { t as enableDebug } from "./debug-C4FmgzkJ-
|
|
4
|
-
import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-CoLhkNXE-
|
|
3
|
+
import { t as enableDebug } from "./debug-C4FmgzkJ-BxvFHEjv.js";
|
|
4
|
+
import { i as resolveUserConfig, n as buildWithConfigs, r as mergeConfig, t as build$1 } from "./build-CoLhkNXE-DccPqXpK.js";
|
|
5
5
|
import "./filename-UU7z2A9Z.js";
|
|
6
6
|
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_@
|
|
7
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.4_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.4_@tsdown+exe@0.21.4_@type_b81f53181c628192d695de1443dbe8cc/node_modules/tsdown/dist/config.mjs
|
|
8
8
|
function defineConfig(options) {
|
|
9
9
|
return options;
|
|
10
10
|
}
|
|
@@ -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_b81f53181c628192d695de1443dbe8cc/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_b81f53181c628192d695de1443dbe8cc/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
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
2
|
+
import { c as globalLogger, f as dim, g as yellow, r as version, t as R } from "./main-CU_sednE.js";
|
|
3
3
|
import "./node-B3Gdtau1.js";
|
|
4
|
-
import { t as enableDebug } from "./debug-C4FmgzkJ-
|
|
4
|
+
import { t as enableDebug } from "./debug-C4FmgzkJ-BxvFHEjv.js";
|
|
5
5
|
import module, { createRequire } from "node:module";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -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, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
632
632
|
globalLogger.level = flags.logLevel || "info";
|
|
633
633
|
globalLogger.info(`tsdown ${dim`v${version}`} powered by rolldown ${dim`v${VERSION}`}`);
|
|
634
|
-
const { build } = await import("./build-dhDyu66J-
|
|
634
|
+
const { build } = await import("./build-dhDyu66J-C3xzaksU.js");
|
|
635
635
|
if (input.length > 0) flags.entry = input;
|
|
636
636
|
await build(flags);
|
|
637
637
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.120.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.120.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.120.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.120.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,
|
|
@@ -220,7 +220,7 @@ var HMRClient = class {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
//#endregion
|
|
223
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
223
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.7/node_modules/nanoid/non-secure/index.js
|
|
224
224
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
225
225
|
let nanoid = (size = 21) => {
|
|
226
226
|
let id = "";
|
|
@@ -515,12 +515,8 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
515
515
|
"ʼn": "'n",
|
|
516
516
|
"ſ": "ss"
|
|
517
517
|
};
|
|
518
|
-
/** Detect free variable `global` from Node.js. */
|
|
519
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
520
|
-
/** Detect free variable `self`. */
|
|
521
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
522
518
|
/** Used as a reference to the global object. */
|
|
523
|
-
var root =
|
|
519
|
+
var root = typeof global == "object" && global && global.Object === Object && global || typeof self == "object" && self && self.Object === Object && self || Function("return this")();
|
|
524
520
|
/**
|
|
525
521
|
* A specialized version of `_.reduce` for arrays without support for
|
|
526
522
|
* iteratee shorthands.
|
|
@@ -2871,8 +2867,7 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2871
2867
|
var pref = this.preferredQuoteMark(options);
|
|
2872
2868
|
if (pref === Attribute.NO_QUOTE) {
|
|
2873
2869
|
var quote = this.quoteMark || options.quoteMark || Attribute.DOUBLE_QUOTE;
|
|
2874
|
-
|
|
2875
|
-
if ((0, _cssesc["default"])(v, opts).length < escaped.length) return quote;
|
|
2870
|
+
if ((0, _cssesc["default"])(v, CSSESC_QUOTE_OPTIONS[quote]).length < escaped.length) return quote;
|
|
2876
2871
|
}
|
|
2877
2872
|
return pref;
|
|
2878
2873
|
}
|
|
@@ -2900,13 +2895,10 @@ var require_attribute = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2900
2895
|
}
|
|
2901
2896
|
};
|
|
2902
2897
|
_proto._spacesFor = function _spacesFor(name) {
|
|
2903
|
-
|
|
2898
|
+
return Object.assign({
|
|
2904
2899
|
before: "",
|
|
2905
2900
|
after: ""
|
|
2906
|
-
};
|
|
2907
|
-
var spaces = this.spaces[name] || {};
|
|
2908
|
-
var rawSpaces = this.raws.spaces && this.raws.spaces[name] || {};
|
|
2909
|
-
return Object.assign(attrSpaces, spaces, rawSpaces);
|
|
2901
|
+
}, this.spaces[name] || {}, this.raws.spaces && this.raws.spaces[name] || {});
|
|
2910
2902
|
};
|
|
2911
2903
|
_proto._stringFor = function _stringFor(name, spaceName, concat) {
|
|
2912
2904
|
if (spaceName === void 0) spaceName = name;
|
|
@@ -3620,8 +3612,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3620
3612
|
if (this.options.lossy) break;
|
|
3621
3613
|
if (lastAdded) {
|
|
3622
3614
|
(0, _util.ensureObject)(node, "spaces", lastAdded);
|
|
3623
|
-
|
|
3624
|
-
node.spaces[lastAdded].after = prevContent + content;
|
|
3615
|
+
node.spaces[lastAdded].after = (node.spaces[lastAdded].after || "") + content;
|
|
3625
3616
|
var existingComment = (0, _util.getProp)(node, "raws", "spaces", lastAdded, "after") || null;
|
|
3626
3617
|
if (existingComment) node.raws.spaces[lastAdded].after = existingComment + content;
|
|
3627
3618
|
} else {
|
|
@@ -354,7 +354,6 @@ const decodeMap = new Map([
|
|
|
354
354
|
[158, 382],
|
|
355
355
|
[159, 376]
|
|
356
356
|
]);
|
|
357
|
-
String.fromCodePoint;
|
|
358
357
|
/**
|
|
359
358
|
* Replace the given code point with a replacement character if it is a
|
|
360
359
|
* surrogate or is outside the valid range. Otherwise return the code
|
|
@@ -4403,13 +4402,10 @@ var Parser = class {
|
|
|
4403
4402
|
}
|
|
4404
4403
|
/** @protected */
|
|
4405
4404
|
_attachElementToTree(element, location) {
|
|
4406
|
-
if (this.options.sourceCodeLocationInfo) {
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
};
|
|
4411
|
-
this.treeAdapter.setNodeSourceCodeLocation(element, loc);
|
|
4412
|
-
}
|
|
4405
|
+
if (this.options.sourceCodeLocationInfo) this.treeAdapter.setNodeSourceCodeLocation(element, location && {
|
|
4406
|
+
...location,
|
|
4407
|
+
startTag: location
|
|
4408
|
+
});
|
|
4413
4409
|
if (this._shouldFosterParentOnInsertion()) this._fosterParentElement(element);
|
|
4414
4410
|
else {
|
|
4415
4411
|
const parent = this.openElements.currentTmplContentOrNode;
|
|
@@ -4495,7 +4491,7 @@ var Parser = class {
|
|
|
4495
4491
|
if (this.treeAdapter.getNodeSourceCodeLocation(element) && closingToken.location) {
|
|
4496
4492
|
const ctLoc = closingToken.location;
|
|
4497
4493
|
const tn = this.treeAdapter.getTagName(element);
|
|
4498
|
-
|
|
4494
|
+
this.treeAdapter.updateNodeSourceCodeLocation(element, closingToken.type === TokenType.END_TAG && tn === closingToken.tagName ? {
|
|
4499
4495
|
endTag: { ...ctLoc },
|
|
4500
4496
|
endLine: ctLoc.endLine,
|
|
4501
4497
|
endCol: ctLoc.endCol,
|
|
@@ -4504,8 +4500,7 @@ var Parser = class {
|
|
|
4504
4500
|
endLine: ctLoc.startLine,
|
|
4505
4501
|
endCol: ctLoc.startCol,
|
|
4506
4502
|
endOffset: ctLoc.startOffset
|
|
4507
|
-
};
|
|
4508
|
-
this.treeAdapter.updateNodeSourceCodeLocation(element, endLoc);
|
|
4503
|
+
});
|
|
4509
4504
|
}
|
|
4510
4505
|
}
|
|
4511
4506
|
shouldProcessStartTagTokenInForeignContent(token) {
|
|
@@ -1306,10 +1306,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1306
1306
|
obj = item;
|
|
1307
1307
|
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
1308
1308
|
}
|
|
1309
|
-
if (!tagObj) {
|
|
1310
|
-
const name = obj?.constructor?.name ?? (obj === null ? "null" : typeof obj);
|
|
1311
|
-
throw new Error(`Tag not resolved for ${name} value`);
|
|
1312
|
-
}
|
|
1309
|
+
if (!tagObj) throw new Error(`Tag not resolved for ${obj?.constructor?.name ?? (obj === null ? "null" : typeof obj)} value`);
|
|
1313
1310
|
return tagObj;
|
|
1314
1311
|
}
|
|
1315
1312
|
function stringifyProps(node, tagObj, { anchors: anchors$1, doc }) {
|
|
@@ -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.1";
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
78
78
|
const ROLLUP_HOOKS = [
|