Skip to content

Commit 43fdfae

Browse files
author
yuuangzhang
committed
fix: css module injectStyles bug in ssr close vuejs#1866
1 parent 4240e5b commit 43fdfae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/codegen/styleInjection.js

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ module.exports = function genStyleInjectionCode (
9191
const request = genStyleRequest(style, i)
9292
styleInjectionCode += (
9393
`var style${i} = require(${request})\n` +
94+
`style${i} = style${i}.default || style${i}\n` +
9495
`if (style${i}.__inject__) style${i}.__inject__(context)\n`
9596
)
9697
if (style.module) genCSSModulesCode(style, request, i)

0 commit comments

Comments
 (0)