Skip to content

Commit 8d76a59

Browse files
committed
fix: always insert styled-vue-global-css
1 parent 1bb38a2 commit 8d76a59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/parseComponent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ module.exports = (content, opts) => {
2929
node.attrs[':style'] || node.attrs['v-bind:style']
3030
node.attrs[':style'] = `$options.style(this, ${existing})`
3131
}
32-
if (node.content && hasGlobalVars) {
32+
if (hasGlobalVars) {
33+
node.content = node.content || []
3334
node.content.unshift({
3435
tag: 'styled-vue-global-css'
3536
})

0 commit comments

Comments
 (0)