fix(compiler-dom): properly stringify class/style bindings when hoisting static strings
This commit is contained in:
@@ -5,7 +5,7 @@ describe('compile', () => {
|
||||
const { code } = compile(`<div v-text="text"></div>
|
||||
<div v-html="html"></div>
|
||||
<div v-cloak>test</div>
|
||||
<div style="color=red">red</div>
|
||||
<div style="color:red">red</div>
|
||||
<div :style="{color: 'green'}"></div>`)
|
||||
|
||||
expect(code).toMatchSnapshot()
|
||||
|
||||
Reference in New Issue
Block a user