fix(compiler-ssr): handle comments codegen + refactor ssr codegen transform
This commit is contained in:
@@ -6,6 +6,12 @@ describe('ssr: text', () => {
|
||||
expect(getCompiledString(`foo`)).toMatchInlineSnapshot(`"\`foo\`"`)
|
||||
})
|
||||
|
||||
test('comments', () => {
|
||||
expect(getCompiledString(`<!--bar-->`)).toMatchInlineSnapshot(
|
||||
`"\`<!--bar-->\`"`
|
||||
)
|
||||
})
|
||||
|
||||
test('static text escape', () => {
|
||||
expect(getCompiledString(`<foo>`)).toMatchInlineSnapshot(
|
||||
`"\`<foo>\`"`
|
||||
|
||||
Reference in New Issue
Block a user