vite-plus 0.2.4 → 0.2.6
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/README.md +1 -1
- package/binding/index.cjs +53 -52
- package/binding/index.d.cts +43 -41
- package/dist/{agent-eMtwgY-u.js → agent-0gFJkIKu.js} +34 -109
- package/dist/bin.d.ts +1 -1
- package/dist/bin.js +8 -5
- package/dist/config/bin.d.ts +1 -1
- package/dist/config/bin.js +2 -2
- package/dist/{constants-DdXYYBsz.js → constants-CaXMuYUG.js} +1 -1
- package/dist/create/bin.js +73 -22
- package/dist/{define-config-BuMs_LKa.d.ts → define-config-eLQH9us2.d.ts} +2 -3
- package/dist/{define-config-Dn5coJS5.js → define-config-hV8qyU8p.js} +2 -2
- package/dist/{define-config-DUsBrwKn.cjs → define-config-iGV0CGUk.cjs} +1 -1
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{editor-DL4u-ujK.js → editor-D4T70tKk.js} +95 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/migration/bin.d.ts +1 -1
- package/dist/migration/bin.js +5 -5
- package/dist/migration/compat/worker.d.ts +1 -1
- package/dist/{oxlint-plugin-config-BiYDWQLd.js → oxlint-plugin-config-CMSCIkks.js} +1 -1
- package/dist/oxlint-plugin.js +1 -1
- package/dist/{pack-Ciiho0Tq.d.ts → pack-PvUg_xpv.d.ts} +0 -1
- package/dist/pack-bin.js +1 -1
- package/dist/pack.d.ts +1 -1
- package/dist/{package-D2xMMmTQ.js → package-CP5EUXlu.js} +1 -1
- package/dist/{resolve-vite-config-5SuNAKdv.js → resolve-vite-config-BY7PB-LW.js} +1 -1
- package/dist/staged/bin.d.ts +1 -1
- package/dist/staged/bin.js +47 -17
- package/dist/{tsconfig-CtdiYBV_.js → tsconfig-Cac-NNdT.js} +86 -78
- package/dist/version.js +2 -2
- package/dist/versions.js +6 -6
- package/docs/config/run.md +3 -6
- package/docs/guide/docker.md +46 -2
- package/docs/guide/env.md +12 -0
- package/docs/guide/github-actions-cache.md +2 -2
- package/docs/guide/index.md +2 -0
- package/docs/guide/installer-env-vars.md +195 -0
- package/package.json +20 -23
- package/templates/monorepo/_gitignore +5 -0
- package/templates/monorepo/_yarnrc.yml +1 -1
- package/templates/monorepo/pnpm-workspace.yaml +1 -1
package/README.md
CHANGED
|
@@ -217,4 +217,4 @@ Or, if you are using Yarn:
|
|
|
217
217
|
|
|
218
218
|
## Sponsors
|
|
219
219
|
|
|
220
|
-
Thanks to [namespace.so](https://namespace.so) for powering our CI/CD pipelines with fast, free macOS and
|
|
220
|
+
Thanks to [namespace.so](https://namespace.so) for powering our CI/CD pipelines with fast, free macOS, Linux, and Windows runners.
|
package/binding/index.cjs
CHANGED
|
@@ -81,12 +81,12 @@ function requireNative() {
|
|
|
81
81
|
const bindingPackageVersion =
|
|
82
82
|
require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
|
|
83
83
|
if (
|
|
84
|
-
bindingPackageVersion !== '0.2.
|
|
84
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
85
85
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
86
86
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
87
87
|
) {
|
|
88
88
|
throw new Error(
|
|
89
|
-
`Native binding package version mismatch, expected 0.2.
|
|
89
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
return binding;
|
|
@@ -104,12 +104,12 @@ function requireNative() {
|
|
|
104
104
|
const bindingPackageVersion =
|
|
105
105
|
require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
|
|
106
106
|
if (
|
|
107
|
-
bindingPackageVersion !== '0.2.
|
|
107
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
108
108
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
109
109
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
110
110
|
) {
|
|
111
111
|
throw new Error(
|
|
112
|
-
`Native binding package version mismatch, expected 0.2.
|
|
112
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
return binding;
|
|
@@ -139,12 +139,12 @@ function requireNative() {
|
|
|
139
139
|
const bindingPackageVersion =
|
|
140
140
|
require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
|
|
141
141
|
if (
|
|
142
|
-
bindingPackageVersion !== '0.2.
|
|
142
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
143
143
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
144
144
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
145
145
|
) {
|
|
146
146
|
throw new Error(
|
|
147
|
-
`Native binding package version mismatch, expected 0.2.
|
|
147
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
148
148
|
);
|
|
149
149
|
}
|
|
150
150
|
return binding;
|
|
@@ -162,12 +162,12 @@ function requireNative() {
|
|
|
162
162
|
const bindingPackageVersion =
|
|
163
163
|
require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
|
|
164
164
|
if (
|
|
165
|
-
bindingPackageVersion !== '0.2.
|
|
165
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
166
166
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
167
167
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
168
168
|
) {
|
|
169
169
|
throw new Error(
|
|
170
|
-
`Native binding package version mismatch, expected 0.2.
|
|
170
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
171
171
|
);
|
|
172
172
|
}
|
|
173
173
|
return binding;
|
|
@@ -186,12 +186,12 @@ function requireNative() {
|
|
|
186
186
|
const bindingPackageVersion =
|
|
187
187
|
require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
|
|
188
188
|
if (
|
|
189
|
-
bindingPackageVersion !== '0.2.
|
|
189
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
190
190
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
191
191
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
192
192
|
) {
|
|
193
193
|
throw new Error(
|
|
194
|
-
`Native binding package version mismatch, expected 0.2.
|
|
194
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
195
195
|
);
|
|
196
196
|
}
|
|
197
197
|
return binding;
|
|
@@ -209,12 +209,12 @@ function requireNative() {
|
|
|
209
209
|
const bindingPackageVersion =
|
|
210
210
|
require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
|
|
211
211
|
if (
|
|
212
|
-
bindingPackageVersion !== '0.2.
|
|
212
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
213
213
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
214
214
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
215
215
|
) {
|
|
216
216
|
throw new Error(
|
|
217
|
-
`Native binding package version mismatch, expected 0.2.
|
|
217
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
220
|
return binding;
|
|
@@ -235,12 +235,12 @@ function requireNative() {
|
|
|
235
235
|
const bindingPackageVersion =
|
|
236
236
|
require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
|
|
237
237
|
if (
|
|
238
|
-
bindingPackageVersion !== '0.2.
|
|
238
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
239
239
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
240
240
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
241
241
|
) {
|
|
242
242
|
throw new Error(
|
|
243
|
-
`Native binding package version mismatch, expected 0.2.
|
|
243
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
244
244
|
);
|
|
245
245
|
}
|
|
246
246
|
return binding;
|
|
@@ -258,12 +258,12 @@ function requireNative() {
|
|
|
258
258
|
const bindingPackageVersion =
|
|
259
259
|
require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
|
|
260
260
|
if (
|
|
261
|
-
bindingPackageVersion !== '0.2.
|
|
261
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
262
262
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
263
263
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
264
264
|
) {
|
|
265
265
|
throw new Error(
|
|
266
|
-
`Native binding package version mismatch, expected 0.2.
|
|
266
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
return binding;
|
|
@@ -281,12 +281,12 @@ function requireNative() {
|
|
|
281
281
|
const bindingPackageVersion =
|
|
282
282
|
require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
|
|
283
283
|
if (
|
|
284
|
-
bindingPackageVersion !== '0.2.
|
|
284
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
285
285
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
286
286
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
287
287
|
) {
|
|
288
288
|
throw new Error(
|
|
289
|
-
`Native binding package version mismatch, expected 0.2.
|
|
289
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
292
|
return binding;
|
|
@@ -308,12 +308,12 @@ function requireNative() {
|
|
|
308
308
|
const bindingPackageVersion =
|
|
309
309
|
require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
|
|
310
310
|
if (
|
|
311
|
-
bindingPackageVersion !== '0.2.
|
|
311
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
312
312
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
313
313
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
314
314
|
) {
|
|
315
315
|
throw new Error(
|
|
316
|
-
`Native binding package version mismatch, expected 0.2.
|
|
316
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
317
317
|
);
|
|
318
318
|
}
|
|
319
319
|
return binding;
|
|
@@ -331,12 +331,12 @@ function requireNative() {
|
|
|
331
331
|
const bindingPackageVersion =
|
|
332
332
|
require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
|
|
333
333
|
if (
|
|
334
|
-
bindingPackageVersion !== '0.2.
|
|
334
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
335
335
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
336
336
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
337
337
|
) {
|
|
338
338
|
throw new Error(
|
|
339
|
-
`Native binding package version mismatch, expected 0.2.
|
|
339
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
340
340
|
);
|
|
341
341
|
}
|
|
342
342
|
return binding;
|
|
@@ -359,12 +359,12 @@ function requireNative() {
|
|
|
359
359
|
const bindingPackageVersion =
|
|
360
360
|
require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
|
|
361
361
|
if (
|
|
362
|
-
bindingPackageVersion !== '0.2.
|
|
362
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
363
363
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
364
364
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
365
365
|
) {
|
|
366
366
|
throw new Error(
|
|
367
|
-
`Native binding package version mismatch, expected 0.2.
|
|
367
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
368
368
|
);
|
|
369
369
|
}
|
|
370
370
|
return binding;
|
|
@@ -382,12 +382,12 @@ function requireNative() {
|
|
|
382
382
|
const bindingPackageVersion =
|
|
383
383
|
require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
|
|
384
384
|
if (
|
|
385
|
-
bindingPackageVersion !== '0.2.
|
|
385
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
386
386
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
387
387
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
388
388
|
) {
|
|
389
389
|
throw new Error(
|
|
390
|
-
`Native binding package version mismatch, expected 0.2.
|
|
390
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
return binding;
|
|
@@ -407,12 +407,12 @@ function requireNative() {
|
|
|
407
407
|
const bindingPackageVersion =
|
|
408
408
|
require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
|
|
409
409
|
if (
|
|
410
|
-
bindingPackageVersion !== '0.2.
|
|
410
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
411
411
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
412
412
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
413
413
|
) {
|
|
414
414
|
throw new Error(
|
|
415
|
-
`Native binding package version mismatch, expected 0.2.
|
|
415
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
return binding;
|
|
@@ -430,12 +430,12 @@ function requireNative() {
|
|
|
430
430
|
const bindingPackageVersion =
|
|
431
431
|
require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
|
|
432
432
|
if (
|
|
433
|
-
bindingPackageVersion !== '0.2.
|
|
433
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
434
434
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
435
435
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
436
436
|
) {
|
|
437
437
|
throw new Error(
|
|
438
|
-
`Native binding package version mismatch, expected 0.2.
|
|
438
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
439
439
|
);
|
|
440
440
|
}
|
|
441
441
|
return binding;
|
|
@@ -455,12 +455,12 @@ function requireNative() {
|
|
|
455
455
|
const bindingPackageVersion =
|
|
456
456
|
require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
|
|
457
457
|
if (
|
|
458
|
-
bindingPackageVersion !== '0.2.
|
|
458
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
459
459
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
460
460
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
461
461
|
) {
|
|
462
462
|
throw new Error(
|
|
463
|
-
`Native binding package version mismatch, expected 0.2.
|
|
463
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
return binding;
|
|
@@ -478,12 +478,12 @@ function requireNative() {
|
|
|
478
478
|
const bindingPackageVersion =
|
|
479
479
|
require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
|
|
480
480
|
if (
|
|
481
|
-
bindingPackageVersion !== '0.2.
|
|
481
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
482
482
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
483
483
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
484
484
|
) {
|
|
485
485
|
throw new Error(
|
|
486
|
-
`Native binding package version mismatch, expected 0.2.
|
|
486
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
return binding;
|
|
@@ -503,12 +503,12 @@ function requireNative() {
|
|
|
503
503
|
const bindingPackageVersion =
|
|
504
504
|
require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
|
|
505
505
|
if (
|
|
506
|
-
bindingPackageVersion !== '0.2.
|
|
506
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
507
507
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
508
508
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
509
509
|
) {
|
|
510
510
|
throw new Error(
|
|
511
|
-
`Native binding package version mismatch, expected 0.2.
|
|
511
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
512
512
|
);
|
|
513
513
|
}
|
|
514
514
|
return binding;
|
|
@@ -526,12 +526,12 @@ function requireNative() {
|
|
|
526
526
|
const bindingPackageVersion =
|
|
527
527
|
require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
|
|
528
528
|
if (
|
|
529
|
-
bindingPackageVersion !== '0.2.
|
|
529
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
530
530
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
531
531
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
532
532
|
) {
|
|
533
533
|
throw new Error(
|
|
534
|
-
`Native binding package version mismatch, expected 0.2.
|
|
534
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
537
|
return binding;
|
|
@@ -551,12 +551,12 @@ function requireNative() {
|
|
|
551
551
|
const bindingPackageVersion =
|
|
552
552
|
require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
|
|
553
553
|
if (
|
|
554
|
-
bindingPackageVersion !== '0.2.
|
|
554
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
555
555
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
556
556
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
557
557
|
) {
|
|
558
558
|
throw new Error(
|
|
559
|
-
`Native binding package version mismatch, expected 0.2.
|
|
559
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
560
560
|
);
|
|
561
561
|
}
|
|
562
562
|
return binding;
|
|
@@ -574,12 +574,12 @@ function requireNative() {
|
|
|
574
574
|
const bindingPackageVersion =
|
|
575
575
|
require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
|
|
576
576
|
if (
|
|
577
|
-
bindingPackageVersion !== '0.2.
|
|
577
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
578
578
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
579
579
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
580
580
|
) {
|
|
581
581
|
throw new Error(
|
|
582
|
-
`Native binding package version mismatch, expected 0.2.
|
|
582
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
583
583
|
);
|
|
584
584
|
}
|
|
585
585
|
return binding;
|
|
@@ -598,12 +598,12 @@ function requireNative() {
|
|
|
598
598
|
const bindingPackageVersion =
|
|
599
599
|
require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
|
|
600
600
|
if (
|
|
601
|
-
bindingPackageVersion !== '0.2.
|
|
601
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
602
602
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
603
603
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
604
604
|
) {
|
|
605
605
|
throw new Error(
|
|
606
|
-
`Native binding package version mismatch, expected 0.2.
|
|
606
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
607
607
|
);
|
|
608
608
|
}
|
|
609
609
|
return binding;
|
|
@@ -621,12 +621,12 @@ function requireNative() {
|
|
|
621
621
|
const bindingPackageVersion =
|
|
622
622
|
require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
|
|
623
623
|
if (
|
|
624
|
-
bindingPackageVersion !== '0.2.
|
|
624
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
625
625
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
626
626
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
627
627
|
) {
|
|
628
628
|
throw new Error(
|
|
629
|
-
`Native binding package version mismatch, expected 0.2.
|
|
629
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
630
630
|
);
|
|
631
631
|
}
|
|
632
632
|
return binding;
|
|
@@ -648,12 +648,12 @@ function requireNative() {
|
|
|
648
648
|
const bindingPackageVersion =
|
|
649
649
|
require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
|
|
650
650
|
if (
|
|
651
|
-
bindingPackageVersion !== '0.2.
|
|
651
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
652
652
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
653
653
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
654
654
|
) {
|
|
655
655
|
throw new Error(
|
|
656
|
-
`Native binding package version mismatch, expected 0.2.
|
|
656
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
659
|
return binding;
|
|
@@ -671,12 +671,12 @@ function requireNative() {
|
|
|
671
671
|
const bindingPackageVersion =
|
|
672
672
|
require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
|
|
673
673
|
if (
|
|
674
|
-
bindingPackageVersion !== '0.2.
|
|
674
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
675
675
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
676
676
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
677
677
|
) {
|
|
678
678
|
throw new Error(
|
|
679
|
-
`Native binding package version mismatch, expected 0.2.
|
|
679
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
680
680
|
);
|
|
681
681
|
}
|
|
682
682
|
return binding;
|
|
@@ -694,12 +694,12 @@ function requireNative() {
|
|
|
694
694
|
const bindingPackageVersion =
|
|
695
695
|
require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
|
|
696
696
|
if (
|
|
697
|
-
bindingPackageVersion !== '0.2.
|
|
697
|
+
bindingPackageVersion !== '0.2.6' &&
|
|
698
698
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
|
|
699
699
|
process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
|
|
700
700
|
) {
|
|
701
701
|
throw new Error(
|
|
702
|
-
`Native binding package version mismatch, expected 0.2.
|
|
702
|
+
`Native binding package version mismatch, expected 0.2.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
705
|
return binding;
|
|
@@ -849,6 +849,7 @@ module.exports.shutdownAsyncRuntime = nativeBinding.shutdownAsyncRuntime;
|
|
|
849
849
|
module.exports.startAsyncRuntime = nativeBinding.startAsyncRuntime;
|
|
850
850
|
module.exports.detectWorkspace = nativeBinding.detectWorkspace;
|
|
851
851
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
852
|
+
module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
|
|
852
853
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
853
854
|
module.exports.mergeJsonConfig = nativeBinding.mergeJsonConfig;
|
|
854
855
|
module.exports.mergeTsdownConfig = nativeBinding.mergeTsdownConfig;
|
package/binding/index.d.cts
CHANGED
|
@@ -144,6 +144,17 @@ export interface MangleOptions {
|
|
|
144
144
|
* @default false
|
|
145
145
|
*/
|
|
146
146
|
keepNames?: boolean | MangleOptionsKeepNames;
|
|
147
|
+
/**
|
|
148
|
+
* Names that bindings must not be renamed to, and that bindings already
|
|
149
|
+
* carrying them keep. Equivalent to terser's `mangle.reserved`.
|
|
150
|
+
*
|
|
151
|
+
* Pass `['exports', 'module']` when minifying prebuilt CommonJS / UMD files
|
|
152
|
+
* that Node consumers `import` directly, so Node's cjs-module-lexer can still
|
|
153
|
+
* detect the mangled module's named exports.
|
|
154
|
+
*
|
|
155
|
+
* @default []
|
|
156
|
+
*/
|
|
157
|
+
reserved?: Array<string>;
|
|
147
158
|
/** Debug mangled names. */
|
|
148
159
|
debug?: boolean;
|
|
149
160
|
}
|
|
@@ -1620,11 +1631,16 @@ export declare class BindingDevEngine {
|
|
|
1620
1631
|
getBundleState(): Promise<BindingBundleState>;
|
|
1621
1632
|
ensureLatestBuildOutput(): Promise<BindingResult<undefined>>;
|
|
1622
1633
|
triggerFullBuild(): void;
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1634
|
+
/**
|
|
1635
|
+
* Client-connect signal (the clientId hello): creates the per-client session
|
|
1636
|
+
* with an empty ship map. Reconnects arrive as fresh clientIds.
|
|
1637
|
+
*/
|
|
1638
|
+
registerClient(clientId: string): Promise<void>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Delivery notification from the serving middleware: the response for
|
|
1641
|
+
* `filename` completed, so record its modules as shipped to that client.
|
|
1642
|
+
*/
|
|
1643
|
+
notifyPayloadDelivered(filename: string): Promise<void>;
|
|
1628
1644
|
removeClient(clientId: string): Promise<void>;
|
|
1629
1645
|
close(): Promise<void>;
|
|
1630
1646
|
/**
|
|
@@ -1634,7 +1650,7 @@ export declare class BindingDevEngine {
|
|
|
1634
1650
|
* The module was previously stubbed with a proxy, and now we need to compile the
|
|
1635
1651
|
* actual module and its dependencies.
|
|
1636
1652
|
*/
|
|
1637
|
-
compileEntry(moduleId: string, clientId: string): Promise<
|
|
1653
|
+
compileEntry(moduleId: string, clientId: string): Promise<BindingLazyChunkOutput>;
|
|
1638
1654
|
}
|
|
1639
1655
|
|
|
1640
1656
|
export declare class BindingLoadPluginContext {
|
|
@@ -1762,6 +1778,7 @@ export declare class BindingNormalizedOptions {
|
|
|
1762
1778
|
get name(): string | null;
|
|
1763
1779
|
get entryFilenames(): string | undefined;
|
|
1764
1780
|
get chunkFilenames(): string | undefined;
|
|
1781
|
+
get sourcemapFilenames(): string | undefined;
|
|
1765
1782
|
get assetFilenames(): string | undefined;
|
|
1766
1783
|
get dir(): string | null;
|
|
1767
1784
|
get file(): string | null;
|
|
@@ -2343,19 +2360,18 @@ export interface BindingGeneratedCodeOptions {
|
|
|
2343
2360
|
preset?: string;
|
|
2344
2361
|
}
|
|
2345
2362
|
|
|
2346
|
-
export interface BindingHmrBoundaryOutput {
|
|
2347
|
-
boundary: string;
|
|
2348
|
-
acceptedVia: string;
|
|
2349
|
-
}
|
|
2350
|
-
|
|
2351
2363
|
export type BindingHmrUpdate =
|
|
2352
2364
|
| {
|
|
2353
2365
|
type: 'Patch';
|
|
2354
2366
|
code: string;
|
|
2355
2367
|
filename: string;
|
|
2356
2368
|
sourcemap?: string;
|
|
2357
|
-
sourcemapFilename?: string
|
|
2358
|
-
|
|
2369
|
+
sourcemapFilename?: string /**
|
|
2370
|
+
* Stable ids of the changed modules — the `changedIds` of the push envelope.
|
|
2371
|
+
* The client walks from these on its own graph.
|
|
2372
|
+
*/;
|
|
2373
|
+
changedIds: Array<string> /** Per-client envelope sequence number. */;
|
|
2374
|
+
seq: number;
|
|
2359
2375
|
}
|
|
2360
2376
|
| { type: 'FullReload'; reason?: string }
|
|
2361
2377
|
| { type: 'Noop' };
|
|
@@ -2526,6 +2542,15 @@ export interface BindingJsWatchChangeEvent {
|
|
|
2526
2542
|
event: string;
|
|
2527
2543
|
}
|
|
2528
2544
|
|
|
2545
|
+
/**
|
|
2546
|
+
* The client-facing slice of a lazy-compile result. The carried modules and
|
|
2547
|
+
* stamps stay server-side as the engine's pending-payload entry.
|
|
2548
|
+
*/
|
|
2549
|
+
export interface BindingLazyChunkOutput {
|
|
2550
|
+
code: string;
|
|
2551
|
+
filename: string;
|
|
2552
|
+
}
|
|
2553
|
+
|
|
2529
2554
|
export interface BindingLog {
|
|
2530
2555
|
message: string;
|
|
2531
2556
|
id?: string;
|
|
@@ -2591,15 +2616,6 @@ export interface BindingMatchGroup {
|
|
|
2591
2616
|
includeDependenciesRecursively?: boolean;
|
|
2592
2617
|
}
|
|
2593
2618
|
|
|
2594
|
-
export interface BindingModulePreloadOptions {
|
|
2595
|
-
polyfill: boolean;
|
|
2596
|
-
resolveDependencies?: (
|
|
2597
|
-
filename: string,
|
|
2598
|
-
deps: string[],
|
|
2599
|
-
context: { hostId: string; hostType: 'html' | 'js' },
|
|
2600
|
-
) => string[];
|
|
2601
|
-
}
|
|
2602
|
-
|
|
2603
2619
|
export interface BindingModules {
|
|
2604
2620
|
values: Array<BindingRenderedModule>;
|
|
2605
2621
|
keys: Array<string>;
|
|
@@ -2643,6 +2659,7 @@ export interface BindingOutputOptions {
|
|
|
2643
2659
|
paths?: Record<string, string> | ((id: string) => string);
|
|
2644
2660
|
plugins: (BindingBuiltinPlugin | BindingPluginOptions | undefined)[];
|
|
2645
2661
|
sourcemap?: 'file' | 'inline' | 'hidden';
|
|
2662
|
+
sourcemapFileNames?: string | ((chunk: PreRenderedChunk) => string);
|
|
2646
2663
|
sourcemapBaseUrl?: string;
|
|
2647
2664
|
sourcemapIgnoreList?:
|
|
2648
2665
|
| boolean
|
|
@@ -2839,20 +2856,7 @@ export declare const enum BindingPropertyWriteSideEffects {
|
|
|
2839
2856
|
|
|
2840
2857
|
export declare const enum BindingRebuildStrategy {
|
|
2841
2858
|
Always = 0,
|
|
2842
|
-
|
|
2843
|
-
Never = 2,
|
|
2844
|
-
}
|
|
2845
|
-
|
|
2846
|
-
export interface BindingRenderBuiltUrlConfig {
|
|
2847
|
-
ssr: boolean;
|
|
2848
|
-
type: 'asset' | 'public';
|
|
2849
|
-
hostId: string;
|
|
2850
|
-
hostType: 'js' | 'css' | 'html';
|
|
2851
|
-
}
|
|
2852
|
-
|
|
2853
|
-
export interface BindingRenderBuiltUrlRet {
|
|
2854
|
-
relative?: boolean;
|
|
2855
|
-
runtime?: string;
|
|
2859
|
+
Never = 1,
|
|
2856
2860
|
}
|
|
2857
2861
|
|
|
2858
2862
|
export interface BindingReplacePluginConfig {
|
|
@@ -2863,11 +2867,6 @@ export interface BindingReplacePluginConfig {
|
|
|
2863
2867
|
sourcemap?: boolean;
|
|
2864
2868
|
}
|
|
2865
2869
|
|
|
2866
|
-
export interface BindingResolveDependenciesContext {
|
|
2867
|
-
hostId: string;
|
|
2868
|
-
hostType: string;
|
|
2869
|
-
}
|
|
2870
|
-
|
|
2871
2870
|
export type BindingResolvedExternal = boolean | string;
|
|
2872
2871
|
|
|
2873
2872
|
export interface BindingResolveOptions {
|
|
@@ -3378,6 +3377,9 @@ export interface DownloadPackageManagerResult {
|
|
|
3378
3377
|
version: string;
|
|
3379
3378
|
}
|
|
3380
3379
|
|
|
3380
|
+
/** Re-enable blocking stdio after Node.js has initialized its lazy standard streams. */
|
|
3381
|
+
export declare function ensureBlockingStdio(): void;
|
|
3382
|
+
|
|
3381
3383
|
/**
|
|
3382
3384
|
* Whether `config_key` is already declared as a top-level property in the
|
|
3383
3385
|
* vite config's `defineConfig({...})` (or equivalent) object literal.
|