Skip to content
Discussion options

You must be logged in to vote

Hey, @carlosmoliv. Install the following package: unplugin-swc

then, add this configuration to the vitest config file:

import swc from 'unplugin-swc';

export default defineConfig({
  test: {
   // ... configs
  },
  // add the line below
  plugins: [swc.vite()],
});

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@ValentinGurkov
Comment options

@byrpatrick
Comment options

@KiddoV
Comment options

@okanaslan
Comment options

@linonetwo
Comment options

Answer selected by carlosmoliv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants