@voidzero-dev/vite-plus-core 0.2.3 → 0.2.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/LICENSE +7 -115
- package/dist/rolldown/cli.mjs +11 -8
- package/dist/rolldown/config.d.mts +15 -2
- package/dist/rolldown/config.mjs +2 -2
- package/dist/rolldown/experimental-index.d.mts +4 -4
- package/dist/rolldown/experimental-index.mjs +8 -8
- package/dist/rolldown/filter-index.d.mts +1 -1
- package/dist/rolldown/index.d.mts +3 -3
- package/dist/rolldown/index.mjs +10 -4
- package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
- package/dist/rolldown/parallel-plugin.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.d.mts +1 -1
- package/dist/rolldown/parse-ast-index.mjs +2 -2
- package/dist/rolldown/plugins-index.d.mts +3 -3
- package/dist/rolldown/plugins-index.mjs +2 -2
- package/dist/rolldown/shared/{binding-B1q9aYT-.d.mts → binding-D26QphWG.d.mts} +12 -0
- package/dist/rolldown/shared/{binding-BmkJW3Wy.mjs → binding-TuFFIE_J.mjs} +26 -26
- package/dist/rolldown/shared/{bindingify-input-options-Cmm60vfj.mjs → bindingify-input-options-CwbcQL6W.mjs} +11 -13
- package/dist/rolldown/shared/{constructors-2i1T9YcF.d.mts → constructors-BbWPse2X.d.mts} +2 -2
- package/dist/rolldown/shared/{constructors-CE6zZSUt.mjs → constructors-D_3i7dpX.mjs} +1 -1
- package/dist/rolldown/shared/{define-config-BBz954-q.d.mts → define-config-BhJ90aEv.d.mts} +79 -2
- package/dist/rolldown/shared/dist-DX3cAjHx.mjs +154 -0
- package/dist/rolldown/shared/{error-BlQ0-ek7.mjs → error-BHRSI0R7.mjs} +1 -1
- package/dist/rolldown/shared/{load-config-CVVMWSlg.mjs → load-config-Bd7MgqCK.mjs} +19 -2
- package/dist/rolldown/shared/{logs-aMKUxRpj.mjs → logs-ZGEh6uhb.mjs} +6 -1
- package/dist/rolldown/shared/{normalize-string-or-regex-BYkbbGqQ.mjs → normalize-string-or-regex-dnh67V_w.mjs} +2 -2
- package/dist/rolldown/shared/{parse-Dphnedsw.mjs → parse-B6_waszz.mjs} +2 -2
- package/dist/rolldown/shared/{prompt-Bgj-uEyc.mjs → prompt-pZFoa1TT.mjs} +59 -17
- package/dist/rolldown/shared/{resolve-tsconfig-CdIAR1Eb.mjs → resolve-tsconfig-DxqIJB3x.mjs} +2 -2
- package/dist/rolldown/shared/{rolldown-Bnp916iM.mjs → rolldown-CACDGVWV.mjs} +1 -1
- package/dist/rolldown/shared/{rolldown-build-Cs2iVJuw.mjs → rolldown-build-BV22mk7t.mjs} +33 -13
- package/dist/rolldown/shared/{transform-CEmFsvJW.d.mts → transform-BPrUvqEZ.d.mts} +1 -1
- package/dist/rolldown/shared/{watch-ECGr-_QS.mjs → watch-CS_JygCu.mjs} +5 -5
- package/dist/rolldown/utils-index.d.mts +3 -3
- package/dist/rolldown/utils-index.mjs +8 -6
- package/dist/tsdown/{build-B_nvJe4A-CvbtVBxy.js → build-BlM3pDGJ-C8Uovnt4.js} +166 -76
- package/dist/tsdown/{debug-DLdR-9XB-DQZ6QLC0.js → debug-B1wUEHkd-DhRzGJTf.js} +21 -6
- package/dist/tsdown/{detect-B97OSl92-BJPZyIKJ.js → detect-BNXt7gkp-DKAC9Z7n.js} +7 -2
- package/dist/tsdown/dist-Pjag7IPt.js +3206 -0
- package/dist/tsdown/fs-qxJxxoCE-B_amenYz.js +46 -0
- package/dist/tsdown/{general-Cp4NiJNK-CbyrS9q1.js → general-Cp4NiJNK-xAqmPhMP.js} +1 -1
- package/dist/tsdown/index-types.d.ts +1361 -1326
- package/dist/tsdown/index.js +7 -4
- package/dist/tsdown/internal-Bn6NGoha.js +3 -0
- package/dist/tsdown/npm_cjs_chunk_range.cjs +14 -13
- package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
- package/dist/tsdown/npm_entry_picomatch.cjs +44 -15
- package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +2 -2
- package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +1 -1
- package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
- package/dist/tsdown/run.js +3 -3
- package/dist/tsdown/{src-CISfE_A0.js → src-CK50m8R_.js} +5 -5
- package/dist/tsdown/target-CqeSqtms-CIvlAiuG.js +35 -0
- package/dist/tsdown/{tsc-CdZE7QwS.js → tsc-CilQvmj4.js} +15 -7
- package/dist/tsdown/{tsc-context-CX_GXdyS.js → tsc-context-BusiAGCd.js} +6 -2
- package/dist/tsdown/tsdown-css.js +74 -23
- package/dist/tsdown/tsdown-exe.js +27 -26
- package/dist/vite/client/client.mjs +4 -4
- package/dist/vite/node/chunks/build.js +194 -84
- package/dist/vite/node/chunks/dist2.js +1 -1
- package/dist/vite/node/chunks/lib.js +1 -1
- package/dist/vite/node/chunks/node.js +484 -71
- package/dist/vite/node/chunks/postcss-import.js +1 -1
- package/dist/vite/node/cli.js +3 -4
- package/dist/vite/node/index.d.ts +3 -3
- package/dist/vite/node/index.js +1 -2
- package/package.json +18 -16
- package/dist/tsdown/dist-CZtGyfn3.js +0 -200
- package/dist/tsdown/dist-CqbVlnVq.js +0 -32057
- package/dist/tsdown/internal-bfoxcI4F.js +0 -3
- package/dist/tsdown/target-CqeSqtms-FAqYuGyB.js +0 -79
- package/dist/vite/node/chunks/logger.js +0 -361
package/dist/tsdown/index.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-
|
|
1
|
+
import { c as globalLogger, n as version$1, t as enableDebug } from "./debug-B1wUEHkd-DhRzGJTf.js";
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-BlM3pDGJ-C8Uovnt4.js";
|
|
3
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
4
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
4
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.7_@tsdown+exe@0.22.7_@type_53c241a653f2227a5df8ba2949047afe/node_modules/tsdown/dist/config.mjs
|
|
5
5
|
function defineConfig(options) {
|
|
6
6
|
return options;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
|
-
|
|
9
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.7_@tsdown+exe@0.22.7_@type_53c241a653f2227a5df8ba2949047afe/node_modules/tsdown/dist/index.mjs
|
|
10
|
+
const version = version$1;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Rolldown, build$1 as build, buildWithConfigs, defineConfig, enableDebug, globalLogger, mergeConfig, resolveUserConfig, version };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js
|
|
4
4
|
var require_lrucache = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
var LRUCache = class {
|
|
6
6
|
constructor() {
|
|
@@ -33,56 +33,56 @@ var require_lrucache = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((
|
|
|
33
33
|
module.exports = LRUCache;
|
|
34
34
|
}));
|
|
35
35
|
//#endregion
|
|
36
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
36
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js
|
|
37
37
|
var require_compare = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
38
38
|
const SemVer = require_semver$1.require_semver();
|
|
39
39
|
const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
|
40
40
|
module.exports = compare;
|
|
41
41
|
}));
|
|
42
42
|
//#endregion
|
|
43
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
43
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js
|
|
44
44
|
var require_eq = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
45
45
|
const compare = require_compare();
|
|
46
46
|
const eq = (a, b, loose) => compare(a, b, loose) === 0;
|
|
47
47
|
module.exports = eq;
|
|
48
48
|
}));
|
|
49
49
|
//#endregion
|
|
50
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
50
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js
|
|
51
51
|
var require_neq = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
52
52
|
const compare = require_compare();
|
|
53
53
|
const neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
|
54
54
|
module.exports = neq;
|
|
55
55
|
}));
|
|
56
56
|
//#endregion
|
|
57
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
57
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js
|
|
58
58
|
var require_gt = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
59
59
|
const compare = require_compare();
|
|
60
60
|
const gt = (a, b, loose) => compare(a, b, loose) > 0;
|
|
61
61
|
module.exports = gt;
|
|
62
62
|
}));
|
|
63
63
|
//#endregion
|
|
64
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
64
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js
|
|
65
65
|
var require_gte = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
66
66
|
const compare = require_compare();
|
|
67
67
|
const gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
|
68
68
|
module.exports = gte;
|
|
69
69
|
}));
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
71
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js
|
|
72
72
|
var require_lt = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
73
73
|
const compare = require_compare();
|
|
74
74
|
const lt = (a, b, loose) => compare(a, b, loose) < 0;
|
|
75
75
|
module.exports = lt;
|
|
76
76
|
}));
|
|
77
77
|
//#endregion
|
|
78
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
78
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js
|
|
79
79
|
var require_lte = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
80
80
|
const compare = require_compare();
|
|
81
81
|
const lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
|
82
82
|
module.exports = lte;
|
|
83
83
|
}));
|
|
84
84
|
//#endregion
|
|
85
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
85
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js
|
|
86
86
|
var require_cmp = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
87
87
|
const eq = require_eq();
|
|
88
88
|
const neq = require_neq();
|
|
@@ -114,7 +114,7 @@ var require_cmp = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expor
|
|
|
114
114
|
module.exports = cmp;
|
|
115
115
|
}));
|
|
116
116
|
//#endregion
|
|
117
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
117
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js
|
|
118
118
|
var require_comparator = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
119
119
|
const ANY = Symbol("SemVer ANY");
|
|
120
120
|
module.exports = class Comparator {
|
|
@@ -184,7 +184,7 @@ var require_comparator = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(
|
|
|
184
184
|
const Range = require_range();
|
|
185
185
|
}));
|
|
186
186
|
//#endregion
|
|
187
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
187
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js
|
|
188
188
|
var require_range = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
189
189
|
const SPACE_CHARACTERS = /\s+/g;
|
|
190
190
|
module.exports = class Range {
|
|
@@ -334,12 +334,13 @@ var require_range = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
334
334
|
};
|
|
335
335
|
const replaceTilde = (comp, options) => {
|
|
336
336
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
337
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
337
338
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
338
339
|
debug("tilde", comp, _, M, m, p, pr);
|
|
339
340
|
let ret;
|
|
340
341
|
if (isX(M)) ret = "";
|
|
341
|
-
else if (isX(m)) ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
342
|
-
else if (isX(p)) ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
342
|
+
else if (isX(m)) ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
343
|
+
else if (isX(p)) ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
343
344
|
else if (pr) {
|
|
344
345
|
debug("replaceTilde pr", pr);
|
|
345
346
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
2
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js
|
|
3
3
|
var require_parse_options = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
4
4
|
const looseOption = Object.freeze({ loose: true });
|
|
5
5
|
const emptyOpts = Object.freeze({});
|
|
@@ -11,7 +11,7 @@ var require_parse_options = /* @__PURE__ */ require_rolldown_runtime.__commonJSM
|
|
|
11
11
|
module.exports = parseOptions;
|
|
12
12
|
}));
|
|
13
13
|
//#endregion
|
|
14
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
14
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js
|
|
15
15
|
var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
16
16
|
const SEMVER_SPEC_VERSION = "2.0.0";
|
|
17
17
|
const MAX_LENGTH = 256;
|
|
@@ -36,12 +36,12 @@ var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin((
|
|
|
36
36
|
};
|
|
37
37
|
}));
|
|
38
38
|
//#endregion
|
|
39
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
39
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js
|
|
40
40
|
var require_debug = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
41
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
42
|
}));
|
|
43
43
|
//#endregion
|
|
44
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
44
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js
|
|
45
45
|
var require_re = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
46
46
|
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
|
|
47
47
|
const debug = require_debug();
|
|
@@ -120,7 +120,7 @@ var require_re = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((export
|
|
|
120
120
|
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
121
121
|
}));
|
|
122
122
|
//#endregion
|
|
123
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
123
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js
|
|
124
124
|
var require_identifiers = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
125
125
|
const numeric = /^[0-9]+$/;
|
|
126
126
|
const compareIdentifiers = (a, b) => {
|
|
@@ -140,7 +140,7 @@ var require_identifiers = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
|
|
|
140
140
|
};
|
|
141
141
|
}));
|
|
142
142
|
//#endregion
|
|
143
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
143
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js
|
|
144
144
|
var require_semver = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
145
145
|
const debug = require_debug();
|
|
146
146
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
2
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/constants.js
|
|
3
3
|
var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
4
4
|
const WIN_SLASH = "\\\\/";
|
|
5
5
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -168,7 +168,7 @@ var require_constants = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin((
|
|
|
168
168
|
};
|
|
169
169
|
}));
|
|
170
170
|
//#endregion
|
|
171
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
171
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/utils.js
|
|
172
172
|
var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
173
173
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
|
|
174
174
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -216,7 +216,7 @@ var require_utils = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
216
216
|
};
|
|
217
217
|
}));
|
|
218
218
|
//#endregion
|
|
219
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
219
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/scan.js
|
|
220
220
|
var require_scan = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
221
221
|
const utils = require_utils();
|
|
222
222
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
|
|
@@ -503,7 +503,7 @@ var require_scan = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((expo
|
|
|
503
503
|
module.exports = scan;
|
|
504
504
|
}));
|
|
505
505
|
//#endregion
|
|
506
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
506
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/parse.js
|
|
507
507
|
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
508
508
|
const constants = require_constants();
|
|
509
509
|
const utils = require_utils();
|
|
@@ -658,7 +658,10 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
|
-
const
|
|
661
|
+
const buildCharClassStar = (chars) => {
|
|
662
|
+
return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
|
|
663
|
+
};
|
|
664
|
+
const getStarExtglobSequenceChars = (pattern) => {
|
|
662
665
|
let index = 0;
|
|
663
666
|
const chars = [];
|
|
664
667
|
while (index < pattern.length) {
|
|
@@ -672,7 +675,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
672
675
|
index += match.end + 1;
|
|
673
676
|
}
|
|
674
677
|
if (chars.length < 1) return;
|
|
675
|
-
return
|
|
678
|
+
return chars;
|
|
676
679
|
};
|
|
677
680
|
const repeatedExtglobRecursion = (pattern) => {
|
|
678
681
|
let depth = 0;
|
|
@@ -692,14 +695,28 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
692
695
|
if (branches.length > 1) {
|
|
693
696
|
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
|
|
694
697
|
}
|
|
698
|
+
const safeChars = [];
|
|
699
|
+
let sawStarSequence = false;
|
|
700
|
+
let combinable = true;
|
|
695
701
|
for (const branch of branches) {
|
|
696
|
-
const
|
|
697
|
-
if (
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
702
|
+
const chars = getStarExtglobSequenceChars(branch);
|
|
703
|
+
if (chars) {
|
|
704
|
+
sawStarSequence = true;
|
|
705
|
+
safeChars.push(...chars);
|
|
706
|
+
continue;
|
|
707
|
+
}
|
|
708
|
+
const literal = normalizeSimpleBranch(branch);
|
|
709
|
+
if (literal && literal.length === 1) {
|
|
710
|
+
safeChars.push(literal);
|
|
711
|
+
continue;
|
|
712
|
+
}
|
|
713
|
+
combinable = false;
|
|
701
714
|
if (repeatedExtglobRecursion(branch) > max) return { risky: true };
|
|
702
715
|
}
|
|
716
|
+
if (sawStarSequence) return combinable ? {
|
|
717
|
+
risky: true,
|
|
718
|
+
safeOutput: buildCharClassStar([...new Set(safeChars)])
|
|
719
|
+
} : { risky: true };
|
|
703
720
|
return { risky: false };
|
|
704
721
|
};
|
|
705
722
|
/**
|
|
@@ -1560,7 +1577,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
1560
1577
|
module.exports = parse;
|
|
1561
1578
|
}));
|
|
1562
1579
|
//#endregion
|
|
1563
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1580
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/lib/picomatch.js
|
|
1564
1581
|
var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1565
1582
|
const scan = require_scan();
|
|
1566
1583
|
const parse = require_parse();
|
|
@@ -1581,6 +1598,18 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
|
|
|
1581
1598
|
* const isMatch = picomatch('*.!(*a)');
|
|
1582
1599
|
* console.log(isMatch('a.a')); //=> false
|
|
1583
1600
|
* console.log(isMatch('a.b')); //=> true
|
|
1601
|
+
*
|
|
1602
|
+
* // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
1603
|
+
* const picomatch = require('picomatch/posix');
|
|
1604
|
+
* // the same API, defaulting to posix paths
|
|
1605
|
+
* const isMatch = picomatch('a/*');
|
|
1606
|
+
* console.log(isMatch('a\\b')); //=> false
|
|
1607
|
+
* console.log(isMatch('a/b')); //=> true
|
|
1608
|
+
*
|
|
1609
|
+
* // you can still configure the matcher function to accept windows paths
|
|
1610
|
+
* const isMatch = picomatch('a/*', { options: windows });
|
|
1611
|
+
* console.log(isMatch('a\\b')); //=> true
|
|
1612
|
+
* console.log(isMatch('a/b')); //=> true
|
|
1584
1613
|
* ```
|
|
1585
1614
|
* @name picomatch
|
|
1586
1615
|
* @param {String|Array} `globs` One or more glob patterns.
|
|
@@ -1699,8 +1728,8 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
|
|
|
1699
1728
|
* @return {Boolean}
|
|
1700
1729
|
* @api public
|
|
1701
1730
|
*/
|
|
1702
|
-
picomatch.matchBase = (input, glob, options) => {
|
|
1703
|
-
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
|
|
1731
|
+
picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
|
|
1732
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input, { windows: posix }));
|
|
1704
1733
|
};
|
|
1705
1734
|
/**
|
|
1706
1735
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -1860,7 +1889,7 @@ var require_picomatch$1 = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin
|
|
|
1860
1889
|
module.exports = picomatch;
|
|
1861
1890
|
}));
|
|
1862
1891
|
//#endregion
|
|
1863
|
-
//#region ../../node_modules/.pnpm/picomatch@4.0.
|
|
1892
|
+
//#region ../../node_modules/.pnpm/picomatch@4.0.5/node_modules/picomatch/index.js
|
|
1864
1893
|
var require_picomatch = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
1865
1894
|
const pico = require_picomatch$1();
|
|
1866
1895
|
const utils = require_utils();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js
|
|
4
4
|
var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
const SemVer = require_semver$1.require_semver();
|
|
6
6
|
const parse = (version, options, throwErrors = false) => {
|
|
@@ -15,7 +15,7 @@ var require_parse = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exp
|
|
|
15
15
|
module.exports = parse;
|
|
16
16
|
}));
|
|
17
17
|
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
18
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js
|
|
19
19
|
var require_coerce = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
20
20
|
const SemVer = require_semver$1.require_semver();
|
|
21
21
|
const parse = require_parse();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
3
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js
|
|
4
4
|
var require_satisfies = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
5
5
|
const Range = require_range$1.require_range();
|
|
6
6
|
const satisfies = (version, range, options) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./npm_cjs_chunk_rolldown-runtime.cjs");
|
|
2
2
|
const require_range$1 = require("./npm_cjs_chunk_range.cjs");
|
|
3
3
|
const require_semver$1 = require("./npm_cjs_chunk_semver.cjs");
|
|
4
|
-
//#region ../../node_modules/.pnpm/semver@7.8.
|
|
4
|
+
//#region ../../node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js
|
|
5
5
|
var require_min_version = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
6
6
|
const SemVer = require_semver$1.require_semver();
|
|
7
7
|
const Range = require_range$1.require_range();
|
package/dist/tsdown/run.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
2
|
+
import { c as globalLogger, m as hex, n as version, t as enableDebug, u as blue } from "./debug-B1wUEHkd-DhRzGJTf.js";
|
|
3
3
|
import { t as R } from "./main-BlTcyuFi.js";
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
import process$1 from "node:process";
|
|
@@ -622,7 +622,7 @@ var CAC = class extends EventTarget {
|
|
|
622
622
|
*/
|
|
623
623
|
const cac = (name = "") => new CAC(name);
|
|
624
624
|
//#endregion
|
|
625
|
-
//#region ../../node_modules/.pnpm/tsdown@0.22.
|
|
625
|
+
//#region ../../node_modules/.pnpm/tsdown@0.22.7_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.7_@tsdown+exe@0.22.7_@type_53c241a653f2227a5df8ba2949047afe/node_modules/tsdown/dist/run.mjs
|
|
626
626
|
const cli = cac("tsdown");
|
|
627
627
|
cli.help().version(version);
|
|
628
628
|
cli.command("[...files]", "Bundle files", {
|
|
@@ -631,7 +631,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
631
631
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, tsx, unrun", { default: "auto" }).option("--no-config", "Disable config file").option("-f, --format <format>", "Bundle format: esm, cjs, iife, umd", { default: "esm" }).option("--clean", "Clean output directory, --no-clean to disable").option("--deps.never-bundle <module>", "Mark dependencies as external").option("--minify", "Minify output").option("--devtools", "Enable devtools integration").option("--debug [feat]", "Show debug logs").option("--target <target>", "Bundle target, e.g \"es2015\", \"esnext\"").option("-l, --logLevel <level>", "Set log level: info, warn, error, silent").option("--fail-on-warn", "Fail on warnings", { default: true }).option("--no-write", "Disable writing files to disk, incompatible with watch mode").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--treeshake", "Tree-shake bundle", { default: true }).option("--sourcemap", "Generate source map", { default: false }).option("--shims", "Enable cjs and esm shims ", { default: false }).option("--platform <platform>", "Target platform", { default: "node" }).option("--dts", "Generate dts files").option("--publint", "Enable publint", { default: false }).option("--attw", "Enable Are the types wrong integration", { default: false }).option("--unused", "Enable unused dependencies check", { default: false }).option("-w, --watch [path]", "Watch mode").option("--ignore-watch <path>", "Ignore custom paths in watch mode").option("--from-vite [vitest]", "Reuse config from Vite or Vitest").option("--report", "Size report", { default: true }).option("--env.* <value>", "Define compile-time env variables").option("--env-file <file>", "Load environment variables from a file, when used together with --env, variables in --env take precedence").option("--env-prefix <prefix>", "Prefix for env variables to inject into the bundle", { default: "TSDOWN_" }).option("--on-success <command>", "Command to run on success").option("--copy <dir>", "Copy files to output dir").option("--public-dir <dir>", "Alias for --copy, deprecated").option("--tsconfig <tsconfig>", "Set tsconfig path").option("--unbundle", "Unbundle mode").option("--root <dir>", "Root directory of input files").option("--exe", "Bundle as executable").option("-W, --workspace [dir]", "Enable workspace mode").option("-F, --filter <pattern>", "Filter configs (cwd or name), e.g. /pkg-name$/ or pkg-name").option("--exports", "Generate package exports for package.json").action(async (input, flags) => {
|
|
632
632
|
globalLogger.level = flags.logLevel || "info";
|
|
633
633
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
634
|
-
const { build } = await import("./build-
|
|
634
|
+
const { build } = await import("./build-BlM3pDGJ-C8Uovnt4.js").then((n) => n.r).then((n) => n.r);
|
|
635
635
|
if (input.length > 0) flags.entry = input;
|
|
636
636
|
await build(flags);
|
|
637
637
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as __commonJSMin, p as __require } from "./general-Cp4NiJNK-
|
|
1
|
+
import { d as __commonJSMin, p as __require } from "./general-Cp4NiJNK-xAqmPhMP.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/lilconfig@3.1.3/node_modules/lilconfig/src/index.js
|
|
3
3
|
var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
const path = __require("path");
|
|
@@ -345,7 +345,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
345
345
|
};
|
|
346
346
|
}));
|
|
347
347
|
//#endregion
|
|
348
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.
|
|
348
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/req.js
|
|
349
349
|
var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
350
350
|
const { createRequire } = __require("node:module");
|
|
351
351
|
const { pathToFileURL } = __require("node:url");
|
|
@@ -387,7 +387,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
387
387
|
module.exports = req;
|
|
388
388
|
}));
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.
|
|
390
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/options.js
|
|
391
391
|
var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
392
392
|
const req = require_req();
|
|
393
393
|
/**
|
|
@@ -421,7 +421,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
module.exports = options;
|
|
422
422
|
}));
|
|
423
423
|
//#endregion
|
|
424
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.
|
|
424
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/plugins.js
|
|
425
425
|
var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
426
426
|
const req = require_req();
|
|
427
427
|
/**
|
|
@@ -475,7 +475,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
475
475
|
module.exports = plugins;
|
|
476
476
|
}));
|
|
477
477
|
//#endregion
|
|
478
|
-
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.
|
|
478
|
+
//#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.7.0_postcss@8.5.16_tsx@4.23.1_yaml@2.9.0/node_modules/postcss-load-config/src/index.js
|
|
479
479
|
var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
480
480
|
const { resolve } = __require("node:path");
|
|
481
481
|
const config = require_src$1();
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { s as resolveComma, u as toArray } from "./general-Cp4NiJNK-xAqmPhMP.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
const minVersion = createRequire(import.meta.url)("./npm_entry_semver_ranges_min-version.cjs");
|
|
4
|
+
const BASELINE_WIDELY_AVAILABLE_TARGET = [
|
|
5
|
+
"chrome111",
|
|
6
|
+
"edge111",
|
|
7
|
+
"firefox114",
|
|
8
|
+
"safari16.4",
|
|
9
|
+
"ios16.4"
|
|
10
|
+
];
|
|
11
|
+
function expandBaselineTarget(targets) {
|
|
12
|
+
return targets.flatMap((t) => t === "baseline-widely-available" ? BASELINE_WIDELY_AVAILABLE_TARGET : t);
|
|
13
|
+
}
|
|
14
|
+
function resolveTarget(logger, target, color, pkg, nameLabel) {
|
|
15
|
+
if (target === false) return;
|
|
16
|
+
if (target == null) {
|
|
17
|
+
const pkgTarget = resolvePackageTarget(pkg);
|
|
18
|
+
if (pkgTarget) target = pkgTarget;
|
|
19
|
+
else return;
|
|
20
|
+
}
|
|
21
|
+
if (typeof target === "number") throw new TypeError(`Invalid target: ${target}`);
|
|
22
|
+
const targets = expandBaselineTarget(resolveComma(toArray(target)));
|
|
23
|
+
if (targets.length) logger.info(nameLabel, `target${targets.length > 1 ? "s" : ""}: ${color(targets.join(", "))}`);
|
|
24
|
+
return targets;
|
|
25
|
+
}
|
|
26
|
+
function resolvePackageTarget(pkg) {
|
|
27
|
+
const nodeVersion = pkg?.engines?.node;
|
|
28
|
+
if (!nodeVersion) return;
|
|
29
|
+
const nodeMinVersion = minVersion(nodeVersion);
|
|
30
|
+
if (!nodeMinVersion) return;
|
|
31
|
+
if (nodeMinVersion.version === "0.0.0") return;
|
|
32
|
+
return `node${nodeMinVersion.version}`;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { resolveTarget as n, expandBaselineTarget as t };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { r as createDebug } from "./main-BlTcyuFi.js";
|
|
2
|
-
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-
|
|
3
|
-
import { n as globalContext } from "./tsc-context-
|
|
2
|
+
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-BlM3pDGJ-C8Uovnt4.js";
|
|
3
|
+
import { i as __require, n as globalContext } from "./tsc-context-BusiAGCd.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
|
7
7
|
const ts = createRequire(import.meta.url)("typescript");
|
|
8
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
9
8
|
const debug$4 = createDebug("rolldown-plugin-dts:tsc-system");
|
|
10
9
|
/**
|
|
11
10
|
* A system that writes files to both memory and disk. It will try read files
|
|
@@ -60,9 +59,16 @@ const formatHost = {
|
|
|
60
59
|
getCanonicalFileName: ts.sys.useCaseSensitiveFileNames ? (f) => f : (f) => f.toLowerCase()
|
|
61
60
|
};
|
|
62
61
|
const stripPrivateFields = (ctx) => {
|
|
62
|
+
const recurseCtx = {
|
|
63
|
+
...ctx,
|
|
64
|
+
startLexicalEnvironment: () => {},
|
|
65
|
+
suspendLexicalEnvironment: () => {},
|
|
66
|
+
resumeLexicalEnvironment: () => {},
|
|
67
|
+
endLexicalEnvironment: () => void 0
|
|
68
|
+
};
|
|
63
69
|
const visitor = (node) => {
|
|
64
70
|
if (ts.isPropertySignature(node) && ts.isPrivateIdentifier(node.name)) return ctx.factory.updatePropertySignature(node, node.modifiers, ctx.factory.createStringLiteral(node.name.text), node.questionToken, node.type);
|
|
65
|
-
return ts.visitEachChild(node, visitor,
|
|
71
|
+
return ts.visitEachChild(node, visitor, recurseCtx);
|
|
66
72
|
};
|
|
67
73
|
return (sourceFile) => ts.visitNode(sourceFile, visitor, ts.isSourceFile) ?? sourceFile;
|
|
68
74
|
};
|
|
@@ -145,13 +151,14 @@ function buildProjects(fsSystem, tsconfig, force, sourcemap) {
|
|
|
145
151
|
const projects = collectProjectGraph(tsconfig, fsSystem, force, sourcemap);
|
|
146
152
|
debug$3("collected %d projects: %j", projects.length, projects.map((project) => project.tsconfigPath));
|
|
147
153
|
const host = ts.createSolutionBuilderHost(fsSystem, createProgramWithPatchedCompilerOptions);
|
|
148
|
-
|
|
154
|
+
const exitStatus = ts.createSolutionBuilder(host, [tsconfig], {
|
|
149
155
|
force,
|
|
150
156
|
verbose: true
|
|
151
157
|
}).build(void 0, void 0, void 0, (project) => {
|
|
152
158
|
debug$3(`transforming project ${project}`);
|
|
153
159
|
return customTransformers;
|
|
154
|
-
})
|
|
160
|
+
});
|
|
161
|
+
debug$3(`built solution for ${tsconfig} with exit status ${exitStatus}`);
|
|
155
162
|
const sourceFileToProjectMap = /* @__PURE__ */ new Map();
|
|
156
163
|
for (const project of projects) for (const fileName of project.parsedConfig.fileNames) sourceFileToProjectMap.set(fsSystem.resolvePath(fileName), project);
|
|
157
164
|
return sourceFileToProjectMap;
|
|
@@ -344,7 +351,8 @@ function createTsProgramFromParsedConfig({ parsedConfig, fsSystem, baseDir, id,
|
|
|
344
351
|
...defaultCompilerOptions,
|
|
345
352
|
...parsedConfig.options,
|
|
346
353
|
$configRaw: parsedConfig.raw,
|
|
347
|
-
$rootDir: baseDir
|
|
354
|
+
$rootDir: baseDir,
|
|
355
|
+
...vue || tsMacro ? { allowNonTsExtensions: true } : void 0
|
|
348
356
|
};
|
|
349
357
|
const rootNames = [...new Set([id, ...entries || parsedConfig.fileNames].map((f) => fsSystem.resolvePath(f)))];
|
|
350
358
|
const host = ts.createCompilerHost(compilerOptions, true);
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { r as createDebug } from "./main-BlTcyuFi.js";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import path from "node:path";
|
|
3
|
-
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.
|
|
4
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.9_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_9f43f644337e3a4030148b21b794fdcf/node_modules/rolldown-plugin-dts/dist/rolldown-runtime-CMgrfpPY.mjs
|
|
5
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.27.9_@typescript+native-preview@7.0.0-dev.20260605.1_oxc-resolver_9f43f644337e3a4030148b21b794fdcf/node_modules/rolldown-plugin-dts/dist/tsc-context.mjs
|
|
4
8
|
const debug = createDebug("rolldown-plugin-dts:tsc-context");
|
|
5
9
|
function createContext() {
|
|
6
10
|
return {
|
|
@@ -20,4 +24,4 @@ function invalidateContextFile(context, file) {
|
|
|
20
24
|
}
|
|
21
25
|
const globalContext = createContext();
|
|
22
26
|
//#endregion
|
|
23
|
-
export { globalContext as n, invalidateContextFile as r, createContext as t };
|
|
27
|
+
export { __require as i, globalContext as n, invalidateContextFile as r, createContext as t };
|