vite-plus 1.2.0 → 1.4.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.
- package/AGENTS.md +4 -0
- package/LICENSE +1 -849
- package/README.md +1 -1
- package/bin/vpx +9 -0
- package/binding/index.cjs +59 -54
- package/binding/index.d.cts +132 -2
- package/dist/{agent-KeDc6vmg.js → agent-D8oxxhVR.js} +7 -9
- package/dist/bin.js +27 -34
- package/dist/{cli-parse-DHE8NrBU.js → cli-parse-aeUeFDlC.js} +2 -3
- package/dist/command-TjS_6y9O.js +1 -0
- package/dist/{command-CguLh2KL.js → command-rY79K5NI.js} +40 -42
- package/dist/{comparison-CmVirWIW-DUGaiYqF.js → comparison-CmVirWIW-UlEf2maz.js} +1 -2
- package/dist/config/bin.js +8 -10
- package/dist/{constants-BW3g7VnD.js → constants-DRUnJ_Dz.js} +4 -6
- package/dist/create/bin.d.ts +4 -8
- package/dist/create/bin.js +64 -68
- package/dist/{define-config-CIlk9scU.js → define-config-ChwJcu5e.js} +6 -9
- package/dist/{define-config-Dq_23Eyr.cjs → define-config-Cv2P6NT2.cjs} +8 -13
- package/dist/{define-config-Bexdd6RZ.d.ts → define-config-rPhYIFSn.d.ts} +1 -11
- package/dist/define-config.cjs +1 -1
- package/dist/define-config.d.ts +1 -1
- package/dist/define-config.js +1 -1
- package/dist/{dist-Bi7ZEK3c.js → dist-Bs0SObNC.js} +77 -149
- package/dist/{dist-Cqz8OtiO.js → dist-CdkMvIiQ.js} +11 -5
- package/dist/dist-zDZV5eEc.js +3 -0
- package/dist/{documentation-DqcZSthV.js → documentation-cv_y0Auv.js} +1 -2
- package/dist/{editor-b1XUwt9v.js → editor-ClL78D8u.js} +1492 -4211
- package/dist/{help-BmKpeOP9.js → help-B03t_iQ4.js} +1 -2
- package/dist/hooks/bin.js +4 -5
- package/dist/{hooks-DhwsWb46.js → hooks-xRcJPc-O.js} +5 -4
- package/dist/index.cjs +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{json-JP24qHUF.js → json-kl84kDyH.js} +9 -18
- package/dist/lint-plugins.cjs +1 -1
- package/dist/migration/bin.js +719 -184
- package/dist/migration/compat/worker.js +4 -6
- package/dist/{oxlint-plugin-config-Dx-ZY2MN.js → oxlint-plugin-config-BVpqYdcC.js} +3 -4
- package/dist/oxlint-plugin.d.ts +0 -2
- package/dist/oxlint-plugin.js +6 -7
- package/dist/{pack-BK38MLVZ.d.ts → pack-ARPFMefW.d.ts} +0 -2
- package/dist/pack-bin.d.ts +1 -3
- package/dist/pack-bin.js +3 -4
- package/dist/pack.d.ts +1 -1
- package/dist/{package-BP16iQby.js → package-DzsomcUD.js} +10 -95
- package/dist/{package-overrides-D1RcXSFl.js → package-overrides-Ci8GXouY.js} +5 -8
- package/dist/picomatch-DEUoj81q.js +1916 -0
- package/dist/{prompts-BGpQtC5z.js → prompts-GL1vj0wk.js} +113 -239
- package/dist/{protocol-D99W10Qi.js → protocol-CkNmY-Mr.js} +1 -2
- package/dist/{report-NhQk8VHb.js → report-DLHO30yZ.js} +2 -2
- package/dist/{resolve-vite-config-x47JetlI.js → resolve-vite-config-Dn5896A4.js} +9 -25
- package/dist/resolve-vite-config-QO6cC0SP.js +1 -0
- package/dist/{rolldown-runtime-CMFfr-1z.js → rolldown-runtime-DegdyBIC.js} +2 -3
- package/dist/script-esm-hooks.d.ts +8 -0
- package/dist/script-esm-hooks.js +24 -0
- package/dist/script-hooks-9Fof5UMY.js +176 -0
- package/dist/script-preload.cjs +468 -0
- package/dist/script-register.d.ts +1 -0
- package/dist/script-register.js +22 -0
- package/dist/script-watch.d.ts +1 -0
- package/dist/script-watch.js +1908 -0
- package/dist/staged/bin.js +81 -2011
- package/dist/sync-versions/bin.js +29 -50
- package/dist/sync-versions/bin.mjs +117 -224
- package/dist/{terminal-MKGAuy-p.js → terminal-BcuPUy-j.js} +1 -2
- package/dist/toolchain.js +36 -10
- package/dist/toolchain.json +36 -10
- package/dist/{tsconfig-C5PnJfW4.js → tsconfig-Do6MAG_f.js} +1 -1
- package/dist/{tsconfig-D2DzAQ_D.js → tsconfig-LE_mAwe_.js} +8 -10
- package/dist/version.d.ts +1 -3
- package/dist/version.js +5 -6
- package/dist/versions.js +5 -5
- package/dist/{vitest-ecosystem-BU0AqZq-.js → vitest-ecosystem-BeEYz-qF.js} +1 -2
- package/dist/{vitest-v5-entry-points-DthU1e_O.js → vitest-v5-entry-points-NyJsFeux.js} +1 -2
- package/dist/vpx-bin.d.ts +1 -0
- package/dist/vpx-bin.js +232 -0
- package/dist/vpx-script-EXgV5QOf.js +434 -0
- package/docs/config/run.md +4 -0
- package/docs/guide/check.md +1 -0
- package/docs/guide/ci.md +13 -3
- package/docs/guide/create.md +34 -0
- package/docs/guide/env.md +27 -13
- package/docs/guide/global-cli.md +52 -0
- package/docs/guide/local-cli.md +4 -4
- package/docs/guide/migrate-rules.md +48 -5
- package/docs/guide/migrate.md +6 -6
- package/docs/guide/package-management.md +19 -2
- package/docs/guide/test.md +1 -1
- package/docs/guide/vitest-v5.md +2 -2
- package/docs/guide/vpx.md +170 -9
- package/package.json +32 -29
- package/dist/command-DaRqSNpP.js +0 -1
- package/dist/dist-CBWGibx8.js +0 -3
- package/dist/resolve-vite-config-CGzlyhGr.js +0 -1
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ Use `vp migrate` to migrate to Vite+. It merges tool-specific config files such
|
|
|
115
115
|
|
|
116
116
|
- **run** - Run monorepo tasks
|
|
117
117
|
- **exec** - Execute a command from local `node_modules/.bin`
|
|
118
|
-
- **node** - Run a Node.js script with the resolved Vite+ environment
|
|
118
|
+
- **node** - Run a Node.js script with the resolved Vite+ environment; use `vpx <file>` for TypeScript
|
|
119
119
|
- **dlx** - Execute a package binary without installing it as a dependency
|
|
120
120
|
- **cache** - Manage the task cache
|
|
121
121
|
|
package/bin/vpx
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import module from 'node:module';
|
|
4
|
+
if (module.enableCompileCache) {
|
|
5
|
+
module.enableCompileCache();
|
|
6
|
+
}
|
|
7
|
+
// Script files run with the loader in this package; package binaries run from
|
|
8
|
+
// node_modules/.bin or with this package's `vp dlx`. See src/vpx-bin.ts.
|
|
9
|
+
await import('../dist/vpx-bin.js');
|
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.
|
|
96
|
+
bindingPackageVersion !== '1.4.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.
|
|
101
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
119
|
+
bindingPackageVersion !== '1.4.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.
|
|
124
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
154
|
+
bindingPackageVersion !== '1.4.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.
|
|
159
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
177
|
+
bindingPackageVersion !== '1.4.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.
|
|
182
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
201
|
+
bindingPackageVersion !== '1.4.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.
|
|
206
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
224
|
+
bindingPackageVersion !== '1.4.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.
|
|
229
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
250
|
+
bindingPackageVersion !== '1.4.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.
|
|
255
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
273
|
+
bindingPackageVersion !== '1.4.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.
|
|
278
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
296
|
+
bindingPackageVersion !== '1.4.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.
|
|
301
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
323
|
+
bindingPackageVersion !== '1.4.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.
|
|
328
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
346
|
+
bindingPackageVersion !== '1.4.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.
|
|
351
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
374
|
+
bindingPackageVersion !== '1.4.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.
|
|
379
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
397
|
+
bindingPackageVersion !== '1.4.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.
|
|
402
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
422
|
+
bindingPackageVersion !== '1.4.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.
|
|
427
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
445
|
+
bindingPackageVersion !== '1.4.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.
|
|
450
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
470
|
+
bindingPackageVersion !== '1.4.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.
|
|
475
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
493
|
+
bindingPackageVersion !== '1.4.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.
|
|
498
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
518
|
+
bindingPackageVersion !== '1.4.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.
|
|
523
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
541
|
+
bindingPackageVersion !== '1.4.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.
|
|
546
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
566
|
+
bindingPackageVersion !== '1.4.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.
|
|
571
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
589
|
+
bindingPackageVersion !== '1.4.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.
|
|
594
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
613
|
+
bindingPackageVersion !== '1.4.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.
|
|
618
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
636
|
+
bindingPackageVersion !== '1.4.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.
|
|
641
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
663
|
+
bindingPackageVersion !== '1.4.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.
|
|
668
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
686
|
+
bindingPackageVersion !== '1.4.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.
|
|
691
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
709
|
+
bindingPackageVersion !== '1.4.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.
|
|
714
|
+
`Native binding package version mismatch, expected 1.4.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.
|
|
860
|
+
if (bindingPackageVersion !== '1.4.0') {
|
|
861
861
|
throw new Error(
|
|
862
|
-
`WASI binding package version mismatch, expected 1.
|
|
862
|
+
`WASI binding package version mismatch, expected 1.4.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
|
|
863
863
|
);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
@@ -1046,6 +1046,7 @@ module.exports.detectWorkspace = nativeBinding.detectWorkspace;
|
|
|
1046
1046
|
module.exports.documentationUrl = nativeBinding.documentationUrl;
|
|
1047
1047
|
module.exports.downloadPackageManager = nativeBinding.downloadPackageManager;
|
|
1048
1048
|
module.exports.ensureBlockingStdio = nativeBinding.ensureBlockingStdio;
|
|
1049
|
+
module.exports.findMonorepoRoot = nativeBinding.findMonorepoRoot;
|
|
1049
1050
|
module.exports.getVpDirs = nativeBinding.getVpDirs;
|
|
1050
1051
|
module.exports.hasConfigKey = nativeBinding.hasConfigKey;
|
|
1051
1052
|
module.exports.isDirectoryGitignored = nativeBinding.isDirectoryGitignored;
|
|
@@ -1055,9 +1056,12 @@ module.exports.migrateTaskCacheConfig = nativeBinding.migrateTaskCacheConfig;
|
|
|
1055
1056
|
module.exports.parseConfigArgs = nativeBinding.parseConfigArgs;
|
|
1056
1057
|
module.exports.parseCreateArgs = nativeBinding.parseCreateArgs;
|
|
1057
1058
|
module.exports.parseHooksArgs = nativeBinding.parseHooksArgs;
|
|
1059
|
+
module.exports.parseLiteralCommands = nativeBinding.parseLiteralCommands;
|
|
1058
1060
|
module.exports.parseMigrateArgs = nativeBinding.parseMigrateArgs;
|
|
1059
1061
|
module.exports.parseStagedArgs = nativeBinding.parseStagedArgs;
|
|
1060
1062
|
module.exports.removeConfigKey = nativeBinding.removeConfigKey;
|
|
1063
|
+
module.exports.resolveNpmAuthorization = nativeBinding.resolveNpmAuthorization;
|
|
1064
|
+
module.exports.resolveNpmRegistry = nativeBinding.resolveNpmRegistry;
|
|
1061
1065
|
module.exports.rewriteEslint = nativeBinding.rewriteEslint;
|
|
1062
1066
|
module.exports.rewriteImportsInDirectory = nativeBinding.rewriteImportsInDirectory;
|
|
1063
1067
|
module.exports.rewritePrettier = nativeBinding.rewritePrettier;
|
|
@@ -1068,3 +1072,4 @@ module.exports.shouldPrintVitePlusHeader = nativeBinding.shouldPrintVitePlusHead
|
|
|
1068
1072
|
module.exports.upsertJsonConfig = nativeBinding.upsertJsonConfig;
|
|
1069
1073
|
module.exports.vitePlusHeader = nativeBinding.vitePlusHeader;
|
|
1070
1074
|
module.exports.wrapLazyPlugins = nativeBinding.wrapLazyPlugins;
|
|
1075
|
+
module.exports.oxcNode = nativeBinding.oxcNode;
|
package/binding/index.d.cts
CHANGED
|
@@ -1278,8 +1278,8 @@ export interface ModuleRunnerTransformResult {
|
|
|
1278
1278
|
* This will be set if {@link TransformOptions#sourcemap} is `true`.
|
|
1279
1279
|
*/
|
|
1280
1280
|
map?: SourceMap;
|
|
1281
|
-
deps:
|
|
1282
|
-
dynamicDeps:
|
|
1281
|
+
deps: string[];
|
|
1282
|
+
dynamicDeps: string[];
|
|
1283
1283
|
/**
|
|
1284
1284
|
* Parse and transformation errors.
|
|
1285
1285
|
*
|
|
@@ -1669,6 +1669,64 @@ export interface TypeScriptOptions {
|
|
|
1669
1669
|
rewriteImportExtensions?: 'rewrite' | 'remove' | boolean;
|
|
1670
1670
|
}
|
|
1671
1671
|
|
|
1672
|
+
export interface LoadContext {
|
|
1673
|
+
/** Export conditions of the relevant `package.json` */
|
|
1674
|
+
conditions?: Array<string>;
|
|
1675
|
+
/**
|
|
1676
|
+
* The format optionally supplied by the `resolve` hook chain. Node.js passes it as
|
|
1677
|
+
* `undefined`, not `null`, when the chain reported none — a `.node` or `.wasm` file
|
|
1678
|
+
* resolved without its flag, any extension Node.js does not know — and a required
|
|
1679
|
+
* field would reject the whole context with "Missing field `format`" instead of
|
|
1680
|
+
* letting Node.js raise its own `ERR_UNKNOWN_FILE_EXTENSION`.
|
|
1681
|
+
*/
|
|
1682
|
+
format?: string | null;
|
|
1683
|
+
/** An object whose key-value pairs represent the assertions for the module to import */
|
|
1684
|
+
importAttributes: Record<string, string>;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
export interface LoadFnOutput {
|
|
1688
|
+
format: string;
|
|
1689
|
+
source?: string | Uint8Array | Buffer | null;
|
|
1690
|
+
responseURL?: string;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/** The code `transformModuleRunner` hands to `@oxc-node/core/importer`. */
|
|
1694
|
+
export interface ModuleRunnerOutput {
|
|
1695
|
+
code: string;
|
|
1696
|
+
/** The source map as a JSON string */
|
|
1697
|
+
map?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* The file is an ES module. Its imports, exports and `import.meta` are calls into
|
|
1700
|
+
* the runner (`__vite_ssr_import__` and friends); a CommonJS file keeps `require`,
|
|
1701
|
+
* `module` and `exports`, and only its `import()` calls into the runner.
|
|
1702
|
+
*/
|
|
1703
|
+
esm: boolean;
|
|
1704
|
+
/**
|
|
1705
|
+
* The ES module awaits at its top level, so `require()` of it is
|
|
1706
|
+
* `ERR_REQUIRE_ASYNC_MODULE`.
|
|
1707
|
+
*/
|
|
1708
|
+
topLevelAwait: boolean;
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
export interface OxcResolveOptions {
|
|
1712
|
+
getCurrentDirectory?: () => string;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
export interface ResolveContext {
|
|
1716
|
+
/** Export conditions of the relevant `package.json` */
|
|
1717
|
+
conditions: Array<string>;
|
|
1718
|
+
/** An object whose key-value pairs represent the assertions for the module to import */
|
|
1719
|
+
importAttributes: Record<string, string>;
|
|
1720
|
+
parentURL?: string;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
export interface ResolveFnOutput {
|
|
1724
|
+
format?: string | null;
|
|
1725
|
+
shortCircuit?: boolean;
|
|
1726
|
+
url: string;
|
|
1727
|
+
importAttributes?: Record<string, string> | null;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1672
1730
|
export declare class BindingBundleEndEventData {
|
|
1673
1731
|
output: string;
|
|
1674
1732
|
duration: number;
|
|
@@ -1897,6 +1955,7 @@ export declare class BindingNormalizedOptions {
|
|
|
1897
1955
|
get assetFilenames(): string | undefined;
|
|
1898
1956
|
get dir(): string | null;
|
|
1899
1957
|
get file(): string | null;
|
|
1958
|
+
get charset(): 'ascii' | 'utf8';
|
|
1900
1959
|
get format(): 'es' | 'cjs' | 'iife' | 'umd';
|
|
1901
1960
|
get exports(): 'default' | 'named' | 'none' | 'auto';
|
|
1902
1961
|
get esModule(): boolean | 'if-default-prop';
|
|
@@ -2182,6 +2241,7 @@ export interface BindingChecksOptions {
|
|
|
2182
2241
|
largeBarrelModules?: boolean;
|
|
2183
2242
|
sourcemapBroken?: boolean;
|
|
2184
2243
|
namespaceConflict?: boolean;
|
|
2244
|
+
shimmedExport?: boolean;
|
|
2185
2245
|
}
|
|
2186
2246
|
|
|
2187
2247
|
export interface BindingChunkImportMap {
|
|
@@ -2743,6 +2803,7 @@ export interface BindingLog {
|
|
|
2743
2803
|
id?: string;
|
|
2744
2804
|
code?: string;
|
|
2745
2805
|
exporter?: string;
|
|
2806
|
+
binding?: string;
|
|
2746
2807
|
plugin?: string;
|
|
2747
2808
|
/** Location information (line, column, file) */
|
|
2748
2809
|
loc?: BindingLogLocation;
|
|
@@ -2849,6 +2910,7 @@ export interface BindingOutputOptions {
|
|
|
2849
2910
|
postFooter?: string | ((chunk: BindingRenderedChunk) => MaybePromise<VoidNullable<string>>);
|
|
2850
2911
|
dir?: string;
|
|
2851
2912
|
file?: string;
|
|
2913
|
+
charset?: 'ascii' | 'utf8';
|
|
2852
2914
|
esModule?: boolean | 'if-default-prop';
|
|
2853
2915
|
exports?: 'default' | 'named' | 'none' | 'auto';
|
|
2854
2916
|
extend?: boolean;
|
|
@@ -3312,6 +3374,7 @@ export interface BindingViteResolvePluginConfig {
|
|
|
3312
3374
|
tsconfig?: string;
|
|
3313
3375
|
environmentConsumer: string;
|
|
3314
3376
|
environmentName: string;
|
|
3377
|
+
convertExternalRequire?: boolean;
|
|
3315
3378
|
builtins: Array<BindingStringOrRegex>;
|
|
3316
3379
|
external: true | string[];
|
|
3317
3380
|
noExternal: true | Array<string | RegExp>;
|
|
@@ -3337,6 +3400,8 @@ export interface BindingViteResolvePluginConfig {
|
|
|
3337
3400
|
|
|
3338
3401
|
export interface BindingViteResolvePluginResolveOptions {
|
|
3339
3402
|
isBuild: boolean;
|
|
3403
|
+
/** Defaults to `isBuild`. */
|
|
3404
|
+
isBundled?: boolean;
|
|
3340
3405
|
isProduction: boolean;
|
|
3341
3406
|
asSrc: boolean;
|
|
3342
3407
|
preferRelative: boolean;
|
|
@@ -3692,6 +3757,13 @@ export interface DownloadPackageManagerResult {
|
|
|
3692
3757
|
/** Re-enable blocking stdio after Node.js has initialized its lazy standard streams. */
|
|
3693
3758
|
export declare function ensureBlockingStdio(): void;
|
|
3694
3759
|
|
|
3760
|
+
/**
|
|
3761
|
+
* Find the monorepo root containing `cwd` with the same rules as `vp run` and `vp install`.
|
|
3762
|
+
*
|
|
3763
|
+
* Returns `null` when `cwd` is not inside a pnpm or `package.json` workspace.
|
|
3764
|
+
*/
|
|
3765
|
+
export declare function findMonorepoRoot(cwd: string): string | null;
|
|
3766
|
+
|
|
3695
3767
|
/**
|
|
3696
3768
|
* Resolved on-disk category roots from [`vp_shared::EnvConfig`].
|
|
3697
3769
|
*
|
|
@@ -3730,6 +3802,13 @@ export interface JsCommandResolvedResult {
|
|
|
3730
3802
|
envs: Record<string, string>;
|
|
3731
3803
|
}
|
|
3732
3804
|
|
|
3805
|
+
/** A literal argument with its original JavaScript UTF-16 source range. */
|
|
3806
|
+
export interface LiteralCommandToken {
|
|
3807
|
+
value: string;
|
|
3808
|
+
start: number;
|
|
3809
|
+
end: number;
|
|
3810
|
+
}
|
|
3811
|
+
|
|
3733
3812
|
/**
|
|
3734
3813
|
* Merge JSON configuration file into vite config file
|
|
3735
3814
|
*
|
|
@@ -3838,6 +3917,16 @@ export type ParseHooksArgsOutcome =
|
|
|
3838
3917
|
| { status: 'exit'; code: number }
|
|
3839
3918
|
| { status: 'error'; error: CliParseError };
|
|
3840
3919
|
|
|
3920
|
+
/**
|
|
3921
|
+
* Read simple literal commands, optionally separated by `&&`, `||`, or `;`.
|
|
3922
|
+
* Returns null for unsupported syntax. Assignments and wrappers stay in argv;
|
|
3923
|
+
* callers must decide whether a command is safe to rewrite.
|
|
3924
|
+
*/
|
|
3925
|
+
export declare function parseLiteralCommands(
|
|
3926
|
+
source: string,
|
|
3927
|
+
allowLists: boolean,
|
|
3928
|
+
): Array<Array<LiteralCommandToken>> | null;
|
|
3929
|
+
|
|
3841
3930
|
export declare function parseMigrateArgs(argv: Array<string>): ParseMigrateArgsOutcome;
|
|
3842
3931
|
|
|
3843
3932
|
export type ParseMigrateArgsOutcome =
|
|
@@ -3868,6 +3957,12 @@ export declare function removeConfigKey(
|
|
|
3868
3957
|
configKey: string,
|
|
3869
3958
|
): MergeJsonConfigResult;
|
|
3870
3959
|
|
|
3960
|
+
/** Resolve the `Authorization` header value npm would send to `url` from the npm config at `cwd`. */
|
|
3961
|
+
export declare function resolveNpmAuthorization(cwd: string, url: string): string | null;
|
|
3962
|
+
|
|
3963
|
+
/** Resolve the npm registry for packages in `scope` (without `@`) from the npm config at `cwd`. */
|
|
3964
|
+
export declare function resolveNpmRegistry(cwd: string, scope?: string | undefined | null): string;
|
|
3965
|
+
|
|
3871
3966
|
/**
|
|
3872
3967
|
* Rewrite ESLint scripts: rename `eslint` → `vp lint` and strip ESLint-only flags.
|
|
3873
3968
|
*
|
|
@@ -4128,3 +4223,38 @@ export interface VpDirsJs {
|
|
|
4128
4223
|
* `vite-plus` when needed.
|
|
4129
4224
|
*/
|
|
4130
4225
|
export declare function wrapLazyPlugins(viteConfigPath: string): MergeJsonConfigResult;
|
|
4226
|
+
|
|
4227
|
+
export declare namespace oxcNode {
|
|
4228
|
+
export class OxcTransformer {
|
|
4229
|
+
constructor(cwd?: string | undefined | null, helperModuleName?: string | undefined | null);
|
|
4230
|
+
transform(path: string, source: string | Uint8Array): oxcNode.TransformOutput;
|
|
4231
|
+
}
|
|
4232
|
+
export function createResolve(
|
|
4233
|
+
specifier: string,
|
|
4234
|
+
context: ResolveContext,
|
|
4235
|
+
nextResolve: (
|
|
4236
|
+
arg0: string,
|
|
4237
|
+
arg1?: ResolveContext | undefined | null,
|
|
4238
|
+
) => ResolveFnOutput | Promise<ResolveFnOutput>,
|
|
4239
|
+
): ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
4240
|
+
export function enableWatchReport(): void;
|
|
4241
|
+
export function load(
|
|
4242
|
+
url: string,
|
|
4243
|
+
context: LoadContext,
|
|
4244
|
+
nextLoad: (
|
|
4245
|
+
arg0: string,
|
|
4246
|
+
arg1?: LoadContext | undefined | null,
|
|
4247
|
+
) => LoadFnOutput | Promise<LoadFnOutput>,
|
|
4248
|
+
helperModuleName?: string | undefined | null,
|
|
4249
|
+
): LoadFnOutput | Promise<LoadFnOutput>;
|
|
4250
|
+
export function setTransformDeps(mode?: string | undefined | null): void;
|
|
4251
|
+
export function setTsconfigPath(path?: string | undefined | null): void;
|
|
4252
|
+
export function takeWatchDependencies(): Array<string>;
|
|
4253
|
+
/** A file transformed for the CommonJS loader. */
|
|
4254
|
+
export interface TransformOutput {
|
|
4255
|
+
source: string;
|
|
4256
|
+
/** The source map as a JSON string. */
|
|
4257
|
+
sourceMap?: string;
|
|
4258
|
+
}
|
|
4259
|
+
export function transformsDep(path: string): boolean;
|
|
4260
|
+
}
|