How to disable css/sass/... processing? #498
Answered
by
antfu
eduardweigandt0770
asked this question in
Q&A
-
In jest you would have a transformer/mock for all imports with styling resources. How can I disable such processing with vitest? |
Beta Was this translation helpful? Give feedback.
Answered by
antfu
Jan 11, 2022
Replies: 2 comments 20 replies
-
Do you need to tho? Vite can handle them, Jest cant |
Beta Was this translation helpful? Give feedback.
6 replies
-
An inline plugin might be better? plugins: [
{
enfore: 'pre',
transform(code, id) {
if (id.endsWith('.css'))
return ''
}
}
] |
Beta Was this translation helpful? Give feedback.
14 replies
Answer selected by
eduardweigandt0770
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An inline plugin might be better?