@voidzero-dev/vite-plus-core 0.1.22 → 0.1.23

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.
Files changed (93) hide show
  1. package/LICENSE +35 -24
  2. package/dist/pluginutils/filter/index.d.mts +194 -0
  3. package/dist/pluginutils/filter/index.mjs +2 -0
  4. package/dist/pluginutils/filter-B_mD-HGz.mjs +323 -0
  5. package/dist/pluginutils/index.d.mts +2 -0
  6. package/dist/pluginutils/index.mjs +2 -0
  7. package/dist/rolldown/cli.mjs +7 -7
  8. package/dist/rolldown/config.d.mts +1 -1
  9. package/dist/rolldown/config.mjs +3 -3
  10. package/dist/rolldown/experimental-index.d.mts +21 -4
  11. package/dist/rolldown/experimental-index.mjs +14 -9
  12. package/dist/rolldown/filter-index.d.mts +8 -9
  13. package/dist/rolldown/filter-index.mjs +2 -8
  14. package/dist/rolldown/get-log-filter.d.mts +3 -3
  15. package/dist/rolldown/index.d.mts +4 -4
  16. package/dist/rolldown/index.mjs +5 -5
  17. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  18. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  19. package/dist/rolldown/parse-ast-index.d.mts +1 -1
  20. package/dist/rolldown/parse-ast-index.mjs +2 -2
  21. package/dist/rolldown/plugins-index.d.mts +3 -3
  22. package/dist/rolldown/plugins-index.mjs +2 -2
  23. package/dist/rolldown/shared/{binding-zH1vcmbM.d.mts → binding-BaCZTfMx.d.mts} +32 -3
  24. package/dist/rolldown/shared/{binding-ESkOU1xr.mjs → binding-CXquf8ay.mjs} +27 -26
  25. package/dist/rolldown/shared/{bindingify-input-options-wZdDRbfo.mjs → bindingify-input-options-D2ORek5s.mjs} +14 -14
  26. package/dist/rolldown/shared/{constructors-D6i2Tbyl.mjs → constructors-BiPdtLBB.mjs} +1 -1
  27. package/dist/rolldown/shared/{constructors-D0W3rNfA.d.mts → constructors-CbNaT434.d.mts} +2 -2
  28. package/dist/rolldown/shared/{define-config-5HJ1b9vG.d.mts → define-config-3BX_X2Am.d.mts} +70 -16
  29. package/dist/rolldown/shared/{error-BrnLyQ-g.mjs → error-BuvQYXuZ.mjs} +1 -1
  30. package/dist/rolldown/shared/{get-log-filter-semyr3Lj.d.mts → get-log-filter-BpNVNJ5-.d.mts} +1 -1
  31. package/dist/rolldown/shared/{load-config-BZFgt8GH.mjs → load-config-uvbpmLwO.mjs} +1 -1
  32. package/dist/rolldown/shared/{normalize-string-or-regex-dAjLOSbp.mjs → normalize-string-or-regex-CNPF6PU9.mjs} +2 -2
  33. package/dist/rolldown/shared/{parse-DFts7Hyl.mjs → parse-1VOPJ1Lj.mjs} +2 -2
  34. package/dist/rolldown/shared/{prompt-Bm9aMQjm.mjs → prompt-DV1XbtjC.mjs} +1 -1
  35. package/dist/rolldown/shared/{resolve-tsconfig-DCdBlPeK.mjs → resolve-tsconfig-CcfxWrib.mjs} +15 -4
  36. package/dist/rolldown/shared/{rolldown-Cs2eRf4R.mjs → rolldown-BZYLlfsv.mjs} +1 -1
  37. package/dist/rolldown/shared/{rolldown-build-CNhzgsn2.mjs → rolldown-build-CgMNHFY3.mjs} +54 -65
  38. package/dist/rolldown/shared/{transform-DgZ3paSD.d.mts → transform-7xCUVrpL.d.mts} +2 -2
  39. package/dist/rolldown/shared/{watch-De_8Tgeq.mjs → watch-BX_aH1Oh.mjs} +6 -6
  40. package/dist/rolldown/utils-index.d.mts +3 -3
  41. package/dist/rolldown/utils-index.mjs +5 -5
  42. package/dist/tsdown/{build-5FURNVr0-D2dbyiC6.js → build-5FURNVr0-CsM6vj3e.js} +1046 -17
  43. package/dist/tsdown/{detect-DN3DXXYt-8gmDjZqp.js → detect-DN3DXXYt-TsZBbdhI.js} +1 -1
  44. package/dist/tsdown/{dist-DTzJRoOQ.js → dist-wWM45aJq.js} +2185 -1087
  45. package/dist/tsdown/index-types.d.ts +7 -5
  46. package/dist/tsdown/index.js +3 -4
  47. package/dist/tsdown/{main-BNUO6D3N.js → main-Cq8Is40L.js} +288 -8
  48. package/dist/tsdown/npm_cjs_chunk_range.cjs +11 -11
  49. package/dist/tsdown/npm_cjs_chunk_semver.cjs +6 -6
  50. package/dist/tsdown/npm_entry_semver_functions_coerce.cjs +2 -2
  51. package/dist/tsdown/npm_entry_semver_functions_satisfies.cjs +1 -1
  52. package/dist/tsdown/npm_entry_semver_ranges_min-version.cjs +1 -1
  53. package/dist/tsdown/{resolver-DkvdaW3s-BeVUoOo-.js → resolver-DkvdaW3s-Dz1U-gxd.js} +1 -1
  54. package/dist/tsdown/run.js +3 -4
  55. package/dist/tsdown/{tsc-Dr9kCkDm.js → tsc-Dp9emiKb.js} +3 -3
  56. package/dist/tsdown/{tsc-context-CANQEB9U.js → tsc-context-DXovbMXp.js} +2 -2
  57. package/dist/vite/client/client.mjs +61 -27
  58. package/dist/vite/node/chunks/build.js +21 -21
  59. package/dist/vite/node/chunks/dist.js +1 -1
  60. package/dist/vite/node/chunks/dist2.js +136 -110
  61. package/dist/vite/node/chunks/lib.js +1 -1
  62. package/dist/vite/node/chunks/logger.js +36 -3
  63. package/dist/vite/node/chunks/node.js +288 -181
  64. package/dist/vite/node/chunks/postcss-import.js +11 -11
  65. package/dist/vite/node/cli.js +1 -2
  66. package/dist/vite/node/index.d.ts +29 -14
  67. package/dist/vite/node/module-runner.d.ts +1 -2
  68. package/dist/vite/node/module-runner.js +19 -18
  69. package/dist/vite/types/customEvent.d.ts +1 -1
  70. package/package.json +13 -19
  71. package/dist/pluginutils/filter/composable-filters.d.ts +0 -90
  72. package/dist/pluginutils/filter/composable-filters.js +0 -256
  73. package/dist/pluginutils/filter/filter-vite-plugins.d.ts +0 -28
  74. package/dist/pluginutils/filter/filter-vite-plugins.js +0 -75
  75. package/dist/pluginutils/filter/index.d.ts +0 -3
  76. package/dist/pluginutils/filter/index.js +0 -3
  77. package/dist/pluginutils/filter/simple-filters.d.ts +0 -71
  78. package/dist/pluginutils/filter/simple-filters.js +0 -70
  79. package/dist/pluginutils/index.d.ts +0 -1
  80. package/dist/pluginutils/index.js +0 -1
  81. package/dist/pluginutils/utils.d.ts +0 -2
  82. package/dist/pluginutils/utils.js +0 -17
  83. package/dist/tsdown/debug-CLlnG64L-BkAqwHVS.js +0 -16
  84. package/dist/tsdown/dist-Cv2Z0Bi_.js +0 -1012
  85. package/dist/tsdown/filename-DQnUJlio-D7-CzKqs.js +0 -29
  86. package/dist/tsdown/node-B3Gdtau1.js +0 -268
  87. package/dist/vite/node/chunks/chunk.js +0 -35
  88. /package/dist/rolldown/shared/{define-config-DJOr6Iwt.mjs → define-config-Demdg3_4.mjs} +0 -0
  89. /package/dist/rolldown/shared/{logging-C6h4g8dA.d.mts → logging-BSNejiLS.d.mts} +0 -0
  90. /package/dist/rolldown/shared/{logs-D80CXhvg.mjs → logs-aMKUxRpj.mjs} +0 -0
  91. /package/dist/rolldown/shared/{misc-DJYbNKZX.mjs → misc-CoQm4NHO.mjs} +0 -0
  92. /package/dist/tsdown/{chunk-N93fKeF6.js → chunk-DJK8HYOj.js} +0 -0
  93. /package/dist/tsdown/{dist-JaOach5K.js → dist-CZtGyfn3.js} +0 -0
