vite-plus 1.0.0-rc.1 → 1.1.0

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 (55) hide show
  1. package/LICENSE +30 -5
  2. package/README.md +7 -7
  3. package/binding/index.cjs +54 -55
  4. package/binding/index.d.cts +50 -12
  5. package/dist/{agent-DIwEez_1.js → agent-eISuMXJb.js} +2 -2
  6. package/dist/bin.js +9 -6
  7. package/dist/config/bin.js +3 -3
  8. package/dist/{constants-BAsBfS1J.js → constants-CCQkpaxK.js} +2 -2
  9. package/dist/create/bin.js +42 -10
  10. package/dist/{define-config-CAeeMTvb.cjs → define-config-CREUiMmM.cjs} +2 -2
  11. package/dist/{define-config-Cf_5GHmY.d.ts → define-config-CeW9DETl.d.ts} +24 -8
  12. package/dist/{define-config-Bz6dc3fm.js → define-config-Ro6PS4dP.js} +2 -2
  13. package/dist/define-config.cjs +1 -1
  14. package/dist/define-config.d.ts +1 -1
  15. package/dist/define-config.js +1 -1
  16. package/dist/{dist-BWiANxFS.js → dist-DUsqQuw8.js} +117 -1395
  17. package/dist/{editor-DWgrWTbN.js → editor-B8tkz7nL.js} +94 -52
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/lint-plugins.cjs +1 -1
  22. package/dist/migration/bin.js +54 -50
  23. package/dist/{oxlint-plugin-config-B-P1a_0g.js → oxlint-plugin-config-CbG58Kzr.js} +1 -1
  24. package/dist/oxlint-plugin.js +2 -2
  25. package/dist/pack-bin.js +3 -2
  26. package/dist/{package-BrupPpWA.js → package-BS84eWrW.js} +7 -2
  27. package/dist/package-overrides-CpoQngt3.js +411 -0
  28. package/dist/{prompts-BW7_fDGJ.js → prompts-ByOzbMBG.js} +537 -252
  29. package/dist/{resolve-vite-config-DcsMQaYy.js → resolve-vite-config-Be237LWp.js} +2 -2
  30. package/dist/{resolve-vite-config-D3XIVT6s.js → resolve-vite-config-CofpYgnY.js} +1 -1
  31. package/dist/staged/bin.js +791 -742
  32. package/dist/sync-versions/bin.js +4 -6
  33. package/dist/sync-versions/bin.mjs +247 -1419
  34. package/dist/toolchain.js +9 -9
  35. package/dist/toolchain.json +9 -9
  36. package/dist/{tsconfig-DESFDzWP.js → tsconfig-3ONY2k2K.js} +1 -1
  37. package/dist/{tsconfig-piorpNV7.js → tsconfig-DzZ-nrx2.js} +2 -2
  38. package/dist/version.js +2 -2
  39. package/dist/versions.js +5 -5
  40. package/docs/guide/ci.md +3 -4
  41. package/docs/guide/env.md +10 -5
  42. package/docs/guide/github-actions-cache.md +1 -3
  43. package/docs/guide/ide-integration.md +3 -1
  44. package/docs/guide/implode.md +2 -0
  45. package/docs/guide/install.md +3 -0
  46. package/docs/guide/local-cli.md +7 -7
  47. package/docs/guide/migrate-rules.md +8 -0
  48. package/docs/guide/migrate.md +7 -7
  49. package/docs/guide/test.md +1 -1
  50. package/docs/guide/troubleshooting.md +2 -2
  51. package/docs/guide/upgrade-project.md +1 -1
  52. package/docs/guide/vitest-v5.md +2 -2
  53. package/docs/guide/vpx.md +2 -2
  54. package/package.json +31 -28
  55. package/dist/package-overrides-Dpn4scvN.js +0 -17
package/LICENSE CHANGED
@@ -337,15 +337,11 @@ Repository: https://github.com/isaacs/node-glob
337
337
 
338
338
  ---------------------------------------
339
339
 
340
- ## isexe, semver, which
340
+ ## isexe, which
341
341
  License: ISC
342
342
  By: Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)
343
343
  Repository: https://github.com/isaacs/isexe
344
344
 
345
- License: ISC
346
- By: GitHub Inc.
347
- Repository: https://github.com/npm/node-semver
348
-
349
345
  License: ISC
