Skip to content

Commit d34db83

Browse files
committed
fix: allow importing relative paths in style blocks
1 parent 007268c commit d34db83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vue2-jest/lib/process-style.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function extractClassMap(cssCode) {
4040
function getPreprocessOptions(lang, filePath, jestConfig) {
4141
if (lang === 'scss' || lang === 'sass') {
4242
return {
43+
filename: filePath,
4344
importer: (url, prev, done) => ({
4445
file: applyModuleNameMapper(
4546
url,

0 commit comments

Comments
 (0)