We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc04dc commit fd1b75eCopy full SHA for fd1b75e
packages/test/build.ts
@@ -482,8 +482,6 @@ async function bundleVitest() {
482
.replaceAll(`import 'vite';`, `import '${CORE_PACKAGE_NAME}';`)
483
.replaceAll(`'vite/module-runner'`, `'${CORE_PACKAGE_NAME}/module-runner'`)
484
.replaceAll(`declare module "vite"`, `declare module "${CORE_PACKAGE_NAME}"`)
485
- // Rewrite vitest self-references in .d.ts files (e.g., globals.d.ts uses
486
- // `typeof import('vitest')['test']` which must resolve via self-reference)
487
.replaceAll(/import\(['"]vitest['"]\)/g, `import('${TEST_PACKAGE_NAME}')`);
488
console.log(`Replaced vite imports in ${destPath}`);
489
await writeFile(destPath, content, 'utf-8');
0 commit comments