Skip to content

Commit

Permalink
Add swc to vitest.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Feb 5, 2025
1 parent fe6e792 commit e38924f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import swc from 'unplugin-swc';
import { defineConfig } from 'vitest/config';

export default defineConfig({
Expand All @@ -15,4 +16,9 @@ export default defineConfig({
reportsDirectory: './coverage',
},
},
plugins: [
swc.vite({
module: { type: 'es6' },
}),
],
});

0 comments on commit e38924f

Please sign in to comment.