Skip to content

Commit

Permalink
fix: allow importing relative paths in style blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrotule committed Oct 25, 2021
1 parent 473b5fe commit 39c8d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vue2-jest/lib/process-style.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function extractClassMap(cssCode) {
function getPreprocessOptions(lang, filePath, jestConfig) {
if (lang === 'scss' || lang === 'sass') {
return {
filename: filePath,
importer: (url, prev, done) => ({
file: applyModuleNameMapper(
url,
Expand Down

0 comments on commit 39c8d49

Please sign in to comment.