Skip to content

Commit

Permalink
fix: always insert styled-vue-global-css
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Jan 18, 2020
1 parent 1bb38a2 commit 8d76a59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/parseComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ module.exports = (content, opts) => {
node.attrs[':style'] || node.attrs['v-bind:style']
node.attrs[':style'] = `$options.style(this, ${existing})`
}
if (node.content && hasGlobalVars) {
if (hasGlobalVars) {
node.content = node.content || []
node.content.unshift({
tag: 'styled-vue-global-css'
})
Expand Down

0 comments on commit 8d76a59

Please sign in to comment.