@voidzero-dev/vite-plus-core 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rolldown/shared/binding-CfwqjDbP.mjs +26 -26
- package/dist/rolldown/shared/bindingify-input-options--chmbDhw.mjs +1 -1
- package/dist/tsdown/{build-B_nvJe4A-hrVGPLD6.js → build-B_nvJe4A-BkmlHYK-.js} +44 -44
- package/dist/tsdown/{dist-Dvzn3mZN.js → dist-4h5bgYzo.js} +2 -2
- package/dist/tsdown/index.js +1 -1
- package/dist/tsdown/run.js +1 -1
- package/dist/tsdown/{tsc-q0JAW6kD.js → tsc-15OYetCl.js} +1 -1
- package/package.json +3 -3
|
@@ -103,7 +103,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
103
103
|
try {
|
|
104
104
|
const binding = __require("vite-plus/binding");
|
|
105
105
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
106
|
-
if (bindingPackageVersion !== "0.2.
|
|
106
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
107
107
|
return binding;
|
|
108
108
|
} catch (e) {
|
|
109
109
|
loadErrors.push(e);
|
|
@@ -117,7 +117,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
117
117
|
try {
|
|
118
118
|
const binding = __require("vite-plus/binding");
|
|
119
119
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
120
|
-
if (bindingPackageVersion !== "0.2.
|
|
120
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
121
121
|
return binding;
|
|
122
122
|
} catch (e) {
|
|
123
123
|
loadErrors.push(e);
|
|
@@ -132,7 +132,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
132
132
|
try {
|
|
133
133
|
const binding = __require("vite-plus/binding");
|
|
134
134
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
135
|
-
if (bindingPackageVersion !== "0.2.
|
|
135
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
136
136
|
return binding;
|
|
137
137
|
} catch (e) {
|
|
138
138
|
loadErrors.push(e);
|
|
@@ -146,7 +146,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
146
146
|
try {
|
|
147
147
|
const binding = __require("vite-plus/binding");
|
|
148
148
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
149
|
-
if (bindingPackageVersion !== "0.2.
|
|
149
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
150
150
|
return binding;
|
|
151
151
|
} catch (e) {
|
|
152
152
|
loadErrors.push(e);
|
|
@@ -161,7 +161,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
161
161
|
try {
|
|
162
162
|
const binding = __require("vite-plus/binding");
|
|
163
163
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
164
|
-
if (bindingPackageVersion !== "0.2.
|
|
164
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
165
165
|
return binding;
|
|
166
166
|
} catch (e) {
|
|
167
167
|
loadErrors.push(e);
|
|
@@ -175,7 +175,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
175
175
|
try {
|
|
176
176
|
const binding = __require("vite-plus/binding");
|
|
177
177
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
178
|
-
if (bindingPackageVersion !== "0.2.
|
|
178
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
179
179
|
return binding;
|
|
180
180
|
} catch (e) {
|
|
181
181
|
loadErrors.push(e);
|
|
@@ -190,7 +190,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
190
190
|
try {
|
|
191
191
|
const binding = __require("vite-plus/binding");
|
|
192
192
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
193
|
-
if (bindingPackageVersion !== "0.2.
|
|
193
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
194
194
|
return binding;
|
|
195
195
|
} catch (e) {
|
|
196
196
|
loadErrors.push(e);
|
|
@@ -204,7 +204,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
204
204
|
try {
|
|
205
205
|
const binding = __require("vite-plus/binding");
|
|
206
206
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
207
|
-
if (bindingPackageVersion !== "0.2.
|
|
207
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
208
208
|
return binding;
|
|
209
209
|
} catch (e) {
|
|
210
210
|
loadErrors.push(e);
|
|
@@ -218,7 +218,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
218
218
|
try {
|
|
219
219
|
const binding = __require("vite-plus/binding");
|
|
220
220
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
221
|
-
if (bindingPackageVersion !== "0.2.
|
|
221
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
222
222
|
return binding;
|
|
223
223
|
} catch (e) {
|
|
224
224
|
loadErrors.push(e);
|
|
@@ -233,7 +233,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
233
233
|
try {
|
|
234
234
|
const binding = __require("vite-plus/binding");
|
|
235
235
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
236
|
-
if (bindingPackageVersion !== "0.2.
|
|
236
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
237
237
|
return binding;
|
|
238
238
|
} catch (e) {
|
|
239
239
|
loadErrors.push(e);
|
|
@@ -247,7 +247,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
247
247
|
try {
|
|
248
248
|
const binding = __require("vite-plus/binding");
|
|
249
249
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
250
|
-
if (bindingPackageVersion !== "0.2.
|
|
250
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
251
251
|
return binding;
|
|
252
252
|
} catch (e) {
|
|
253
253
|
loadErrors.push(e);
|
|
@@ -262,7 +262,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = __require("vite-plus/binding");
|
|
264
264
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
265
|
-
if (bindingPackageVersion !== "0.2.
|
|
265
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
266
266
|
return binding;
|
|
267
267
|
} catch (e) {
|
|
268
268
|
loadErrors.push(e);
|
|
@@ -276,7 +276,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
276
276
|
try {
|
|
277
277
|
const binding = __require("vite-plus/binding");
|
|
278
278
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
279
|
-
if (bindingPackageVersion !== "0.2.
|
|
279
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
280
280
|
return binding;
|
|
281
281
|
} catch (e) {
|
|
282
282
|
loadErrors.push(e);
|
|
@@ -291,7 +291,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
291
291
|
try {
|
|
292
292
|
const binding = __require("vite-plus/binding");
|
|
293
293
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
294
|
-
if (bindingPackageVersion !== "0.2.
|
|
294
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
295
295
|
return binding;
|
|
296
296
|
} catch (e) {
|
|
297
297
|
loadErrors.push(e);
|
|
@@ -305,7 +305,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
305
305
|
try {
|
|
306
306
|
const binding = __require("vite-plus/binding");
|
|
307
307
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
308
|
-
if (bindingPackageVersion !== "0.2.
|
|
308
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
309
309
|
return binding;
|
|
310
310
|
} catch (e) {
|
|
311
311
|
loadErrors.push(e);
|
|
@@ -320,7 +320,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
320
320
|
try {
|
|
321
321
|
const binding = __require("vite-plus/binding");
|
|
322
322
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
323
|
-
if (bindingPackageVersion !== "0.2.
|
|
323
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
324
324
|
return binding;
|
|
325
325
|
} catch (e) {
|
|
326
326
|
loadErrors.push(e);
|
|
@@ -334,7 +334,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
334
334
|
try {
|
|
335
335
|
const binding = __require("vite-plus/binding");
|
|
336
336
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
337
|
-
if (bindingPackageVersion !== "0.2.
|
|
337
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
338
338
|
return binding;
|
|
339
339
|
} catch (e) {
|
|
340
340
|
loadErrors.push(e);
|
|
@@ -349,7 +349,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
349
349
|
try {
|
|
350
350
|
const binding = __require("vite-plus/binding");
|
|
351
351
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
352
|
-
if (bindingPackageVersion !== "0.2.
|
|
352
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
353
353
|
return binding;
|
|
354
354
|
} catch (e) {
|
|
355
355
|
loadErrors.push(e);
|
|
@@ -363,7 +363,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
363
363
|
try {
|
|
364
364
|
const binding = __require("vite-plus/binding");
|
|
365
365
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
366
|
-
if (bindingPackageVersion !== "0.2.
|
|
366
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
367
367
|
return binding;
|
|
368
368
|
} catch (e) {
|
|
369
369
|
loadErrors.push(e);
|
|
@@ -378,7 +378,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
378
378
|
try {
|
|
379
379
|
const binding = __require("vite-plus/binding");
|
|
380
380
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
381
|
-
if (bindingPackageVersion !== "0.2.
|
|
381
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
382
382
|
return binding;
|
|
383
383
|
} catch (e) {
|
|
384
384
|
loadErrors.push(e);
|
|
@@ -392,7 +392,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
392
392
|
try {
|
|
393
393
|
const binding = __require("vite-plus/binding");
|
|
394
394
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
395
|
-
if (bindingPackageVersion !== "0.2.
|
|
395
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
396
396
|
return binding;
|
|
397
397
|
} catch (e) {
|
|
398
398
|
loadErrors.push(e);
|
|
@@ -407,7 +407,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
407
407
|
try {
|
|
408
408
|
const binding = __require("vite-plus/binding");
|
|
409
409
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
410
|
-
if (bindingPackageVersion !== "0.2.
|
|
410
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
411
411
|
return binding;
|
|
412
412
|
} catch (e) {
|
|
413
413
|
loadErrors.push(e);
|
|
@@ -421,7 +421,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
421
421
|
try {
|
|
422
422
|
const binding = __require("vite-plus/binding");
|
|
423
423
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
424
|
-
if (bindingPackageVersion !== "0.2.
|
|
424
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
425
425
|
return binding;
|
|
426
426
|
} catch (e) {
|
|
427
427
|
loadErrors.push(e);
|
|
@@ -436,7 +436,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
436
436
|
try {
|
|
437
437
|
const binding = __require("vite-plus/binding");
|
|
438
438
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
439
|
-
if (bindingPackageVersion !== "0.2.
|
|
439
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
440
440
|
return binding;
|
|
441
441
|
} catch (e) {
|
|
442
442
|
loadErrors.push(e);
|
|
@@ -450,7 +450,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
450
450
|
try {
|
|
451
451
|
const binding = __require("vite-plus/binding");
|
|
452
452
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
453
|
-
if (bindingPackageVersion !== "0.2.
|
|
453
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
454
454
|
return binding;
|
|
455
455
|
} catch (e) {
|
|
456
456
|
loadErrors.push(e);
|
|
@@ -464,7 +464,7 @@ var require_binding = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
464
464
|
try {
|
|
465
465
|
const binding = __require("vite-plus/binding");
|
|
466
466
|
const bindingPackageVersion = __require("vite-plus/binding/package.json").version;
|
|
467
|
-
if (bindingPackageVersion !== "0.2.
|
|
467
|
+
if (bindingPackageVersion !== "0.2.1" && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== "0") throw new Error(`Native binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
468
468
|
return binding;
|
|
469
469
|
} catch (e) {
|
|
470
470
|
loadErrors.push(e);
|
|
@@ -8,7 +8,7 @@ import path from "node:path";
|
|
|
8
8
|
import * as filter from "@voidzero-dev/vite-plus-core/rolldown/pluginutils";
|
|
9
9
|
import fsp from "node:fs/promises";
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "0.2.
|
|
11
|
+
var version = "0.2.1";
|
|
12
12
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/constants/version.ts
|
|
@@ -4,7 +4,7 @@ import process$1 from "node:process";
|
|
|
4
4
|
import readline from "node:readline";
|
|
5
5
|
import { formatWithOptions, inspect, isDeepStrictEqual, promisify } from "node:util";
|
|
6
6
|
import path, { dirname, isAbsolute, join, parse, resolve } from "node:path";
|
|
7
|
-
import
|
|
7
|
+
import re, { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
8
8
|
import { RUNTIME_MODULE_ID, VERSION, build, watch } from "@voidzero-dev/vite-plus-core/rolldown";
|
|
9
9
|
import { access, chmod, cp, mkdir, mkdtemp, readFile, readdir, rm, stat, writeFile } from "node:fs/promises";
|
|
10
10
|
import { and, exactRegex, id, importerId, include } from "@voidzero-dev/vite-plus-core/rolldown/filter";
|
|
@@ -150,13 +150,13 @@ i(x, "slash");
|
|
|
150
150
|
const _e = i((e, n) => {
|
|
151
151
|
const s = `readFileSync:${n}`;
|
|
152
152
|
let t = e?.get(s);
|
|
153
|
-
return t === void 0 && (t =
|
|
153
|
+
return t === void 0 && (t = re.readFileSync(n, "utf8"), e?.set(s, t)), t;
|
|
154
154
|
}, "readFile"), F = i((e, n) => {
|
|
155
155
|
const s = `tryStat:${n}`;
|
|
156
156
|
let t = e?.get(s);
|
|
157
157
|
if (t === void 0) {
|
|
158
158
|
try {
|
|
159
|
-
t =
|
|
159
|
+
t = re.statSync(n);
|
|
160
160
|
} catch {
|
|
161
161
|
t = null;
|
|
162
162
|
}
|
|
@@ -4242,87 +4242,87 @@ quansync$1({
|
|
|
4242
4242
|
*/
|
|
4243
4243
|
const quansync = quansync$1;
|
|
4244
4244
|
quansync$1({
|
|
4245
|
-
sync:
|
|
4246
|
-
async:
|
|
4245
|
+
sync: re.readFileSync,
|
|
4246
|
+
async: re.promises.readFile
|
|
4247
4247
|
});
|
|
4248
4248
|
quansync$1({
|
|
4249
|
-
sync:
|
|
4250
|
-
async:
|
|
4249
|
+
sync: re.writeFileSync,
|
|
4250
|
+
async: re.promises.writeFile
|
|
4251
4251
|
});
|
|
4252
4252
|
quansync$1({
|
|
4253
|
-
sync:
|
|
4254
|
-
async:
|
|
4253
|
+
sync: re.unlinkSync,
|
|
4254
|
+
async: re.promises.unlink
|
|
4255
4255
|
});
|
|
4256
4256
|
quansync$1({
|
|
4257
|
-
sync:
|
|
4258
|
-
async:
|
|
4257
|
+
sync: re.accessSync,
|
|
4258
|
+
async: re.promises.access
|
|
4259
4259
|
});
|
|
4260
4260
|
/**
|
|
4261
4261
|
* @link https://nodejs.org/api/fs.html#fspromisesstatpath-options
|
|
4262
4262
|
*/
|
|
4263
4263
|
const stat$2 = quansync$1({
|
|
4264
|
-
sync:
|
|
4265
|
-
async:
|
|
4264
|
+
sync: re.statSync,
|
|
4265
|
+
async: re.promises.stat
|
|
4266
4266
|
});
|
|
4267
4267
|
const lstat = quansync$1({
|
|
4268
|
-
sync:
|
|
4269
|
-
async:
|
|
4268
|
+
sync: re.lstatSync,
|
|
4269
|
+
async: re.promises.lstat
|
|
4270
4270
|
});
|
|
4271
4271
|
quansync$1({
|
|
4272
|
-
sync:
|
|
4273
|
-
async:
|
|
4272
|
+
sync: re.copyFileSync,
|
|
4273
|
+
async: re.promises.copyFile
|
|
4274
4274
|
});
|
|
4275
4275
|
quansync$1({
|
|
4276
|
-
sync:
|
|
4277
|
-
async:
|
|
4276
|
+
sync: re.rmSync,
|
|
4277
|
+
async: re.promises.rm
|
|
4278
4278
|
});
|
|
4279
4279
|
quansync$1({
|
|
4280
|
-
sync:
|
|
4281
|
-
async:
|
|
4280
|
+
sync: re.mkdirSync,
|
|
4281
|
+
async: re.promises.mkdir
|
|
4282
4282
|
});
|
|
4283
4283
|
quansync$1({
|
|
4284
|
-
sync:
|
|
4285
|
-
async:
|
|
4284
|
+
sync: re.renameSync,
|
|
4285
|
+
async: re.promises.rename
|
|
4286
4286
|
});
|
|
4287
4287
|
quansync$1({
|
|
4288
|
-
sync:
|
|
4289
|
-
async:
|
|
4288
|
+
sync: re.readdirSync,
|
|
4289
|
+
async: re.promises.readdir
|
|
4290
4290
|
});
|
|
4291
4291
|
quansync$1({
|
|
4292
|
-
sync:
|
|
4293
|
-
async:
|
|
4292
|
+
sync: re.realpathSync,
|
|
4293
|
+
async: re.promises.realpath
|
|
4294
4294
|
});
|
|
4295
4295
|
quansync$1({
|
|
4296
|
-
sync:
|
|
4297
|
-
async:
|
|
4296
|
+
sync: re.readlinkSync,
|
|
4297
|
+
async: re.promises.readlink
|
|
4298
4298
|
});
|
|
4299
4299
|
quansync$1({
|
|
4300
|
-
sync:
|
|
4301
|
-
async:
|
|
4300
|
+
sync: re.symlinkSync,
|
|
4301
|
+
async: re.promises.symlink
|
|
4302
4302
|
});
|
|
4303
4303
|
quansync$1({
|
|
4304
|
-
sync:
|
|
4305
|
-
async:
|
|
4304
|
+
sync: re.chownSync,
|
|
4305
|
+
async: re.promises.chown
|
|
4306
4306
|
});
|
|
4307
4307
|
quansync$1({
|
|
4308
|
-
sync:
|
|
4309
|
-
async:
|
|
4308
|
+
sync: re.lchownSync,
|
|
4309
|
+
async: re.promises.lchown
|
|
4310
4310
|
});
|
|
4311
4311
|
quansync$1({
|
|
4312
|
-
sync:
|
|
4313
|
-
async:
|
|
4312
|
+
sync: re.chmodSync,
|
|
4313
|
+
async: re.promises.chmod
|
|
4314
4314
|
});
|
|
4315
4315
|
quansync$1({
|
|
4316
|
-
sync:
|
|
4317
|
-
async:
|
|
4316
|
+
sync: re.utimesSync,
|
|
4317
|
+
async: re.promises.utimes
|
|
4318
4318
|
});
|
|
4319
4319
|
quansync$1({
|
|
4320
|
-
sync:
|
|
4321
|
-
async:
|
|
4320
|
+
sync: re.lutimesSync,
|
|
4321
|
+
async: re.promises.lutimes
|
|
4322
4322
|
});
|
|
4323
4323
|
quansync$1({
|
|
4324
|
-
sync:
|
|
4325
|
-
async:
|
|
4324
|
+
sync: re.mkdtempSync,
|
|
4325
|
+
async: re.promises.mkdtemp
|
|
4326
4326
|
});
|
|
4327
4327
|
//#endregion
|
|
4328
4328
|
//#region ../../node_modules/.pnpm/unconfig-core@7.5.0/node_modules/unconfig-core/dist/index.mjs
|
|
@@ -6112,7 +6112,7 @@ async function resolveInputOptions(config, format, configDeps, bundle, cjsDts, i
|
|
|
6112
6112
|
if (nodeProtocol) plugins.push(NodeProtocolPlugin(nodeProtocol));
|
|
6113
6113
|
if (config.pkg || config.deps.skipNodeModulesBundle) plugins.push(DepsPlugin(config, bundle));
|
|
6114
6114
|
if (dts) {
|
|
6115
|
-
const { dts: dtsPlugin } = await import("./dist-
|
|
6115
|
+
const { dts: dtsPlugin } = await import("./dist-4h5bgYzo.js");
|
|
6116
6116
|
const { cjsReexport: _, ...dtsPluginOptions } = dts;
|
|
6117
6117
|
const options = {
|
|
6118
6118
|
tsconfig,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as __commonJSMin, M as __toESM, a as createDebug, j as __exportAll } from "./main-BMtwTklr.js";
|
|
2
|
-
import { _ as filename_dts_to, b as replaceTemplateName, c as RE_CSS, d as RE_JS, f as RE_JSON, g as RE_VUE, h as RE_TS, l as RE_DTS, m as RE_ROLLDOWN_RUNTIME, o as at, p as RE_NODE_MODULES, s as ee, u as RE_DTS_MAP, v as filename_js_to_dts, x as resolveTemplateFn, y as filename_to_dts } from "./build-B_nvJe4A-
|
|
2
|
+
import { _ as filename_dts_to, b as replaceTemplateName, c as RE_CSS, d as RE_JS, f as RE_JSON, g as RE_VUE, h as RE_TS, l as RE_DTS, m as RE_ROLLDOWN_RUNTIME, o as at, p as RE_NODE_MODULES, s as ee, u as RE_DTS_MAP, v as filename_js_to_dts, x as resolveTemplateFn, y as filename_to_dts } from "./build-B_nvJe4A-BkmlHYK-.js";
|
|
3
3
|
import { n as globalContext, r as invalidateContextFile, t as createContext } from "./tsc-context-DfwSQt2q.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import process from "node:process";
|
|
@@ -31686,7 +31686,7 @@ function createGeneratePlugin({ entry, tsconfig, tsconfigRaw, build, incremental
|
|
|
31686
31686
|
on: (fn) => childProcess.on("message", fn)
|
|
31687
31687
|
});
|
|
31688
31688
|
} else {
|
|
31689
|
-
tscModule = await import("./tsc-
|
|
31689
|
+
tscModule = await import("./tsc-15OYetCl.js");
|
|
31690
31690
|
if (newContext) tscContext = createContext();
|
|
31691
31691
|
}
|
|
31692
31692
|
if (!Array.isArray(options.input)) for (const [name, id] of Object.entries(options.input)) {
|
package/dist/tsdown/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as enableDebug, u as globalLogger } from "./main-BMtwTklr.js";
|
|
2
|
-
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-
|
|
2
|
+
import { a as resolveUserConfig, i as mergeConfig, n as buildWithConfigs, t as build$1 } from "./build-B_nvJe4A-BkmlHYK-.js";
|
|
3
3
|
import * as Rolldown from "@voidzero-dev/vite-plus-core/rolldown";
|
|
4
4
|
//#region ../../node_modules/.pnpm/tsdown@0.22.3_@arethetypeswrong+core@0.18.2_@tsdown+css@0.22.3_@tsdown+exe@0.22.3_@type_701dbb346589e2d965113664da5ac600/node_modules/tsdown/dist/config.mjs
|
|
5
5
|
function defineConfig(options) {
|
package/dist/tsdown/run.js
CHANGED
|
@@ -630,7 +630,7 @@ cli.command("[...files]", "Bundle files", {
|
|
|
630
630
|
}).option("-c, --config <filename>", "Use a custom config file").option("--config-loader <loader>", "Config loader to use: auto, native, 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) => {
|
|
631
631
|
globalLogger.level = flags.logLevel || "info";
|
|
632
632
|
globalLogger.info(`${blue`tsdown v${version}`} powered by ${hex("#ff7e17")`rolldown v${VERSION}`}`);
|
|
633
|
-
const { build } = await import("./build-B_nvJe4A-
|
|
633
|
+
const { build } = await import("./build-B_nvJe4A-BkmlHYK-.js").then((n) => n.r).then((n) => n.r);
|
|
634
634
|
if (input.length > 0) flags.entry = input;
|
|
635
635
|
await build(flags);
|
|
636
636
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as createDebug } from "./main-BMtwTklr.js";
|
|
2
|
-
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-B_nvJe4A-
|
|
2
|
+
import { l as RE_DTS, u as RE_DTS_MAP } from "./build-B_nvJe4A-BkmlHYK-.js";
|
|
3
3
|
import { n as globalContext } from "./tsc-context-DfwSQt2q.js";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import path from "node:path";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voidzero-dev/vite-plus-core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The Unified Toolchain for the Web",
|
|
5
5
|
"homepage": "https://viteplus.dev/guide",
|
|
6
6
|
"bugs": {
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"tree-kill": "^1.2.2",
|
|
127
127
|
"tsdown": "^0.22.3",
|
|
128
128
|
"rolldown": "1.1.1",
|
|
129
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.
|
|
129
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.1"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"@arethetypeswrong/core": "^0.18.1",
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
"fsevents": "~2.3.3"
|
|
213
213
|
},
|
|
214
214
|
"engines": {
|
|
215
|
-
"node": "^22.18.0 || >=24.11.0"
|
|
215
|
+
"node": "^20.19.0 || ^22.18.0 || >=24.11.0"
|
|
216
216
|
},
|
|
217
217
|
"bundledVersions": {
|
|
218
218
|
"vite": "8.0.16",
|