Skip to content

Commit 909e172

Browse files
author
Jakub Freisler
committed
fix: external css - handle HTML5-compliant syntax
1 parent af1bc5c commit 909e172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/process-style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getPreprocessOptions(lang, filePath, jestConfig) {
5252
module.exports = function processStyle(stylePart, filePath, config = {}) {
5353
const vueJestConfig = getVueJestConfig(config)
5454

55-
if (stylePart.src && !stylePart.content) {
55+
if (stylePart.src && !stylePart.content.trim()) {
5656
const cssFilePath = applyModuleNameMapper(
5757
stylePart.src,
5858
filePath,

0 commit comments

Comments
 (0)