We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4240e5b commit 59bc403Copy full SHA for 59bc403
lib/codegen/styleInjection.js
@@ -40,7 +40,7 @@ module.exports = function genStyleInjectionCode (
40
41
// `(vue-)style-loader` exports the name-to-hash map directly
42
// `css-loader` exports it in `.locals`
43
- const locals = `(style${i}.locals || style${i})`
+ const locals = `(style${i}.default || style${i}.locals || style${i})`
44
const name = JSON.stringify(moduleName)
45
46
if (!needsHotReload) {
@@ -81,7 +81,7 @@ module.exports = function genStyleInjectionCode (
81
// do not generate requests for empty styles
82
if (isNotEmptyStyle(style)) {
83
const request = genStyleRequest(style, i)
84
- styleImportsCode += `import style${i} from ${request}\n`
+ styleImportsCode += `import * as style${i} from ${request}\n`
85
if (style.module) genCSSModulesCode(style, request, i)
86
}
87
})
0 commit comments