Skip to content

Commit b8407d0

Browse files
authored
fix(test): @vitest/* types path are not patched (#496)
Close VP-165 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Ensures TypeScript declaration files in built chunks are also rewritten so type imports are correctly patched. > > - Extend rewrite scan to include `dist/chunks/*.d.ts`, alongside existing `*.js` and `*.d.ts` paths > - Fixes unpatched type specifiers for `@vitest/*`, `vitest/*`, and vendor deps within chunked `.d.ts` files > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 7cb66f1. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 70701e0 commit b8407d0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/test/build.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ async function rewriteVitestImports(leafDepToVendorPath: Map<string, string>) {
753753
join(distDir, '*.js'),
754754
join(distDir, '*.d.ts'),
755755
join(distDir, 'chunks/*.js'),
756+
join(distDir, 'chunks/*.d.ts'),
756757
]);
757758

758759
for await (const file of jsFiles) {

0 commit comments

Comments
 (0)