feat(compiler): basic transform implementation

This commit is contained in:
Evan You
2019-09-17 19:08:47 -04:00
parent a5c1b3283d
commit bbb57c26a2
11 changed files with 1889 additions and 1500 deletions

View File

@@ -1,5 +1,4 @@
import {
NodeTypes,
TextModes,
ParserOptions,
ElementNode,
@@ -23,9 +22,8 @@ export const parserOptionsMinimal: ParserOptions = {
return DOMNamespaces.SVG
}
if (
parent.props.some(
parent.attrs.some(
a =>
a.type === NodeTypes.ATTRIBUTE &&
a.name === 'encoding' &&
a.value != null &&
(a.value.content === 'text/html' ||