@voidzero-dev/vite-plus-core 0.1.16-alpha.3 → 0.1.16-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsdown/{build-DU-BFLB1-B3WPwpFM.js → build-DU-BFLB1-Bi4na2OW.js} +9 -9
- package/dist/tsdown/build-DU-BFLB1-DJDsfG2I.js +2 -0
- package/dist/tsdown/{debug-BmAPbhgA-ClibQzj1.js → debug-BmAPbhgA-CHpocWMm.js} +2 -2
- package/dist/tsdown/{detect-h8ZFBH96-CQBPtOHi.js → detect-h8ZFBH96-DbLjA61J.js} +1 -1
- package/dist/tsdown/{dist-SqMQ6Q2q.js → dist-DpEByBn7.js} +3 -3
- package/dist/tsdown/{filename-DQnUJlio-smVMy5Ot.js → filename-DQnUJlio-D58wGDtS.js} +1 -1
- package/dist/tsdown/index-types.d.ts +190 -190
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-CC95VQtR.js → main-wrcIC7dd.js} +3 -3
- package/dist/tsdown/run.js +3 -3
- package/dist/tsdown/{tsc-Bq9H2v3f.js → tsc-DzHkiQui.js} +2 -2
- package/dist/tsdown/{tsc-context-BEcA6aUv.js → tsc-context-Dban9z4Z.js} +1 -1
- package/dist/vite/client.d.ts +3 -0
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/moduleRunnerTransport.d.ts +11 -11
- package/dist/vite/node/chunks/node.js +370 -279
- package/dist/vite/node/index.d.ts +13 -3
- package/dist/vite/node/index.js +1 -1
- package/package.json +4 -4
- package/dist/tsdown/build-DU-BFLB1-DhRv5Umu.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
|
|
2
|
-
import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as z, o as generateColor, p as green, r as version, s as getNameLabel, t as R, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-
|
|
2
|
+
import { C as promiseWithResolvers, D as toArray, E as slash, S as pkgExists, T as resolveRegex, _ as yellow, a as createLogger, b as matchPattern, c as globalLogger, d as bold, f as dim, g as underline, h as red, i as LogLevels, l as prettyFormat, n as z, o as generateColor, p as green, r as version, s as getNameLabel, t as R, u as blue, v as debounce, w as resolveComma, x as noop, y as importWithError } from "./main-wrcIC7dd.js";
|
|
3
3
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
4
|
-
import { d as filename_js_to_dts, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-DQnUJlio-
|
|
4
|
+
import { d as filename_js_to_dts, i as RE_JS, n as RE_DTS, o as RE_NODE_MODULES$1, t as RE_CSS } from "./filename-DQnUJlio-D58wGDtS.js";
|
|
5
5
|
import "./dist-CxeZzY9B.js";
|
|
6
6
|
import module$1, { builtinModules, createRequire, isBuiltin } from "node:module";
|
|
7
7
|
import process$1, { env } from "node:process";
|
|
@@ -22,7 +22,7 @@ import { pathToFileURL } from "node:url";
|
|
|
22
22
|
import { Buffer } from "node:buffer";
|
|
23
23
|
import { brotliCompress, gzip } from "node:zlib";
|
|
24
24
|
import { importGlobPlugin } from "@voidzero-dev/vite-plus-core/rolldown/experimental";
|
|
25
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
25
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/fs-Dd6Htx2P.mjs
|
|
26
26
|
function fsExists(path) {
|
|
27
27
|
return access(path).then(() => true, () => false);
|
|
28
28
|
}
|
|
@@ -65,7 +65,7 @@ function stripExtname(filePath) {
|
|
|
65
65
|
return filePath.slice(0, -ext.length);
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
68
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/format-_3CEX8E7.mjs
|
|
69
69
|
const shimFile = path.resolve(import.meta.dirname, "..", "esm-shims.js");
|
|
70
70
|
function getShimsInject(format, platform) {
|
|
71
71
|
if (format === "es" && platform === "node") return {
|
|
@@ -3341,7 +3341,7 @@ function createConfigCoreLoader(options) {
|
|
|
3341
3341
|
};
|
|
3342
3342
|
}
|
|
3343
3343
|
//#endregion
|
|
3344
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
3344
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/options-j2tUAf6W.mjs
|
|
3345
3345
|
const __cjs_require$1 = createRequire(import.meta.url);
|
|
3346
3346
|
const picomatch = __cjs_require$1("./npm_entry_picomatch.cjs");
|
|
3347
3347
|
const satisfies$1 = __cjs_require$1("./npm_entry_semver_functions_satisfies.cjs");
|
|
@@ -4157,7 +4157,7 @@ function filterConfig(filter, configCwd, name) {
|
|
|
4157
4157
|
return toArray(filter).some((value) => name && name === value || cwd === value);
|
|
4158
4158
|
}
|
|
4159
4159
|
//#endregion
|
|
4160
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
4160
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/watch-ZJbRq-K8.mjs
|
|
4161
4161
|
async function copy(options) {
|
|
4162
4162
|
if (!options.copy) return;
|
|
4163
4163
|
const resolved = await resolveCopyEntries(options);
|
|
@@ -4537,7 +4537,7 @@ var Hookable = class {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
};
|
|
4539
4539
|
//#endregion
|
|
4540
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
4540
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/build-DU-BFLB1.mjs
|
|
4541
4541
|
const __cjs_require = createRequire(import.meta.url);
|
|
4542
4542
|
const satisfies = __cjs_require("./npm_entry_semver_functions_satisfies.cjs");
|
|
4543
4543
|
const coerce = __cjs_require("./npm_entry_semver_functions_coerce.cjs");
|
|
@@ -4834,7 +4834,7 @@ async function bundleDone(bundleByPkg, bundle) {
|
|
|
4834
4834
|
async function packTarball(packageJsonPath) {
|
|
4835
4835
|
const pkgDir = path.dirname(packageJsonPath);
|
|
4836
4836
|
const destination = await mkdtemp(path.join(tmpdir(), "tsdown-pack-"));
|
|
4837
|
-
const { detect } = await import("./detect-h8ZFBH96-
|
|
4837
|
+
const { detect } = await import("./detect-h8ZFBH96-DbLjA61J.js");
|
|
4838
4838
|
try {
|
|
4839
4839
|
const detected = await detect({ cwd: pkgDir });
|
|
4840
4840
|
if (detected?.name === "deno") throw new Error(`Cannot pack tarball for Deno projects at ${pkgDir}`);
|
|
@@ -4970,7 +4970,7 @@ async function resolveInputOptions(config, format, configFiles, bundle, cjsDts,
|
|
|
4970
4970
|
if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
|
|
4971
4971
|
if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepsPlugin(config, bundle));
|
|
4972
4972
|
if (dts) {
|
|
4973
|
-
const { dts: dtsPlugin } = await import("./dist-
|
|
4973
|
+
const { dts: dtsPlugin } = await import("./dist-DpEByBn7.js");
|
|
4974
4974
|
const { cjsReexport: _, ...dtsPluginOptions } = dts;
|
|
4975
4975
|
const options = {
|
|
4976
4976
|
tsconfig,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as toArray, w as resolveComma } from "./main-
|
|
1
|
+
import { D as toArray, w as resolveComma } from "./main-wrcIC7dd.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.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
3
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/debug-BmAPbhgA.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.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/detect-h8ZFBH96.mjs
|
|
5
5
|
const AGENTS = [
|
|
6
6
|
"npm",
|
|
7
7
|
"yarn",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as __exportAll, r as __toESM, t as __commonJSMin } from "./chunk-CSNpwdVU.js";
|
|
2
2
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
3
|
-
import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio-
|
|
3
|
+
import { a as RE_JSON, c as RE_TS, d as filename_js_to_dts, f as filename_to_dts, i as RE_JS, l as RE_VUE, m as resolveTemplateFn, n as RE_DTS, o as RE_NODE_MODULES, p as replaceTemplateName, r as RE_DTS_MAP, s as RE_ROLLDOWN_RUNTIME, t as RE_CSS, u as filename_dts_to } from "./filename-DQnUJlio-D58wGDtS.js";
|
|
4
4
|
import { n as pe, t as Ge } from "./dist-CxeZzY9B.js";
|
|
5
|
-
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-
|
|
5
|
+
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-Dban9z4Z.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { fork, spawn } from "node:child_process";
|
|
@@ -31216,7 +31216,7 @@ function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental
|
|
|
31216
31216
|
on: (fn) => childProcess.on("message", fn)
|
|
31217
31217
|
});
|
|
31218
31218
|
} else {
|
|
31219
|
-
tscModule = await import("./tsc-
|
|
31219
|
+
tscModule = await import("./tsc-DzHkiQui.js");
|
|
31220
31220
|
if (newContext) tscContext = createContext();
|
|
31221
31221
|
}
|
|
31222
31222
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
2
2
|
import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_a1b917fb2cc1517960b8c67ff7a07c16/node_modules/rolldown-plugin-dts/dist/filename-DQnUJlio.mjs
|
|
4
4
|
const RE_JS = /\.([cm]?)jsx?$/;
|
|
5
5
|
const RE_TS = /\.([cm]?)tsx?$/;
|
|
6
6
|
const RE_DTS = /\.d\.([cm]?)ts$/;
|
|
@@ -4,7 +4,7 @@ import { IsolatedDeclarationsOptions } from "@voidzero-dev/vite-plus-core/rolldo
|
|
|
4
4
|
|
|
5
5
|
//#region \0rolldown/runtime.js
|
|
6
6
|
//#endregion
|
|
7
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
7
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/logger-DLaktdLm.d.mts
|
|
8
8
|
//#region src/utils/types.d.ts
|
|
9
9
|
type Overwrite<T, U> = Omit<T, keyof U> & U;
|
|
10
10
|
type Awaitable<T> = T | Promise<T>;
|
|
@@ -8476,6 +8476,165 @@ interface GlobDependency {
|
|
|
8476
8476
|
glob: string;
|
|
8477
8477
|
}
|
|
8478
8478
|
//#endregion
|
|
8479
|
+
//#region ../../node_modules/.pnpm/@tsdown+css@0.21.7_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._97ab2205292bbf461c73b19c3ab34649/node_modules/@tsdown/css/dist/index.d.mts
|
|
8480
|
+
//#region src/options.d.ts
|
|
8481
|
+
type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
|
|
8482
|
+
interface CSSModulesOptions {
|
|
8483
|
+
/**
|
|
8484
|
+
* Controls the scoping behavior.
|
|
8485
|
+
* @default 'local'
|
|
8486
|
+
*/
|
|
8487
|
+
scopeBehaviour?: "global" | "local";
|
|
8488
|
+
/**
|
|
8489
|
+
* File paths matching these patterns will use global scoping.
|
|
8490
|
+
*/
|
|
8491
|
+
globalModulePaths?: RegExp[];
|
|
8492
|
+
/**
|
|
8493
|
+
* Pattern or function to generate scoped class names.
|
|
8494
|
+
* When using `transformer: 'lightningcss'`, only string patterns are supported.
|
|
8495
|
+
*/
|
|
8496
|
+
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
|
8497
|
+
/**
|
|
8498
|
+
* Prefix added to hashes when generating scoped names.
|
|
8499
|
+
*/
|
|
8500
|
+
hashPrefix?: string;
|
|
8501
|
+
/**
|
|
8502
|
+
* Transform convention for exported class names.
|
|
8503
|
+
*/
|
|
8504
|
+
localsConvention?: "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly";
|
|
8505
|
+
/**
|
|
8506
|
+
* Whether to include global class names in the export.
|
|
8507
|
+
*/
|
|
8508
|
+
exportGlobals?: boolean;
|
|
8509
|
+
/**
|
|
8510
|
+
* Callback to receive the generated class name mappings.
|
|
8511
|
+
*/
|
|
8512
|
+
getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
|
|
8513
|
+
}
|
|
8514
|
+
interface CssOptions {
|
|
8515
|
+
/**
|
|
8516
|
+
* Enable/disable CSS code splitting.
|
|
8517
|
+
* When set to `false`, all CSS in the entire project will be extracted into a single CSS file named by {@link fileName}.
|
|
8518
|
+
* When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
|
|
8519
|
+
*
|
|
8520
|
+
* Defaults to `false`, but if `unbundle` is `true`, it defaults to `true` to preserve chunk splitting.
|
|
8521
|
+
*/
|
|
8522
|
+
splitting?: boolean;
|
|
8523
|
+
/**
|
|
8524
|
+
* Specify the name of the CSS file generated when `splitting` is `false`.
|
|
8525
|
+
* @default 'style.css'
|
|
8526
|
+
*/
|
|
8527
|
+
fileName?: string;
|
|
8528
|
+
/**
|
|
8529
|
+
* Set the target environment for CSS syntax lowering.
|
|
8530
|
+
* Accepts esbuild-style target strings (e.g., `'chrome99'`, `'safari16.2'`).
|
|
8531
|
+
* Defaults to the top-level `target` option.
|
|
8532
|
+
*
|
|
8533
|
+
* @see https://vite.dev/config/build-options#build-csstarget
|
|
8534
|
+
*/
|
|
8535
|
+
target?: string | string[] | false;
|
|
8536
|
+
/**
|
|
8537
|
+
* Options for CSS preprocessors (Sass/Less/Stylus).
|
|
8538
|
+
*
|
|
8539
|
+
* In addition to options specific to each processor, `additionalData` option
|
|
8540
|
+
* can be used to inject extra code for each style content.
|
|
8541
|
+
*/
|
|
8542
|
+
preprocessorOptions?: PreprocessorOptions;
|
|
8543
|
+
/**
|
|
8544
|
+
* Enable/disable CSS minification.
|
|
8545
|
+
*
|
|
8546
|
+
* @default false
|
|
8547
|
+
*/
|
|
8548
|
+
minify?: boolean;
|
|
8549
|
+
/**
|
|
8550
|
+
* Lightning CSS options for CSS syntax lowering and transformations.
|
|
8551
|
+
*/
|
|
8552
|
+
lightningcss?: LightningCSSOptions;
|
|
8553
|
+
/**
|
|
8554
|
+
* PostCSS configuration.
|
|
8555
|
+
*
|
|
8556
|
+
* - `string`: Path to the directory to search for PostCSS config files.
|
|
8557
|
+
* - `object`: Inline PostCSS options with optional `plugins` array.
|
|
8558
|
+
* - Omitted: Auto-detect PostCSS config from the project root.
|
|
8559
|
+
*
|
|
8560
|
+
* Only used when `transformer` is `'postcss'`.
|
|
8561
|
+
* Requires `postcss` to be installed.
|
|
8562
|
+
*
|
|
8563
|
+
* @see https://github.com/postcss/postcss
|
|
8564
|
+
*/
|
|
8565
|
+
postcss?: PostCSSOptions;
|
|
8566
|
+
/**
|
|
8567
|
+
* When enabled, JS output preserves import statements pointing to emitted CSS files.
|
|
8568
|
+
* Consumers of the library will automatically import the CSS alongside the JS.
|
|
8569
|
+
*
|
|
8570
|
+
* @default false
|
|
8571
|
+
*/
|
|
8572
|
+
inject?: boolean;
|
|
8573
|
+
/**
|
|
8574
|
+
* CSS modules configuration.
|
|
8575
|
+
* When not `false`, `.module.css` files (and preprocessor variants) are
|
|
8576
|
+
* treated as CSS modules with scoped class names.
|
|
8577
|
+
*
|
|
8578
|
+
* @see https://github.com/css-modules/css-modules
|
|
8579
|
+
*/
|
|
8580
|
+
modules?: CSSModulesOptions | false;
|
|
8581
|
+
/**
|
|
8582
|
+
* CSS transformer to use. Controls how CSS is processed:
|
|
8583
|
+
*
|
|
8584
|
+
* - `'lightningcss'` (default): `@import` handled by Lightning CSS
|
|
8585
|
+
* `bundleAsync()`, PostCSS is **not** used at all.
|
|
8586
|
+
* - `'postcss'`: `@import` handled by `postcss-import`,
|
|
8587
|
+
* PostCSS plugins applied, Lightning CSS used only for final
|
|
8588
|
+
* targets/minify transform.
|
|
8589
|
+
*
|
|
8590
|
+
* @default 'lightningcss'
|
|
8591
|
+
* @see https://vite.dev/config/shared-options#css-transformer
|
|
8592
|
+
*/
|
|
8593
|
+
transformer?: "postcss" | "lightningcss";
|
|
8594
|
+
}
|
|
8595
|
+
type PostCSSOptions = string | (Record<string, any> & {
|
|
8596
|
+
plugins?: any[];
|
|
8597
|
+
});
|
|
8598
|
+
interface PreprocessorOptions {
|
|
8599
|
+
scss?: SassPreprocessorOptions;
|
|
8600
|
+
sass?: SassPreprocessorOptions;
|
|
8601
|
+
less?: LessPreprocessorOptions;
|
|
8602
|
+
styl?: StylusPreprocessorOptions;
|
|
8603
|
+
stylus?: StylusPreprocessorOptions;
|
|
8604
|
+
}
|
|
8605
|
+
type PreprocessorAdditionalDataResult = string | {
|
|
8606
|
+
content: string;
|
|
8607
|
+
map?: any;
|
|
8608
|
+
};
|
|
8609
|
+
type PreprocessorAdditionalData = string | ((source: string, filename: string) => PreprocessorAdditionalDataResult | Promise<PreprocessorAdditionalDataResult>);
|
|
8610
|
+
interface SassPreprocessorOptions {
|
|
8611
|
+
additionalData?: PreprocessorAdditionalData;
|
|
8612
|
+
[key: string]: any;
|
|
8613
|
+
}
|
|
8614
|
+
interface LessPreprocessorOptions {
|
|
8615
|
+
additionalData?: PreprocessorAdditionalData;
|
|
8616
|
+
math?: any;
|
|
8617
|
+
paths?: string[];
|
|
8618
|
+
plugins?: any[];
|
|
8619
|
+
[key: string]: any;
|
|
8620
|
+
}
|
|
8621
|
+
interface StylusPreprocessorOptions {
|
|
8622
|
+
additionalData?: PreprocessorAdditionalData;
|
|
8623
|
+
define?: Record<string, any>;
|
|
8624
|
+
paths?: string[];
|
|
8625
|
+
[key: string]: any;
|
|
8626
|
+
}
|
|
8627
|
+
//#endregion
|
|
8628
|
+
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.13_@pnpm+logger@1001.0.1_typescript@6.0.2_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
8629
|
+
//#region src/node/cli-commands.d.ts
|
|
8630
|
+
interface StartOptions {
|
|
8631
|
+
root?: string;
|
|
8632
|
+
config?: string;
|
|
8633
|
+
host: string;
|
|
8634
|
+
port?: string | number;
|
|
8635
|
+
open?: boolean;
|
|
8636
|
+
}
|
|
8637
|
+
//#endregion
|
|
8479
8638
|
//#region ../../node_modules/.pnpm/@tsdown+exe@0.21.7_tsdown@0.21.7/node_modules/@tsdown/exe/dist/index.d.mts
|
|
8480
8639
|
//#region src/platform.d.ts
|
|
8481
8640
|
type ExePlatform = "win" | "darwin" | "linux";
|
|
@@ -20737,192 +20896,7 @@ type TsConfigJson = {
|
|
|
20737
20896
|
references?: TsConfigJson.References[];
|
|
20738
20897
|
};
|
|
20739
20898
|
//#endregion
|
|
20740
|
-
//#region ../../node_modules/.pnpm/
|
|
20741
|
-
/**
|
|
20742
|
-
* Array, or not yet
|
|
20743
|
-
*/
|
|
20744
|
-
type Arrayable<T> = T | Array<T>;
|
|
20745
|
-
type StringOrRegExp = string | RegExp;
|
|
20746
|
-
type FilterPattern = Arrayable<StringOrRegExp>;
|
|
20747
|
-
//#endregion
|
|
20748
|
-
//#region ../../node_modules/.pnpm/unplugin-unused@0.5.6/node_modules/unplugin-unused/dist/options-CGknhUOq.d.mts
|
|
20749
|
-
//#region src/core/options.d.ts
|
|
20750
|
-
type DepKind = "dependencies" | "devDependencies" | "peerDependencies";
|
|
20751
|
-
interface Options {
|
|
20752
|
-
root?: string;
|
|
20753
|
-
include?: FilterPattern;
|
|
20754
|
-
exclude?: FilterPattern;
|
|
20755
|
-
ignore?: string[] | Partial<Record<DepKind, string[]>>;
|
|
20756
|
-
/**
|
|
20757
|
-
* @default 'warning'
|
|
20758
|
-
*/
|
|
20759
|
-
level?: "warning" | "error";
|
|
20760
|
-
/**
|
|
20761
|
-
* @default ['dependencies', 'peerDependencies']
|
|
20762
|
-
*/
|
|
20763
|
-
depKinds?: Array<DepKind>;
|
|
20764
|
-
}
|
|
20765
|
-
//#endregion
|
|
20766
|
-
//#region ../../node_modules/.pnpm/@tsdown+css@0.21.7_jiti@2.6.1_postcss-import@16.1.1_postcss@8.5.8__postcss-modules@6.0._7a7c293bbd3467c2ea19763f48e96eac/node_modules/@tsdown/css/dist/index.d.mts
|
|
20767
|
-
//#region src/options.d.ts
|
|
20768
|
-
type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
|
|
20769
|
-
interface CSSModulesOptions {
|
|
20770
|
-
/**
|
|
20771
|
-
* Controls the scoping behavior.
|
|
20772
|
-
* @default 'local'
|
|
20773
|
-
*/
|
|
20774
|
-
scopeBehaviour?: "global" | "local";
|
|
20775
|
-
/**
|
|
20776
|
-
* File paths matching these patterns will use global scoping.
|
|
20777
|
-
*/
|
|
20778
|
-
globalModulePaths?: RegExp[];
|
|
20779
|
-
/**
|
|
20780
|
-
* Pattern or function to generate scoped class names.
|
|
20781
|
-
* When using `transformer: 'lightningcss'`, only string patterns are supported.
|
|
20782
|
-
*/
|
|
20783
|
-
generateScopedName?: string | ((name: string, filename: string, css: string) => string);
|
|
20784
|
-
/**
|
|
20785
|
-
* Prefix added to hashes when generating scoped names.
|
|
20786
|
-
*/
|
|
20787
|
-
hashPrefix?: string;
|
|
20788
|
-
/**
|
|
20789
|
-
* Transform convention for exported class names.
|
|
20790
|
-
*/
|
|
20791
|
-
localsConvention?: "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly";
|
|
20792
|
-
/**
|
|
20793
|
-
* Whether to include global class names in the export.
|
|
20794
|
-
*/
|
|
20795
|
-
exportGlobals?: boolean;
|
|
20796
|
-
/**
|
|
20797
|
-
* Callback to receive the generated class name mappings.
|
|
20798
|
-
*/
|
|
20799
|
-
getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
|
|
20800
|
-
}
|
|
20801
|
-
interface CssOptions {
|
|
20802
|
-
/**
|
|
20803
|
-
* Enable/disable CSS code splitting.
|
|
20804
|
-
* When set to `false`, all CSS in the entire project will be extracted into a single CSS file named by {@link fileName}.
|
|
20805
|
-
* When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
|
|
20806
|
-
*
|
|
20807
|
-
* Defaults to `false`, but if `unbundle` is `true`, it defaults to `true` to preserve chunk splitting.
|
|
20808
|
-
*/
|
|
20809
|
-
splitting?: boolean;
|
|
20810
|
-
/**
|
|
20811
|
-
* Specify the name of the CSS file generated when `splitting` is `false`.
|
|
20812
|
-
* @default 'style.css'
|
|
20813
|
-
*/
|
|
20814
|
-
fileName?: string;
|
|
20815
|
-
/**
|
|
20816
|
-
* Set the target environment for CSS syntax lowering.
|
|
20817
|
-
* Accepts esbuild-style target strings (e.g., `'chrome99'`, `'safari16.2'`).
|
|
20818
|
-
* Defaults to the top-level `target` option.
|
|
20819
|
-
*
|
|
20820
|
-
* @see https://vite.dev/config/build-options#build-csstarget
|
|
20821
|
-
*/
|
|
20822
|
-
target?: string | string[] | false;
|
|
20823
|
-
/**
|
|
20824
|
-
* Options for CSS preprocessors (Sass/Less/Stylus).
|
|
20825
|
-
*
|
|
20826
|
-
* In addition to options specific to each processor, `additionalData` option
|
|
20827
|
-
* can be used to inject extra code for each style content.
|
|
20828
|
-
*/
|
|
20829
|
-
preprocessorOptions?: PreprocessorOptions;
|
|
20830
|
-
/**
|
|
20831
|
-
* Enable/disable CSS minification.
|
|
20832
|
-
*
|
|
20833
|
-
* @default false
|
|
20834
|
-
*/
|
|
20835
|
-
minify?: boolean;
|
|
20836
|
-
/**
|
|
20837
|
-
* Lightning CSS options for CSS syntax lowering and transformations.
|
|
20838
|
-
*/
|
|
20839
|
-
lightningcss?: LightningCSSOptions;
|
|
20840
|
-
/**
|
|
20841
|
-
* PostCSS configuration.
|
|
20842
|
-
*
|
|
20843
|
-
* - `string`: Path to the directory to search for PostCSS config files.
|
|
20844
|
-
* - `object`: Inline PostCSS options with optional `plugins` array.
|
|
20845
|
-
* - Omitted: Auto-detect PostCSS config from the project root.
|
|
20846
|
-
*
|
|
20847
|
-
* Only used when `transformer` is `'postcss'`.
|
|
20848
|
-
* Requires `postcss` to be installed.
|
|
20849
|
-
*
|
|
20850
|
-
* @see https://github.com/postcss/postcss
|
|
20851
|
-
*/
|
|
20852
|
-
postcss?: PostCSSOptions;
|
|
20853
|
-
/**
|
|
20854
|
-
* When enabled, JS output preserves import statements pointing to emitted CSS files.
|
|
20855
|
-
* Consumers of the library will automatically import the CSS alongside the JS.
|
|
20856
|
-
*
|
|
20857
|
-
* @default false
|
|
20858
|
-
*/
|
|
20859
|
-
inject?: boolean;
|
|
20860
|
-
/**
|
|
20861
|
-
* CSS modules configuration.
|
|
20862
|
-
* When not `false`, `.module.css` files (and preprocessor variants) are
|
|
20863
|
-
* treated as CSS modules with scoped class names.
|
|
20864
|
-
*
|
|
20865
|
-
* @see https://github.com/css-modules/css-modules
|
|
20866
|
-
*/
|
|
20867
|
-
modules?: CSSModulesOptions | false;
|
|
20868
|
-
/**
|
|
20869
|
-
* CSS transformer to use. Controls how CSS is processed:
|
|
20870
|
-
*
|
|
20871
|
-
* - `'lightningcss'` (default): `@import` handled by Lightning CSS
|
|
20872
|
-
* `bundleAsync()`, PostCSS is **not** used at all.
|
|
20873
|
-
* - `'postcss'`: `@import` handled by `postcss-import`,
|
|
20874
|
-
* PostCSS plugins applied, Lightning CSS used only for final
|
|
20875
|
-
* targets/minify transform.
|
|
20876
|
-
*
|
|
20877
|
-
* @default 'lightningcss'
|
|
20878
|
-
* @see https://vite.dev/config/shared-options#css-transformer
|
|
20879
|
-
*/
|
|
20880
|
-
transformer?: "postcss" | "lightningcss";
|
|
20881
|
-
}
|
|
20882
|
-
type PostCSSOptions = string | (Record<string, any> & {
|
|
20883
|
-
plugins?: any[];
|
|
20884
|
-
});
|
|
20885
|
-
interface PreprocessorOptions {
|
|
20886
|
-
scss?: SassPreprocessorOptions;
|
|
20887
|
-
sass?: SassPreprocessorOptions;
|
|
20888
|
-
less?: LessPreprocessorOptions;
|
|
20889
|
-
styl?: StylusPreprocessorOptions;
|
|
20890
|
-
stylus?: StylusPreprocessorOptions;
|
|
20891
|
-
}
|
|
20892
|
-
type PreprocessorAdditionalDataResult = string | {
|
|
20893
|
-
content: string;
|
|
20894
|
-
map?: any;
|
|
20895
|
-
};
|
|
20896
|
-
type PreprocessorAdditionalData = string | ((source: string, filename: string) => PreprocessorAdditionalDataResult | Promise<PreprocessorAdditionalDataResult>);
|
|
20897
|
-
interface SassPreprocessorOptions {
|
|
20898
|
-
additionalData?: PreprocessorAdditionalData;
|
|
20899
|
-
[key: string]: any;
|
|
20900
|
-
}
|
|
20901
|
-
interface LessPreprocessorOptions {
|
|
20902
|
-
additionalData?: PreprocessorAdditionalData;
|
|
20903
|
-
math?: any;
|
|
20904
|
-
paths?: string[];
|
|
20905
|
-
plugins?: any[];
|
|
20906
|
-
[key: string]: any;
|
|
20907
|
-
}
|
|
20908
|
-
interface StylusPreprocessorOptions {
|
|
20909
|
-
additionalData?: PreprocessorAdditionalData;
|
|
20910
|
-
define?: Record<string, any>;
|
|
20911
|
-
paths?: string[];
|
|
20912
|
-
[key: string]: any;
|
|
20913
|
-
}
|
|
20914
|
-
//#endregion
|
|
20915
|
-
//#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.13_@pnpm+logger@1001.0.1_typescript@5.9.3_vite@packages+core/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
|
|
20916
|
-
//#region src/node/cli-commands.d.ts
|
|
20917
|
-
interface StartOptions {
|
|
20918
|
-
root?: string;
|
|
20919
|
-
config?: string;
|
|
20920
|
-
host: string;
|
|
20921
|
-
port?: string | number;
|
|
20922
|
-
open?: boolean;
|
|
20923
|
-
}
|
|
20924
|
-
//#endregion
|
|
20925
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_c04da8307f1378ebab12d63d21f95af6/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
20899
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_a1b917fb2cc1517960b8c67ff7a07c16/node_modules/rolldown-plugin-dts/dist/index.d.mts
|
|
20926
20900
|
//#region src/options.d.ts
|
|
20927
20901
|
interface GeneralOptions {
|
|
20928
20902
|
/**
|
|
@@ -21122,7 +21096,33 @@ interface TsgoOptions {
|
|
|
21122
21096
|
path?: string;
|
|
21123
21097
|
}
|
|
21124
21098
|
//#endregion
|
|
21125
|
-
//#region ../../node_modules/.pnpm/
|
|
21099
|
+
//#region ../../node_modules/.pnpm/unplugin@2.3.11/node_modules/unplugin/dist/index.d.ts
|
|
21100
|
+
/**
|
|
21101
|
+
* Array, or not yet
|
|
21102
|
+
*/
|
|
21103
|
+
type Arrayable<T> = T | Array<T>;
|
|
21104
|
+
type StringOrRegExp = string | RegExp;
|
|
21105
|
+
type FilterPattern = Arrayable<StringOrRegExp>;
|
|
21106
|
+
//#endregion
|
|
21107
|
+
//#region ../../node_modules/.pnpm/unplugin-unused@0.5.6/node_modules/unplugin-unused/dist/options-CGknhUOq.d.mts
|
|
21108
|
+
//#region src/core/options.d.ts
|
|
21109
|
+
type DepKind = "dependencies" | "devDependencies" | "peerDependencies";
|
|
21110
|
+
interface Options {
|
|
21111
|
+
root?: string;
|
|
21112
|
+
include?: FilterPattern;
|
|
21113
|
+
exclude?: FilterPattern;
|
|
21114
|
+
ignore?: string[] | Partial<Record<DepKind, string[]>>;
|
|
21115
|
+
/**
|
|
21116
|
+
* @default 'warning'
|
|
21117
|
+
*/
|
|
21118
|
+
level?: "warning" | "error";
|
|
21119
|
+
/**
|
|
21120
|
+
* @default ['dependencies', 'peerDependencies']
|
|
21121
|
+
*/
|
|
21122
|
+
depKinds?: Array<DepKind>;
|
|
21123
|
+
}
|
|
21124
|
+
//#endregion
|
|
21125
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/types-DD-uKQPn.d.mts
|
|
21126
21126
|
//#region src/features/copy.d.ts
|
|
21127
21127
|
interface CopyEntry {
|
|
21128
21128
|
/**
|
|
@@ -22283,7 +22283,7 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
|
|
|
22283
22283
|
exe: false | ExeOptions;
|
|
22284
22284
|
}>; //#endregion
|
|
22285
22285
|
//#endregion
|
|
22286
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
22286
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/config-BJiwtsMo.d.mts
|
|
22287
22287
|
//#region src/config/options.d.ts
|
|
22288
22288
|
/**
|
|
22289
22289
|
* Resolve user config into resolved configs
|
|
@@ -22303,7 +22303,7 @@ declare function defineConfig(options: UserConfig[]): UserConfig[];
|
|
|
22303
22303
|
declare function defineConfig(options: UserConfigFn): UserConfigFn;
|
|
22304
22304
|
declare function defineConfig(options: UserConfigExport): UserConfigExport; //#endregion
|
|
22305
22305
|
//#endregion
|
|
22306
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
22306
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/index.d.mts
|
|
22307
22307
|
//#region src/build.d.ts
|
|
22308
22308
|
/**
|
|
22309
22309
|
* Build with tsdown.
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import { t as enableDebug } from "./debug-BmAPbhgA-
|
|
3
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-DU-BFLB1-
|
|
1
|
+
import { c as globalLogger } from "./main-wrcIC7dd.js";
|
|
2
|
+
import { t as enableDebug } from "./debug-BmAPbhgA-CHpocWMm.js";
|
|
3
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-DU-BFLB1-Bi4na2OW.js";
|
|
4
4
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/config.mjs
|
|
6
6
|
function defineConfig(options) {
|
|
7
7
|
return options;
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@ import readline from "node:readline";
|
|
|
5
5
|
import { spawn } from "node:child_process";
|
|
6
6
|
import { delimiter, dirname, normalize, resolve } from "node:path";
|
|
7
7
|
import { PassThrough } from "node:stream";
|
|
8
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
8
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/general-D3muxt2f.mjs
|
|
9
9
|
const picomatch = createRequire(import.meta.url)("picomatch");
|
|
10
10
|
function toArray(val, defaultValue) {
|
|
11
11
|
if (Array.isArray(val)) return val;
|
|
@@ -169,7 +169,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
|
|
|
169
169
|
module.exports = w, w.default = w;
|
|
170
170
|
})))(), 1)).default;
|
|
171
171
|
//#endregion
|
|
172
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
172
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
|
|
173
173
|
const LogLevels = {
|
|
174
174
|
silent: 0,
|
|
175
175
|
error: 1,
|
|
@@ -293,7 +293,7 @@ function hue2rgb(p, q, t) {
|
|
|
293
293
|
return p;
|
|
294
294
|
}
|
|
295
295
|
//#endregion
|
|
296
|
-
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@
|
|
296
|
+
//#region ../../node_modules/.pnpm/tsdown@0.21.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.21.7_@tsdown+exe@0.21.7_@type_8e1769edffc9fa38659393584fb9975c/node_modules/tsdown/dist/package-CBgnLfjl.mjs
|
|
297
297
|
var version = "0.21.7";
|
|
298
298
|
//#endregion
|
|
299
299
|
//#region ../../node_modules/.pnpm/tinyexec@1.0.4/node_modules/tinyexec/dist/main.mjs
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as yellow, c as globalLogger, m as hex, r as version, t as R, u as blue } from "./main-
|
|
3
|
-
import { t as enableDebug } from "./debug-BmAPbhgA-
|
|
2
|
+
import { _ as yellow, c as globalLogger, m as hex, r as version, t as R, u as blue } from "./main-wrcIC7dd.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-BmAPbhgA-CHpocWMm.js";
|
|
4
4
|
import module, { createRequire } from "node:module";
|
|
5
5
|
import process$1 from "node:process";
|
|
6
6
|
import { VERSION } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
@@ -630,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
630
630
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate export-related metadata for package.json (experimental)").action(async (input, flags) => {
|
|
631
631
|
globalLogger.level = flags.logLevel || "info";
|
|
632
632
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-DU-BFLB1-
|
|
633
|
+
const { build } = await import("./build-DU-BFLB1-DJDsfG2I.js").then((n) => n.r);
|
|
634
634
|
if (input.length > 0) flags.entry = input;
|
|
635
635
|
await build(flags);
|
|
636
636
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
2
|
-
import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-
|
|
3
|
-
import { n as globalContext } from "./tsc-context-
|
|
2
|
+
import { n as RE_DTS, r as RE_DTS_MAP } from "./filename-DQnUJlio-D58wGDtS.js";
|
|
3
|
+
import { n as globalContext } from "./tsc-context-Dban9z4Z.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createDebug } from "./node-B3Gdtau1.js";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.23.2_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_a1b917fb2cc1517960b8c67ff7a07c16/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
4
4
|
const debug = createDebug("rolldown-plugin-dts:tsc-context");
|
|
5
5
|
function createContext() {
|
|
6
6
|
return {
|
package/dist/vite/client.d.ts
CHANGED
|
@@ -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.5";
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
78
78
|
const ROLLUP_HOOKS = [
|