@voidzero-dev/vite-plus-core 0.1.21-alpha.3 → 0.1.21-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/LICENSE +0 -29
- package/dist/rolldown/cli.mjs +6 -6
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/index.mjs +4 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parse-ast-index.mjs +1 -1
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{bindingify-input-options-BFomq0CL.mjs → bindingify-input-options-wZdDRbfo.mjs} +27 -5
- package/dist/rolldown/shared/{constructors-CqLClvFc.mjs → constructors-D6i2Tbyl.mjs} +1 -1
- package/dist/rolldown/shared/define-config-5HJ1b9vG.d.mts +2 -2
- package/dist/rolldown/shared/{error-D4ASW9r2.mjs → error-BrnLyQ-g.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-nKXo7Yxg.mjs → load-config-BZFgt8GH.mjs} +1 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-WerlQkgD.mjs → normalize-string-or-regex-dAjLOSbp.mjs} +3 -1
- package/dist/rolldown/shared/{parse-C-X7ajBy.mjs → parse-DFts7Hyl.mjs} +1 -1
- package/dist/rolldown/shared/{resolve-tsconfig-CxJB93yb.mjs → resolve-tsconfig-DCdBlPeK.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-DNviFDiu.mjs → rolldown-Cs2eRf4R.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-DdPwBoAu.mjs → rolldown-build-CNhzgsn2.mjs} +6 -4
- package/dist/rolldown/shared/{watch-BWGrirtv.mjs → watch-De_8Tgeq.mjs} +4 -4
- package/dist/rolldown/utils-index.mjs +2 -2
- package/dist/tsdown/{build-CgGnBlCD-CmgnJdWt.js → build-5FURNVr0-BYnPlyxS.js} +88 -71
- package/dist/tsdown/{debug-CLlnG64L-Bga2f95T.js → debug-CLlnG64L-DgUic6dq.js} +2 -2
- package/dist/tsdown/{detect-DN3DXXYt-CQvReX03.js → detect-DN3DXXYt-C8fBJ-Pz.js} +1 -1
- package/dist/tsdown/dist-Cv2Z0Bi_.js +1012 -0
- package/dist/tsdown/{dist-dEREUhS4.js → dist-DTzJRoOQ.js} +4898 -4741
- package/dist/tsdown/{filename-DQnUJlio-CkHYanGh.js → filename-DQnUJlio-D7-CzKqs.js} +1 -1
- package/dist/tsdown/index-types.d.ts +259 -92
- package/dist/tsdown/index.js +4 -4
- package/dist/tsdown/{main-BQC8aVfq.js → main-D7FQqhAT.js} +4 -4
- package/dist/tsdown/npm_cjs_chunk_range.cjs +20 -7
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +15 -15
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
- package/dist/tsdown/run.js +7 -7
- package/dist/tsdown/{tsc-ILrjzsA_.js → tsc-Dr9kCkDm.js} +2 -2
- package/dist/tsdown/{tsc-context-BBIdwth6.js → tsc-context-CANQEB9U.js} +1 -1
- package/dist/vite/client/client.mjs +7 -7
- package/dist/vite/node/chunks/build.js +19 -19
- package/dist/vite/node/chunks/logger.js +1 -1
- package/dist/vite/node/chunks/node.js +75 -49
- package/dist/vite/node/chunks/postcss-import.js +10 -10
- package/dist/vite/node/index.d.ts +2 -2
- package/dist/vite/node/module-runner.js +14 -3
- package/package.json +19 -15
- package/dist/tsdown/dist-DJhmrSLH.js +0 -739
- package/dist/tsdown/dist-D_AJtdxQ.js +0 -848
- package/dist/tsdown/npm_cjs_chunk_lt.cjs +0 -28
- package/dist/tsdown/npm_entry_semver_functions_lt.cjs +0 -4
- /package/dist/rolldown/shared/{binding-Cf9ARhL0.mjs → binding-ESkOU1xr.mjs} +0 -0
package/dist/tsdown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as globalLogger } from "./main-
|
|
2
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
3
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-
|
|
1
|
+
import { c as globalLogger } from "./main-D7FQqhAT.js";
|
|
2
|
+
import { t as enableDebug } from "./debug-CLlnG64L-DgUic6dq.js";
|
|
3
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-5FURNVr0-BYnPlyxS.js";
|
|
4
4
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
5
|
-
//#region ../../node_modules/.pnpm/tsdown@0.
|
|
5
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_65ddfddc5f00cd757c3739c1cdd4e920/node_modules/tsdown/dist/config.mjs
|
|
6
6
|
function defineConfig(options) {
|
|
7
7
|
return options;
|
|
8
8
|
}
|
|
@@ -6,7 +6,7 @@ import { spawn } from "node:child_process";
|
|
|
6
6
|
import { delimiter, dirname, resolve } from "node:path";
|
|
7
7
|
import { pipeline } from "node:stream/promises";
|
|
8
8
|
import { PassThrough } from "node:stream";
|
|
9
|
-
//#region ../../node_modules/.pnpm/tsdown@0.
|
|
9
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_65ddfddc5f00cd757c3739c1cdd4e920/node_modules/tsdown/dist/general-D3muxt2f.mjs
|
|
10
10
|
const picomatch = createRequire(import.meta.url)("picomatch");
|
|
11
11
|
function toArray(val, defaultValue) {
|
|
12
12
|
if (Array.isArray(val)) return val;
|
|
@@ -170,7 +170,7 @@ const { Ansis, fg, bg, rgb, bgRgb, hex, bgHex, reset, inverse, hidden, visible,
|
|
|
170
170
|
module.exports = w, w.default = w;
|
|
171
171
|
})))(), 1)).default;
|
|
172
172
|
//#endregion
|
|
173
|
-
//#region ../../node_modules/.pnpm/tsdown@0.
|
|
173
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_65ddfddc5f00cd757c3739c1cdd4e920/node_modules/tsdown/dist/logger-uV8l1UFa.mjs
|
|
174
174
|
const LogLevels = {
|
|
175
175
|
silent: 0,
|
|
176
176
|
error: 1,
|
|
@@ -294,8 +294,8 @@ function hue2rgb(p, q, t) {
|
|
|
294
294
|
return p;
|
|
295
295
|
}
|
|
296
296
|
//#endregion
|
|
297
|
-
//#region ../../node_modules/.pnpm/tsdown@0.
|
|
298
|
-
var version = "0.
|
|
297
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_65ddfddc5f00cd757c3739c1cdd4e920/node_modules/tsdown/dist/package-Dzmmm_a2.mjs
|
|
298
|
+
var version = "0.22.0";
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region ../../node_modules/.pnpm/tinyexec@1.1.2/node_modules/tinyexec/dist/main.mjs
|
|
301
301
|
var u = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
const require_lt$1 = require("./npm_cjs_chunk_lt.cjs");
|
|
4
3
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/lrucache.js
|
|
5
4
|
var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
6
5
|
var LRUCache = class {
|
|
@@ -34,37 +33,51 @@ var require_lrucache = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, mo
|
|
|
34
33
|
module.exports = LRUCache;
|
|
35
34
|
}));
|
|
36
35
|
//#endregion
|
|
36
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/compare.js
|
|
37
|
+
var require_compare = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
38
|
+
const SemVer = require_semver$1.require_semver();
|
|
39
|
+
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
40
|
+
module.exports = compare;
|
|
41
|
+
}));
|
|
42
|
+
//#endregion
|
|
37
43
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/eq.js
|
|
38
44
|
var require_eq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
39
|
-
const compare =
|
|
45
|
+
const compare = require_compare();
|
|
40
46
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
41
47
|
module.exports = eq;
|
|
42
48
|
}));
|
|
43
49
|
//#endregion
|
|
44
50
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/neq.js
|
|
45
51
|
var require_neq = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
46
|
-
const compare =
|
|
52
|
+
const compare = require_compare();
|
|
47
53
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
48
54
|
module.exports = neq;
|
|
49
55
|
}));
|
|
50
56
|
//#endregion
|
|
51
57
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gt.js
|
|
52
58
|
var require_gt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
53
|
-
const compare =
|
|
59
|
+
const compare = require_compare();
|
|
54
60
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
55
61
|
module.exports = gt;
|
|
56
62
|
}));
|
|
57
63
|
//#endregion
|
|
58
64
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/gte.js
|
|
59
65
|
var require_gte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
60
|
-
const compare =
|
|
66
|
+
const compare = require_compare();
|
|
61
67
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
62
68
|
module.exports = gte;
|
|
63
69
|
}));
|
|
64
70
|
//#endregion
|
|
71
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lt.js
|
|
72
|
+
var require_lt = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
73
|
+
const compare = require_compare();
|
|
74
|
+
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
75
|
+
module.exports = lt;
|
|
76
|
+
}));
|
|
77
|
+
//#endregion
|
|
65
78
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/functions/lte.js
|
|
66
79
|
var require_lte = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
67
|
-
const compare =
|
|
80
|
+
const compare = require_compare();
|
|
68
81
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
69
82
|
module.exports = lte;
|
|
70
83
|
}));
|
|
@@ -75,7 +88,7 @@ var require_cmp = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
75
88
|
const neq = require_neq();
|
|
76
89
|
const gt = require_gt();
|
|
77
90
|
const gte = require_gte();
|
|
78
|
-
const lt = require_lt
|
|
91
|
+
const lt = require_lt();
|
|
79
92
|
const lte = require_lte();
|
|
80
93
|
const cmp = (a, op, b, loose) => {
|
|
81
94
|
switch (op) {
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/
|
|
3
|
-
var
|
|
4
|
-
|
|
2
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
3
|
+
var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
4
|
+
const looseOption = Object.freeze({ loose: true });
|
|
5
|
+
const emptyOpts = Object.freeze({});
|
|
6
|
+
const parseOptions = (options) => {
|
|
7
|
+
if (!options) return emptyOpts;
|
|
8
|
+
if (typeof options !== "object") return looseOption;
|
|
9
|
+
return options;
|
|
10
|
+
};
|
|
11
|
+
module.exports = parseOptions;
|
|
5
12
|
}));
|
|
6
13
|
//#endregion
|
|
7
14
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/constants.js
|
|
@@ -29,6 +36,11 @@ var require_constants = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, m
|
|
|
29
36
|
};
|
|
30
37
|
}));
|
|
31
38
|
//#endregion
|
|
39
|
+
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/debug.js
|
|
40
|
+
var require_debug = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
41
|
+
module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
|
|
42
|
+
}));
|
|
43
|
+
//#endregion
|
|
32
44
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/re.js
|
|
33
45
|
var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
34
46
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
@@ -108,18 +120,6 @@ var require_re = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module)
|
|
|
108
120
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
109
121
|
}));
|
|
110
122
|
//#endregion
|
|
111
|
-
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/parse-options.js
|
|
112
|
-
var require_parse_options = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
113
|
-
const looseOption = Object.freeze({ loose: true });
|
|
114
|
-
const emptyOpts = Object.freeze({});
|
|
115
|
-
const parseOptions = (options) => {
|
|
116
|
-
if (!options) return emptyOpts;
|
|
117
|
-
if (typeof options !== "object") return looseOption;
|
|
118
|
-
return options;
|
|
119
|
-
};
|
|
120
|
-
module.exports = parseOptions;
|
|
121
|
-
}));
|
|
122
|
-
//#endregion
|
|
123
123
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/internal/identifiers.js
|
|
124
124
|
var require_identifiers = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
125
125
|
const numeric = /^[0-9]+$/;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require("./npm_cjs_chunk_chunk.cjs");
|
|
2
|
-
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
|
+
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
4
4
|
//#region ../../node_modules/.pnpm/semver@7.7.4/node_modules/semver/ranges/min-version.js
|
|
5
5
|
var require_min_version = /* @__PURE__ */ require_chunk.__commonJSMin(((exports, module) => {
|
|
6
6
|
const SemVer = require_semver$1.require_semver();
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { t as enableDebug } from "./debug-CLlnG64L-
|
|
4
|
-
import module
|
|
2
|
+
import { c as globalLogger, m as hex, n as V, r as version, u as blue } from "./main-D7FQqhAT.js";
|
|
3
|
+
import { t as enableDebug } from "./debug-CLlnG64L-DgUic6dq.js";
|
|
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";
|
|
7
7
|
//#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
|
|
@@ -621,16 +621,17 @@ var CAC = class extends EventTarget {
|
|
|
621
621
|
* @param name The program name to display in help and version message
|
|
622
622
|
*/
|
|
623
623
|
const cac = (name = "") => new CAC(name);
|
|
624
|
-
|
|
624
|
+
//#endregion
|
|
625
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.0_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.0_@tsdown+exe@0.22.0_@type_65ddfddc5f00cd757c3739c1cdd4e920/node_modules/tsdown/dist/run.mjs
|
|
625
626
|
const cli = cac("tsdown");
|
|
626
627
|
cli.help().version(version);
|
|
627
628
|
cli.command("[...files]", "Bundle files", {
|
|
628
629
|
ignoreOptionDefaultValue: true,
|
|
629
630
|
allowUnknownOptions: true
|
|
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
|
+
}).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("-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
632
|
globalLogger.level = flags.logLevel || "info";
|
|
632
633
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-
|
|
634
|
+
const { build } = await import("./build-5FURNVr0-BYnPlyxS.js").then((n) => n.r).then((n) => n.r);
|
|
634
635
|
if (input.length > 0) flags.entry = input;
|
|
635
636
|
await build(flags);
|
|
636
637
|
});
|
|
@@ -662,7 +663,6 @@ async function runCLI() {
|
|
|
662
663
|
process$1.exit(1);
|
|
663
664
|
}
|
|
664
665
|
}
|
|
665
|
-
if (!process$1.versions.bun && lt(process$1.version, "22.18.0")) console.warn(yellow`[tsdown] Node.js ${process$1.version} is deprecated. Support will be removed in the next minor release. Please upgrade to Node.js v22.18.0 or later.`);
|
|
666
666
|
try {
|
|
667
667
|
module.enableCompileCache?.();
|
|
668
668
|
} catch {}
|
|
@@ -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-D7-CzKqs.js";
|
|
3
|
+
import { n as globalContext } from "./tsc-context-CANQEB9U.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.
|
|
3
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.25.0_@typescript+native-preview@7.0.0-dev.20260122.2_oxc-resolver_b3cc7660f16ac76b66135f298381de19/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 {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "@vite/env";
|
|
2
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
2
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/non-secure/index.js
|
|
3
3
|
let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
4
4
|
let nanoid = (size = 21) => {
|
|
5
5
|
let id = "";
|
|
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
|
|
|
8
8
|
return id;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
|
-
//#region \0@oxc-project+runtime@0.
|
|
11
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
|
|
12
12
|
function _typeof(o) {
|
|
13
13
|
"@babel/helpers - typeof";
|
|
14
14
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -18,7 +18,7 @@ function _typeof(o) {
|
|
|
18
18
|
}, _typeof(o);
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region \0@oxc-project+runtime@0.
|
|
21
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
|
|
22
22
|
function toPrimitive(t, r) {
|
|
23
23
|
if ("object" != _typeof(t) || !t) return t;
|
|
24
24
|
var e = t[Symbol.toPrimitive];
|
|
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
|
|
|
30
30
|
return ("string" === r ? String : Number)(t);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region \0@oxc-project+runtime@0.
|
|
33
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
|
|
34
34
|
function toPropertyKey(t) {
|
|
35
35
|
var i = toPrimitive(t, "string");
|
|
36
36
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region \0@oxc-project+runtime@0.
|
|
39
|
+
//#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
|
|
40
40
|
function _defineProperty(e, r, t) {
|
|
41
41
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
42
42
|
value: t,
|
|
@@ -398,7 +398,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
|
|
|
398
398
|
return {
|
|
399
399
|
async connect({ onMessage, onDisconnection }) {
|
|
400
400
|
const socket = options.createConnection();
|
|
401
|
-
socket.addEventListener("message",
|
|
401
|
+
socket.addEventListener("message", ({ data }) => {
|
|
402
402
|
onMessage(JSON.parse(data));
|
|
403
403
|
});
|
|
404
404
|
let isOpened = socket.readyState === socket.OPEN;
|
|
@@ -407,7 +407,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
|
|
|
407
407
|
isOpened = true;
|
|
408
408
|
resolve();
|
|
409
409
|
}, { once: true });
|
|
410
|
-
socket.addEventListener("close",
|
|
410
|
+
socket.addEventListener("close", () => {
|
|
411
411
|
if (!isOpened) {
|
|
412
412
|
reject(/* @__PURE__ */ new Error("WebSocket closed without opened."));
|
|
413
413
|
return;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as __require, t as __commonJSMin } from "./chunk.js";
|
|
2
2
|
import { t as require_lib } from "./lib.js";
|
|
3
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
3
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/fs.js
|
|
4
4
|
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getFileSystem = getFileSystem;
|
|
@@ -22,7 +22,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
25
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/unquote.js
|
|
26
26
|
var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
exports.default = unquote;
|
|
@@ -35,7 +35,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35
35
|
}
|
|
36
36
|
}));
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
38
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/replaceValueSymbols.js
|
|
39
39
|
var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
40
40
|
const matchValueName = /[$]?[\w-]+/g;
|
|
41
41
|
const replaceValueSymbols = (value, replacements) => {
|
|
@@ -52,7 +52,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
|
|
|
52
52
|
module.exports = replaceValueSymbols;
|
|
53
53
|
}));
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
55
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/replaceSymbols.js
|
|
56
56
|
var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
57
57
|
const replaceValueSymbols = require_replaceValueSymbols();
|
|
58
58
|
const replaceSymbols = (css, replacements) => {
|
|
@@ -65,7 +65,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
65
65
|
module.exports = replaceSymbols;
|
|
66
66
|
}));
|
|
67
67
|
//#endregion
|
|
68
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
68
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/extractICSS.js
|
|
69
69
|
var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
70
70
|
const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
|
|
71
71
|
const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
|
|
@@ -119,7 +119,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
119
119
|
module.exports = extractICSS;
|
|
120
120
|
}));
|
|
121
121
|
//#endregion
|
|
122
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
122
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/createICSSRules.js
|
|
123
123
|
var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
124
124
|
const createImports = (imports, postcss, mode = "rule") => {
|
|
125
125
|
return Object.keys(imports).map((path) => {
|
|
@@ -163,7 +163,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
163
163
|
module.exports = createICSSRules;
|
|
164
164
|
}));
|
|
165
165
|
//#endregion
|
|
166
|
-
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.
|
|
166
|
+
//#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/index.js
|
|
167
167
|
var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
168
168
|
module.exports = {
|
|
169
169
|
replaceValueSymbols: require_replaceValueSymbols(),
|
|
@@ -173,7 +173,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
173
173
|
};
|
|
174
174
|
}));
|
|
175
175
|
//#endregion
|
|
176
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
176
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/Parser.js
|
|
177
177
|
var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
178
178
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
179
179
|
exports.default = void 0;
|
|
@@ -241,7 +241,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
241
241
|
exports.default = Parser;
|
|
242
242
|
}));
|
|
243
243
|
//#endregion
|
|
244
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
244
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/saveJSON.js
|
|
245
245
|
var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
246
246
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
247
247
|
exports.default = saveJSON;
|
|
@@ -893,7 +893,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
893
893
|
module.exports = camelCase;
|
|
894
894
|
}));
|
|
895
895
|
//#endregion
|
|
896
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
896
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/localsConvention.js
|
|
897
897
|
var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
898
898
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
899
899
|
exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
|
|
@@ -933,7 +933,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
933
933
|
}
|
|
934
934
|
}));
|
|
935
935
|
//#endregion
|
|
936
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
936
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/FileSystemLoader.js
|
|
937
937
|
var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
938
938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
939
939
|
exports.default = void 0;
|
|
@@ -1018,7 +1018,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1018
1018
|
exports.default = FileSystemLoader;
|
|
1019
1019
|
}));
|
|
1020
1020
|
//#endregion
|
|
1021
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1021
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
|
|
1022
1022
|
var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1023
1023
|
const PERMANENT_MARKER = 2;
|
|
1024
1024
|
const TEMPORARY_MARKER = 1;
|
|
@@ -1057,7 +1057,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
1057
1057
|
module.exports = topologicalSort;
|
|
1058
1058
|
}));
|
|
1059
1059
|
//#endregion
|
|
1060
|
-
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.
|
|
1060
|
+
//#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/index.js
|
|
1061
1061
|
var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1062
1062
|
const topologicalSort = require_topologicalSort();
|
|
1063
1063
|
const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
|
|
@@ -4563,7 +4563,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4563
4563
|
module.exports = exports.default;
|
|
4564
4564
|
}));
|
|
4565
4565
|
//#endregion
|
|
4566
|
-
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.
|
|
4566
|
+
//#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.14/node_modules/postcss-modules-local-by-default/src/index.js
|
|
4567
4567
|
var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4568
4568
|
const selectorParser = require_dist();
|
|
4569
4569
|
const valueParser = require_lib();
|
|
@@ -4961,7 +4961,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4961
4961
|
module.exports.postcss = true;
|
|
4962
4962
|
}));
|
|
4963
4963
|
//#endregion
|
|
4964
|
-
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.
|
|
4964
|
+
//#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.14/node_modules/postcss-modules-scope/src/index.js
|
|
4965
4965
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4966
4966
|
const selectorParser = require_dist();
|
|
4967
4967
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
@@ -5141,7 +5141,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5141
5141
|
module.exports = hash;
|
|
5142
5142
|
}));
|
|
5143
5143
|
//#endregion
|
|
5144
|
-
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.
|
|
5144
|
+
//#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.14/node_modules/postcss-modules-values/src/index.js
|
|
5145
5145
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5146
5146
|
const ICSSUtils = require_src$4();
|
|
5147
5147
|
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
|
|
@@ -5228,7 +5228,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5228
5228
|
module.exports.postcss = true;
|
|
5229
5229
|
}));
|
|
5230
5230
|
//#endregion
|
|
5231
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5231
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/scoping.js
|
|
5232
5232
|
var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5233
5233
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5234
5234
|
exports.behaviours = void 0;
|
|
@@ -5290,7 +5290,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5290
5290
|
}
|
|
5291
5291
|
}));
|
|
5292
5292
|
//#endregion
|
|
5293
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5293
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/pluginFactory.js
|
|
5294
5294
|
var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5295
5295
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5296
5296
|
exports.makePlugin = makePlugin;
|
|
@@ -5364,7 +5364,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
}));
|
|
5366
5366
|
//#endregion
|
|
5367
|
-
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.
|
|
5367
|
+
//#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/index.js
|
|
5368
5368
|
var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5369
5369
|
var _fs = __require("fs");
|
|
5370
5370
|
var _fs2 = require_fs();
|
|
@@ -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.11";
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region ../../vite/packages/vite/src/node/constants.ts
|
|
78
78
|
const ROLLUP_HOOKS = [
|