Closed sheremet-va closed 3 years ago
When importing mixins inside SFC, it throws an error:
The code works with Vite.
Vite
Also the test doesn't fail and ends only after jest timer runs out.
Reproductions:
@/components/Test.vue
<template> <div :class="$style.class">Test</div> </template>
- scss file (`@/style/_mixins.scss`): ```css @mixin red { color: red }
(Haven't actually checked reproduction, will try uploading it on github later)
While testing reproduction, I found that I have a moduleNameMapper for scss that leads to module.exports = {}
moduleNameMapper
scss
module.exports = {}
I removed it and now it works.
When importing mixins inside SFC, it throws an error:
The code works with
Vite
.Also the test doesn't fail and ends only after jest timer runs out.
Reproductions:
@/components/Test.vue
):(Haven't actually checked reproduction, will try uploading it on github later)