@@ -1,29 +0,0 @@
1
- import { RUNTIME_MODULE_ID } from "@voidzero-dev/vite-plus-core/rolldown";
2
- import { exactRegex } from "@voidzero-dev/vite-plus-core/rolldown/filter";
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/filename-DQnUJlio.mjs
4
- const RE_JS = /\.([cm]?)jsx?$/;
5
- const RE_TS = /\.([cm]?)tsx?$/;
6
- const RE_DTS = /\.d\.([cm]?)ts$/;
7
- const RE_DTS_MAP = /\.d\.([cm]?)ts\.map$/;
8
- const RE_NODE_MODULES = /[\\/]node_modules[\\/]/;
9
- const RE_CSS = /\.(?:css|scss|sass|less|styl|stylus)$/;
10
- const RE_VUE = /\.vue$/;
11
- const RE_JSON = /\.json$/;
12
- const RE_ROLLDOWN_RUNTIME = exactRegex(RUNTIME_MODULE_ID);
13
- function filename_js_to_dts(id) {
14
- return id.replace(RE_JS, ".d.$1ts");
15
- }
16
- function filename_to_dts(id) {
17
- return id.replace(RE_VUE, ".vue.ts").replace(RE_TS, ".d.$1ts").replace(RE_JS, ".d.$1ts").replace(RE_JSON, ".json.d.ts");
18
- }
19
- function filename_dts_to(id, ext) {
20
- return id.replace(RE_DTS, `.$1${ext}`);
21
- }
22
- function resolveTemplateFn(fn, chunk) {
23
- return typeof fn === "function" ? fn(chunk) : fn;
24
- }
25
- function replaceTemplateName(template, name) {
26
- return template.replaceAll("[name]", name);
27
- }
28
- //#endregion
29
- export { RE_JSON as a, RE_TS as c, filename_js_to_dts as d, filename_to_dts as f, RE_JS as i, RE_VUE as l, resolveTemplateFn as m, RE_DTS as n, RE_NODE_MODULES as o, replaceTemplateName as p, RE_DTS_MAP as r, RE_ROLLDOWN_RUNTIME as s, RE_CSS as t, filename_dts_to as u };
@@ -1,268 +0,0 @@
1
- import { isatty } from "node:tty";
2
- import { formatWithOptions, inspect } from "node:util";
3
- //#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/core.js
4
- function coerce(value) {
5
- if (value instanceof Error) return value.stack || value.message;
6
- return value;
7
- }
8
- function selectColor(colors, namespace) {
9
- let hash = 0;
10
- for (let i = 0; i < namespace.length; i++) {
11
- hash = (hash << 5) - hash + namespace.charCodeAt(i);
12
- hash |= 0;
13
- }
14
- return colors[Math.abs(hash) % colors.length];
15
- }
16
- function matchesTemplate(search, template) {
17
- let searchIndex = 0;
18
- let templateIndex = 0;
19
- let starIndex = -1;
20
- let matchIndex = 0;
21
- while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
22
- starIndex = templateIndex;
23
- matchIndex = searchIndex;
24
- templateIndex++;
25
- } else {
26
- searchIndex++;
27
- templateIndex++;
28
- }
29
- else if (starIndex !== -1) {
30
- templateIndex = starIndex + 1;
31
- matchIndex++;
32
- searchIndex = matchIndex;
33
- } else return false;
34
- while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
35
- return templateIndex === template.length;
36
- }
37
- function humanize(value) {
38
- if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
39
- return `${value}ms`;
40
- }
41
- let globalNamespaces = "";
42
- function namespaces() {
43
- return globalNamespaces;
44
- }
45
- function createDebug$1(namespace, options) {
46
- let prevTime;
47
- let enableOverride;
48
- let namespacesCache;
49
- let enabledCache;
50
- const debug = (...args) => {
51
- if (!debug.enabled) return;
52
- const curr = Date.now();
53
- const diff = curr - (prevTime || curr);
54
- prevTime = curr;
55
- args[0] = coerce(args[0]);
56
- if (typeof args[0] !== "string") args.unshift("%O");
57
- let index = 0;
58
- args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
59
- if (match === "%%") return "%";
60
- index++;
61
- const formatter = options.formatters[format];
62
- if (typeof formatter === "function") {
63
- const value = args[index];
64
- match = formatter.call(debug, value);
65
- args.splice(index, 1);
66
- index--;
67
- }
68
- return match;
69
- });
70
- options.formatArgs.call(debug, diff, args);
71
- debug.log(...args);
72
- };
73
- debug.extend = function(namespace$1, delimiter = ":") {
74
- return createDebug$1(this.namespace + delimiter + namespace$1, {
75
- useColors: this.useColors,
76
- color: this.color,
77
- formatArgs: this.formatArgs,
78
- formatters: this.formatters,
79
- inspectOpts: this.inspectOpts,
80
- log: this.log,
81
- humanize: this.humanize
82
- });
83
- };
84
- Object.assign(debug, options);
85
- debug.namespace = namespace;
86
- Object.defineProperty(debug, "enabled", {
87
- enumerable: true,
88
- configurable: false,
89
- get: () => {
90
- if (enableOverride != null) return enableOverride;
91
- if (namespacesCache !== globalNamespaces) {
92
- namespacesCache = globalNamespaces;
93
- enabledCache = enabled(namespace);
94
- }
95
- return enabledCache;
96
- },
97
- set: (v) => {
98
- enableOverride = v;
99
- }
100
- });
101
- return debug;
102
- }
103
- let names = [];
104
- let skips = [];
105
- function enable$1(namespaces$1) {
106
- globalNamespaces = namespaces$1;
107
- names = [];
108
- skips = [];
109
- const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
110
- for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
111
- else names.push(ns);
112
- }
113
- function enabled(name) {
114
- for (const skip of skips) if (matchesTemplate(name, skip)) return false;
115
- for (const ns of names) if (matchesTemplate(name, ns)) return true;
116
- return false;
117
- }
118
- //#endregion
119
- //#region ../../node_modules/.pnpm/obug@2.1.1/node_modules/obug/dist/node.js
120
- const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
121
- 20,
122
- 21,
123
- 26,
124
- 27,
125
- 32,
126
- 33,
127
- 38,
128
- 39,
129
- 40,
130
- 41,
131
- 42,
132
- 43,
133
- 44,
134
- 45,
135
- 56,
136
- 57,
137
- 62,
138
- 63,
139
- 68,
140
- 69,
141
- 74,
142
- 75,
143
- 76,
144
- 77,
145
- 78,
146
- 79,
147
- 80,
148
- 81,
149
- 92,
150
- 93,
151
- 98,
152
- 99,
153
- 112,
154
- 113,
155
- 128,
156
- 129,
157
- 134,
158
- 135,
159
- 148,
160
- 149,
161
- 160,
162
- 161,
163
- 162,
164
- 163,
165
- 164,
166
- 165,
167
- 166,
168
- 167,
169
- 168,
170
- 169,
171
- 170,
172
- 171,
173
- 172,
174
- 173,
175
- 178,
176
- 179,
177
- 184,
178
- 185,
179
- 196,
180
- 197,
181
- 198,
182
- 199,
183
- 200,
184
- 201,
185
- 202,
186
- 203,
187
- 204,
188
- 205,
189
- 206,
190
- 207,
191
- 208,
192
- 209,
193
- 214,
194
- 215,
195
- 220,
196
- 221
197
- ] : [
198
- 6,
199
- 2,
200
- 3,
201
- 4,
202
- 5,
203
- 1
204
- ];
205
- const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
206
- const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
207
- let value = process.env[key];
208
- const lowerCase = typeof value === "string" && value.toLowerCase();
209
- if (value === "null") value = null;
210
- else if (lowerCase === "yes" || lowerCase === "on" || lowerCase === "true" || lowerCase === "enabled") value = true;
211
- else if (lowerCase === "no" || lowerCase === "off" || lowerCase === "false" || lowerCase === "disabled") value = false;
212
- else value = Number(value);
213
- obj[prop] = value;
214
- return obj;
215
- }, {});
216
- function useColors() {
217
- return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
218
- }
219
- function getDate() {
220
- if (inspectOpts.hideDate) return "";
221
- return `${(/* @__PURE__ */ new Date()).toISOString()} `;
222
- }
223
- function formatArgs(diff, args) {
224
- const { namespace: name, useColors: useColors$1 } = this;
225
- if (useColors$1) {
226
- const c = this.color;
227
- const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
228
- const prefix = ` ${colorCode};1m${name} \u001B[0m`;
229
- args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
230
- args.push(`${colorCode}m+${this.humanize(diff)}\u001B[0m`);
231
- } else args[0] = `${getDate()}${name} ${args[0]}`;
232
- }
233
- function log(...args) {
234
- process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\n`);
235
- }
236
- const defaultOptions = {
237
- useColors: useColors(),
238
- formatArgs,
239
- formatters: {
240
- o(v) {
241
- this.inspectOpts.colors = this.useColors;
242
- return inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
243
- },
244
- O(v) {
245
- this.inspectOpts.colors = this.useColors;
246
- return inspect(v, this.inspectOpts);
247
- }
248
- },
249
- inspectOpts,
250
- log,
251
- humanize
252
- };
253
- function createDebug(namespace, options) {
254
- var _ref;
255
- const color = (_ref = options && options.color) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
256
- return createDebug$1(namespace, Object.assign(defaultOptions, { color }, options));
257
- }
258
- function save(namespaces$1) {
259
- if (namespaces$1) process.env.DEBUG = namespaces$1;
260
- else delete process.env.DEBUG;
261
- }
262
- function enable(namespaces$1) {
263
- save(namespaces$1);
264
- enable$1(namespaces$1);
265
- }
266
- enable$1(process.env.DEBUG || "");
267
- //#endregion
268
- export { enable as n, namespaces as r, createDebug as t };
@@ -1,35 +0,0 @@
1
- import { createRequire } from "node:module";
2
- //#region \0rolldown/runtime.js
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
- var __exportAll = (all, no_symbols) => {
11
- let target = {};
12
- for (var name in all) __defProp(target, name, {
13
- get: all[name],
14
- enumerable: true
15
- });
16
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
17
- return target;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
21
- key = keys[i];
22
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
23
- get: ((k) => from[k]).bind(null, key),
24
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
25
- });
26
- }
27
- return to;
28
- };
29
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
32
- }) : target, mod));
33
- var __require = /* @__PURE__ */ createRequire(import.meta.url);
34
- //#endregion
35
- export { __toESM as i, __exportAll as n, __require as r, __commonJSMin as t };