350
346
  By: Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)
351
347
  Repository: https://github.com/isaacs/node-which
@@ -776,6 +772,35 @@ Repository: https://github.com/npm/validate-npm-package-name
776
772
 
777
773
  ---------------------------------------
778
774
 
775
+ ## verkit
776
+ License: MIT
777
+ By: Kevin Deng <sxzz@sxzz.moe>
778
+ Repository: https://github.com/sxzz/verkit
779
+
780
+ > The MIT License (MIT)
781
+ >
782
+ > Copyright © 2026-PRESENT Kevin Deng (https://github.com/sxzz)
783
+ >
784
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
785
+ > of this software and associated documentation files (the "Software"), to deal
786
+ > in the Software without restriction, including without limitation the rights
787
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
788
+ > copies of the Software, and to permit persons to whom the Software is
789
+ > furnished to do so, subject to the following conditions:
790
+ >
791
+ > The above copyright notice and this permission notice shall be included in all
792
+ > copies or substantial portions of the Software.
793
+ >
794
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
795
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
796
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
797
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
798
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
799
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
800
+ > SOFTWARE.
801
+
802
+ ---------------------------------------
803
+
779
804
  ## yaml
780
805
  License: ISC
781
806
  By: Eemeli Aro <eemeli@gmail.com>
package/README.md CHANGED
@@ -198,12 +198,12 @@ If you are manually migrating a project to Vite+, install these dev dependencies
198
198
  vp install -D vite-plus
199
199
  ```
200
200
 
201
- Add package-manager overrides so that other packages use the Vite+ versions. Alias `vite` to `@voidzero-dev/vite-plus-core`. Pin `vitest` to the version from `vp toolchain vitest`. The project and `vp test` then use the same Vitest copy. Without the pin, a dependency or workspace package can install a different Vitest version. The two versions can use separate mocks, `expect` functions, and runner states:
201
+ Add package-manager overrides so that other packages use the Vite+ versions. Alias `vite` to `@voidzero-dev/vite-plus-core`, setting `<vite-plus-version>` to the installed `vite-plus` version. Pin `vitest` to `<vitest-version>`, using the bundled version shown by `vp toolchain vitest`. The project and `vp test` then use the same Vitest copy. Without the pin, a dependency or workspace package can install a different Vitest version. The two versions can use separate mocks, `expect` functions, and runner states:
202
202
 
203
203
  ```json
204
204
  "overrides": {
205
- "vite": "npm:@voidzero-dev/vite-plus-core@latest",
206
- "vitest": "5.0.1"
205
+ "vite": "npm:@voidzero-dev/vite-plus-core@<vite-plus-version>",
206
+ "vitest": "<vitest-version>"
207
207
  }
208
208
  ```
209
209
 
@@ -211,16 +211,16 @@ If you are using `pnpm`, add this to your `pnpm-workspace.yaml`:
211
211
 
212
212
  ```yaml
213
213
  overrides:
214
- vite: npm:@voidzero-dev/vite-plus-core@latest
215
- vitest: 5.0.1
214
+ vite@*: npm:@voidzero-dev/vite-plus-core@<vite-plus-version> # Match the installed vite-plus version
215
+ vitest@*: <vitest-version> # Match the version from vp toolchain vitest
216
216
  ```
217
217
 
218
218
  Or, if you are using Yarn:
219
219
 
220
220
  ```json
221
221
  "resolutions": {
222
- "vite": "npm:@voidzero-dev/vite-plus-core@latest",
223
- "vitest": "5.0.1"
222
+ "vite": "npm:@voidzero-dev/vite-plus-core@<vite-plus-version>",
223
+ "vitest": "<vitest-version>"
224
224
  }
225
225
  ```
226
226
 
package/binding/index.cjs CHANGED
@@ -93,12 +93,12 @@ function requireNative() {
93
93
  const bindingPackageVersion =
94
94
  require('@voidzero-dev/vite-plus-android-arm64/package.json').version;
95
95
  if (
96
- bindingPackageVersion !== '1.0.0-rc.1' &&
96
+ bindingPackageVersion !== '1.1.0' &&
97
97
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
98
98
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
99
99
  ) {
100
100
  throw new Error(
101
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
101
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
102
102
  );
103
103
  }
104
104
  return binding;
@@ -116,12 +116,12 @@ function requireNative() {
116
116
  const bindingPackageVersion =
117
117
  require('@voidzero-dev/vite-plus-android-arm-eabi/package.json').version;
118
118
  if (
119
- bindingPackageVersion !== '1.0.0-rc.1' &&
119
+ bindingPackageVersion !== '1.1.0' &&
120
120
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
121
121
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
122
122
  ) {
123
123
  throw new Error(
124
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
124
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
125
125
  );
126
126
  }
127
127
  return binding;
@@ -151,12 +151,12 @@ function requireNative() {
151
151
  const bindingPackageVersion =
152
152
  require('@voidzero-dev/vite-plus-win32-x64-gnu/package.json').version;
153
153
  if (
154
- bindingPackageVersion !== '1.0.0-rc.1' &&
154
+ bindingPackageVersion !== '1.1.0' &&
155
155
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
157
157
  ) {
158
158
  throw new Error(
159
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
159
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
160
  );
161
161
  }
162
162
  return binding;
@@ -174,12 +174,12 @@ function requireNative() {
174
174
  const bindingPackageVersion =
175
175
  require('@voidzero-dev/vite-plus-win32-x64-msvc/package.json').version;
176
176
  if (
177
- bindingPackageVersion !== '1.0.0-rc.1' &&
177
+ bindingPackageVersion !== '1.1.0' &&
178
178
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
179
179
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
180
180
  ) {
181
181
  throw new Error(
182
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
182
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
183
  );
184
184
  }
185
185
  return binding;
@@ -198,12 +198,12 @@ function requireNative() {
198
198
  const bindingPackageVersion =
199
199
  require('@voidzero-dev/vite-plus-win32-ia32-msvc/package.json').version;
200
200
  if (
201
- bindingPackageVersion !== '1.0.0-rc.1' &&
201
+ bindingPackageVersion !== '1.1.0' &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
203
203
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
204
204
  ) {
205
205
  throw new Error(
206
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
207
207
  );
208
208
  }
209
209
  return binding;
@@ -221,12 +221,12 @@ function requireNative() {
221
221
  const bindingPackageVersion =
222
222
  require('@voidzero-dev/vite-plus-win32-arm64-msvc/package.json').version;
223
223
  if (
224
- bindingPackageVersion !== '1.0.0-rc.1' &&
224
+ bindingPackageVersion !== '1.1.0' &&
225
225
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
226
226
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
227
227
  ) {
228
228
  throw new Error(
229
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
229
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
230
  );
231
231
  }
232
232
  return binding;
@@ -247,12 +247,12 @@ function requireNative() {
247
247
  const bindingPackageVersion =
248
248
  require('@voidzero-dev/vite-plus-darwin-universal/package.json').version;
249
249
  if (
250
- bindingPackageVersion !== '1.0.0-rc.1' &&
250
+ bindingPackageVersion !== '1.1.0' &&
251
251
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
252
252
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
253
253
  ) {
254
254
  throw new Error(
255
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
255
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
256
256
  );
257
257
  }
258
258
  return binding;
@@ -270,12 +270,12 @@ function requireNative() {
270
270
  const bindingPackageVersion =
271
271
  require('@voidzero-dev/vite-plus-darwin-x64/package.json').version;
272
272
  if (
273
- bindingPackageVersion !== '1.0.0-rc.1' &&
273
+ bindingPackageVersion !== '1.1.0' &&
274
274
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
275
275
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
276
276
  ) {
277
277
  throw new Error(
278
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
278
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
279
279
  );
280
280
  }
281
281
  return binding;
@@ -293,12 +293,12 @@ function requireNative() {
293
293
  const bindingPackageVersion =
294
294
  require('@voidzero-dev/vite-plus-darwin-arm64/package.json').version;
295
295
  if (
296
- bindingPackageVersion !== '1.0.0-rc.1' &&
296
+ bindingPackageVersion !== '1.1.0' &&
297
297
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
298
298
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
299
299
  ) {
300
300
  throw new Error(
301
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
302
302
  );
303
303
  }
304
304
  return binding;
@@ -320,12 +320,12 @@ function requireNative() {
320
320
  const bindingPackageVersion =
321
321
  require('@voidzero-dev/vite-plus-freebsd-x64/package.json').version;
322
322
  if (
323
- bindingPackageVersion !== '1.0.0-rc.1' &&
323
+ bindingPackageVersion !== '1.1.0' &&
324
324
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
325
325
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
326
326
  ) {
327
327
  throw new Error(
328
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
328
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
329
329
  );
330
330
  }
331
331
  return binding;
@@ -343,12 +343,12 @@ function requireNative() {
343
343
  const bindingPackageVersion =
344
344
  require('@voidzero-dev/vite-plus-freebsd-arm64/package.json').version;
345
345
  if (
346
- bindingPackageVersion !== '1.0.0-rc.1' &&
346
+ bindingPackageVersion !== '1.1.0' &&
347
347
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
348
348
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
349
349
  ) {
350
350
  throw new Error(
351
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
351
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
352
352
  );
353
353
  }
354
354
  return binding;
@@ -371,12 +371,12 @@ function requireNative() {
371
371
  const bindingPackageVersion =
372
372
  require('@voidzero-dev/vite-plus-linux-x64-musl/package.json').version;
373
373
  if (
374
- bindingPackageVersion !== '1.0.0-rc.1' &&
374
+ bindingPackageVersion !== '1.1.0' &&
375
375
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
376
376
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
377
377
  ) {
378
378
  throw new Error(
379
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
379
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
380
380
  );
381
381
  }
382
382
  return binding;
@@ -394,12 +394,12 @@ function requireNative() {
394
394
  const bindingPackageVersion =
395
395
  require('@voidzero-dev/vite-plus-linux-x64-gnu/package.json').version;
396
396
  if (
397
- bindingPackageVersion !== '1.0.0-rc.1' &&
397
+ bindingPackageVersion !== '1.1.0' &&
398
398
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
399
399
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
400
400
  ) {
401
401
  throw new Error(
402
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
402
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
403
403
  );
404
404
  }
405
405
  return binding;
@@ -419,12 +419,12 @@ function requireNative() {
419
419
  const bindingPackageVersion =
420
420
  require('@voidzero-dev/vite-plus-linux-arm64-musl/package.json').version;
421
421
  if (
422
- bindingPackageVersion !== '1.0.0-rc.1' &&
422
+ bindingPackageVersion !== '1.1.0' &&
423
423
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
424
424
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
425
425
  ) {
426
426
  throw new Error(
427
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
427
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
428
428
  );
429
429
  }
430
430
  return binding;
@@ -442,12 +442,12 @@ function requireNative() {
442
442
  const bindingPackageVersion =
443
443
  require('@voidzero-dev/vite-plus-linux-arm64-gnu/package.json').version;
444
444
  if (
445
- bindingPackageVersion !== '1.0.0-rc.1' &&
445
+ bindingPackageVersion !== '1.1.0' &&
446
446
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
447
447
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
448
448
  ) {
449
449
  throw new Error(
450
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
450
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
451
451
  );
452
452
  }
453
453
  return binding;
@@ -467,12 +467,12 @@ function requireNative() {
467
467
  const bindingPackageVersion =
468
468
  require('@voidzero-dev/vite-plus-linux-arm-musleabihf/package.json').version;
469
469
  if (
470
- bindingPackageVersion !== '1.0.0-rc.1' &&
470
+ bindingPackageVersion !== '1.1.0' &&
471
471
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
472
472
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
473
473
  ) {
474
474
  throw new Error(
475
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
475
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
476
476
  );
477
477
  }
478
478
  return binding;
@@ -490,12 +490,12 @@ function requireNative() {
490
490
  const bindingPackageVersion =
491
491
  require('@voidzero-dev/vite-plus-linux-arm-gnueabihf/package.json').version;
492
492
  if (
493
- bindingPackageVersion !== '1.0.0-rc.1' &&
493
+ bindingPackageVersion !== '1.1.0' &&
494
494
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
495
495
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
496
496
  ) {
497
497
  throw new Error(
498
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
498
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
499
499
  );
500
500
  }
501
501
  return binding;
@@ -515,12 +515,12 @@ function requireNative() {
515
515
  const bindingPackageVersion =
516
516
  require('@voidzero-dev/vite-plus-linux-loong64-musl/package.json').version;
517
517
  if (
518
- bindingPackageVersion !== '1.0.0-rc.1' &&
518
+ bindingPackageVersion !== '1.1.0' &&
519
519
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
520
520
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
521
521
  ) {
522
522
  throw new Error(
523
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
523
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
524
524
  );
525
525
  }
526
526
  return binding;
@@ -538,12 +538,12 @@ function requireNative() {
538
538
  const bindingPackageVersion =
539
539
  require('@voidzero-dev/vite-plus-linux-loong64-gnu/package.json').version;
540
540
  if (
541
- bindingPackageVersion !== '1.0.0-rc.1' &&
541
+ bindingPackageVersion !== '1.1.0' &&
542
542
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
543
543
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
544
544
  ) {
545
545
  throw new Error(
546
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
546
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
547
547
  );
548
548
  }
549
549
  return binding;
@@ -563,12 +563,12 @@ function requireNative() {
563
563
  const bindingPackageVersion =
564
564
  require('@voidzero-dev/vite-plus-linux-riscv64-musl/package.json').version;
565
565
  if (
566
- bindingPackageVersion !== '1.0.0-rc.1' &&
566
+ bindingPackageVersion !== '1.1.0' &&
567
567
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
568
568
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
569
569
  ) {
570
570
  throw new Error(
571
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
571
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
572
572
  );
573
573
  }
574
574
  return binding;
@@ -586,12 +586,12 @@ function requireNative() {
586
586
  const bindingPackageVersion =
587
587
  require('@voidzero-dev/vite-plus-linux-riscv64-gnu/package.json').version;
588
588
  if (
589
- bindingPackageVersion !== '1.0.0-rc.1' &&
589
+ bindingPackageVersion !== '1.1.0' &&
590
590
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
591
591
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
592
592
  ) {
593
593
  throw new Error(
594
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
594
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
595
595
  );
596
596
  }
597
597
  return binding;
@@ -610,12 +610,12 @@ function requireNative() {
610
610
  const bindingPackageVersion =
611
611
  require('@voidzero-dev/vite-plus-linux-ppc64-gnu/package.json').version;
612
612
  if (
613
- bindingPackageVersion !== '1.0.0-rc.1' &&
613
+ bindingPackageVersion !== '1.1.0' &&
614
614
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
615
615
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
616
616
  ) {
617
617
  throw new Error(
618
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
618
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
619
619
  );
620
620
  }
621
621
  return binding;
@@ -633,12 +633,12 @@ function requireNative() {
633
633
  const bindingPackageVersion =
634
634
  require('@voidzero-dev/vite-plus-linux-s390x-gnu/package.json').version;
635
635
  if (
636
- bindingPackageVersion !== '1.0.0-rc.1' &&
636
+ bindingPackageVersion !== '1.1.0' &&
637
637
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
638
638
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
639
639
  ) {
640
640
  throw new Error(
641
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
641
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
642
642
  );
643
643
  }
644
644
  return binding;
@@ -660,12 +660,12 @@ function requireNative() {
660
660
  const bindingPackageVersion =
661
661
  require('@voidzero-dev/vite-plus-openharmony-arm64/package.json').version;
662
662
  if (
663
- bindingPackageVersion !== '1.0.0-rc.1' &&
663
+ bindingPackageVersion !== '1.1.0' &&
664
664
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
665
665
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
666
666
  ) {
667
667
  throw new Error(
668
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
668
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
669
669
  );
670
670
  }
671
671
  return binding;
@@ -683,12 +683,12 @@ function requireNative() {
683
683
  const bindingPackageVersion =
684
684
  require('@voidzero-dev/vite-plus-openharmony-x64/package.json').version;
685
685
  if (
686
- bindingPackageVersion !== '1.0.0-rc.1' &&
686
+ bindingPackageVersion !== '1.1.0' &&
687
687
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
688
688
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
689
689
  ) {
690
690
  throw new Error(
691
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
691
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
692
692
  );
693
693
  }
694
694
  return binding;
@@ -706,12 +706,12 @@ function requireNative() {
706
706
  const bindingPackageVersion =
707
707
  require('@voidzero-dev/vite-plus-openharmony-arm/package.json').version;
708
708
  if (
709
- bindingPackageVersion !== '1.0.0-rc.1' &&
709
+ bindingPackageVersion !== '1.1.0' &&
710
710
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
711
711
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
712
712
  ) {
713
713
  throw new Error(
714
- `Native binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
714
+ `Native binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
715
715
  );
716
716
  }
717
717
  return binding;
@@ -857,9 +857,9 @@ if (!nativeBinding || forceWasi) {
857
857
  ) {
858
858
  const bindingPackageVersion =
859
859
  require('@voidzero-dev/vite-plus-wasm32-wasi/package.json').version;
860
- if (bindingPackageVersion !== '1.0.0-rc.1') {
860
+ if (bindingPackageVersion !== '1.1.0') {
861
861
  throw new Error(
862
- `WASI binding package version mismatch, expected 1.0.0-rc.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
862
+ `WASI binding package version mismatch, expected 1.1.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
863
863
  );
864
864
  }
865
865
  }
@@ -1021,7 +1021,6 @@ module.exports.BindingWatcherEvent = nativeBinding.BindingWatcherEvent;
1021
1021
  module.exports.ParallelJsPluginRegistry = nativeBinding.ParallelJsPluginRegistry;
1022
1022
  module.exports.TraceSubscriberGuard = nativeBinding.TraceSubscriberGuard;
1023
1023
  module.exports.TsconfigCache = nativeBinding.TsconfigCache;
1024
- module.exports.__internalForcePanic = nativeBinding.__internalForcePanic;
1025
1024
  module.exports.BindingAttachDebugInfo = nativeBinding.BindingAttachDebugInfo;
1026
1025
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
1027
1026
  module.exports.BindingChunkModuleOrderBy = nativeBinding.BindingChunkModuleOrderBy;
@@ -949,6 +949,39 @@ export interface TsconfigOptions {
949
949
  references?: 'auto';
950
950
  }
951
951
 
952
+ /** See <https://tc39.es/ecma426/#sec-source-map-format>. */
953
+ export interface JSONSourceMap {
954
+ /** The version field, must be 3. */
955
+ version: number;
956
+ /** An optional name of the generated code that this source map is associated with. */
957
+ file?: string;
958
+ /** A string with the encoded mapping data. */
959
+ mappings: string;
960
+ /**
961
+ * An optional source root, useful for relocating source files on a server or removing repeated values in the "sources" entry.
962
+ * This value is prepended to the individual entries in the "source" field.
963
+ */
964
+ sourceRoot?: string;
965
+ /** A list of original sources used by the "mappings" entry. */
966
+ sources: Array<string>;
967
+ /**
968
+ * An optional list of source content, useful when the "source" can't be hosted.
969
+ * The contents are listed in the same order as the sources in line 5. "null" may be used if some original sources should be retrieved by name.
970
+ */
971
+ sourcesContent?: Array<string | undefined | null>;
972
+ /** A list of symbol names used by the "mappings" entry. */
973
+ names: Array<string>;
974
+ /** An optional field containing the debugId for this sourcemap. */
975
+ debugId?: string;
976
+ /**
977
+ * Identifies third-party sources (such as framework code or bundler-generated code), allowing developers to avoid code that they don't want to see or step through, without having to configure this beforehand.
978
+ * The `ignoreList` field refers to the `sources` array, and lists the indices of all the known third-party sources in that source map.
979
+ * When parsing the source map, developer tools can use this to determine sections of the code that the browser loads and runs that could be automatically ignore-listed.
980
+ * JSON input falls back to the deprecated `x_google_ignoreList` when `ignoreList` is missing or null.
981
+ */
982
+ ignoreList?: Array<number>;
983
+ }
984
+
952
985
  export interface SourceMap {
953
986
  file?: string;
954
987
  mappings: string;
@@ -957,7 +990,7 @@ export interface SourceMap {
957
990
  sources: Array<string>;
958
991
  sourcesContent?: Array<string>;
959
992
  version: number;
960
- x_google_ignoreList?: Array<number>;
993
+ ignoreList?: Array<number>;
961
994
  }
962
995
 
963
996
  export interface ArrowFunctionsOptions {
@@ -2053,13 +2086,6 @@ export declare class TsconfigCache {
2053
2086
  size(): number;
2054
2087
  }
2055
2088
 
2056
- /**
2057
- * Panics on purpose. CI calls this to check that a published binding can produce a
2058
- * symbolicated backtrace from its separately published debug info.
2059
- * See `scripts/misc/verify-debuginfo.mjs` and internal-docs/panic-symbolication/implementation.md
2060
- */
2061
- export declare function __internalForcePanic(): void;
2062
-
2063
2089
  export interface AliasItem {
2064
2090
  find: string;
2065
2091
  replacements: Array<string | undefined | null>;
@@ -2621,6 +2647,15 @@ export interface BindingInjectImportNamespace {
2621
2647
  from: string;
2622
2648
  }
2623
2649
 
2650
+ /**
2651
+ * `output.codeSplitting.experimentalInlineCommonChunks`. `exclude` entries use the same shape
2652
+ * as `BindingMatchGroup.test`, including the batched function shim.
2653
+ */
2654
+ export interface BindingInlineCommonChunksOptions {
2655
+ maxSize?: number;
2656
+ exclude?: Array<string | RegExp | ((ids: Array<string>) => Uint8Array)>;
2657
+ }
2658
+
2624
2659
  export interface BindingInlineConstConfig {
2625
2660
  mode?: string;
2626
2661
  pass?: number;
@@ -2678,6 +2713,7 @@ export interface BindingJsonSourcemap {
2678
2713
  sourcesContent?: Array<string | undefined | null>;
2679
2714
  names?: Array<string>;
2680
2715
  debugId?: string;
2716
+ ignoreList?: Array<number>;
2681
2717
  x_google_ignoreList?: Array<number>;
2682
2718
  }
2683
2719
 
@@ -2749,6 +2785,7 @@ export interface BindingManualCodeSplittingOptions {
2749
2785
  maxSize?: number;
2750
2786
  minModuleSize?: number;
2751
2787
  maxModuleSize?: number;
2788
+ experimentalInlineCommonChunks?: BindingInlineCommonChunksOptions;
2752
2789
  internalInvalidateModuleInfoCache?: () => void;
2753
2790
  }
2754
2791
 
@@ -3522,6 +3559,11 @@ export interface CliOptions {
3522
3559
  explicitChdir?: boolean;
3523
3560
  /** CLI arguments (should be process.argv.slice(2) from JavaScript) */
3524
3561
  args?: Array<string>;
3562
+ /**
3563
+ * Host Node.js version (`process.version`), used for the package-manager
3564
+ * lifecycle env user agent.
3565
+ */
3566
+ nodeVersion?: string;
3525
3567
  /** Generated toolchain manifest shipped with this vite-plus package. */
3526
3568
  toolchainManifestPath: string;
3527
3569
  /** Root directory of this vite-plus package. */
@@ -3702,7 +3744,6 @@ export interface JsCommandResolvedResult {
3702
3744
  * Returns a `MergeJsonConfigResult` containing:
3703
3745
  * - `content`: The updated vite config content
3704
3746
  * - `updated`: Whether any changes were made
3705
- * - `usesFunctionCallback`: Whether the config uses a function callback
3706
3747
  *
3707
3748
  * # Example
3708
3749
  *
@@ -3725,8 +3766,6 @@ export interface MergeJsonConfigResult {
3725
3766
  content: string;
3726
3767
  /** Whether any changes were made */
3727
3768
  updated: boolean;
3728
- /** Whether the config uses a function callback */
3729
- usesFunctionCallback: boolean;
3730
3769
  }
3731
3770
 
3732
3771
  /**
@@ -3745,7 +3784,6 @@ export interface MergeJsonConfigResult {
3745
3784
  * Returns a `MergeJsonConfigResult` containing:
3746
3785
  * - `content`: The updated vite config content
3747
3786
  * - `updated`: Whether any changes were made
3748
- * - `usesFunctionCallback`: Whether the config uses a function callback
3749
3787
  *
3750
3788
  * # Example
3751
3789
  *
@@ -1,6 +1,6 @@
1
1
  import { n as rewriteDocumentationLinks } from "./documentation-DqcZSthV.js";
2
- import { a as SETUP_VP_VERSION } from "./constants-BAsBfS1J.js";
3
- import { C as multiselect, S as log, T as select, k as isCancel } from "./prompts-BW7_fDGJ.js";
2
+ import { a as SETUP_VP_VERSION } from "./constants-CCQkpaxK.js";
3
+ import { E as multiselect, M as isCancel, O as select, T as log } from "./prompts-ByOzbMBG.js";
4
4
  import path from "node:path";
5
5
  import { styleText } from "node:util";
6
6
  import fs from "node:fs";