chore: move dom element config to compiler-dom

This commit is contained in:
Evan You 2019-10-21 16:25:16 -04:00
parent 052febc127
commit bb85aefc03
5 changed files with 5 additions and 4 deletions

View File

@ -28,3 +28,4 @@ export function compile(
} }
export * from '@vue/compiler-core' export * from '@vue/compiler-core'
export * from './tagConfig'

View File

@ -5,7 +5,7 @@ import {
Namespaces, Namespaces,
NodeTypes NodeTypes
} from '@vue/compiler-core' } from '@vue/compiler-core'
import { isVoidTag, isHTMLTag, isSVGTag } from '@vue/shared' import { isVoidTag, isHTMLTag, isSVGTag } from './tagConfig'
export const enum DOMNamespaces { export const enum DOMNamespaces {
HTML = Namespaces.HTML, HTML = Namespaces.HTML,

View File

@ -1,4 +1,4 @@
import { makeMap } from './makeMap' import { makeMap } from '../../shared/src/makeMap'
const HTML_TAGS = const HTML_TAGS =
'html,body,base,head,link,meta,style,title,address,article,aside,footer,' + 'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +

View File

@ -1,7 +1,8 @@
import { createRenderer } from '@vue/runtime-core' import { createRenderer } from '@vue/runtime-core'
import { isHTMLTag, isSVGTag } from '@vue/shared'
import { nodeOps } from './nodeOps' import { nodeOps } from './nodeOps'
import { patchProp } from './patchProp' import { patchProp } from './patchProp'
// Importing from the compiler, will be tree-shaken in prod
import { isHTMLTag, isSVGTag } from '@vue/compiler-dom'
const { render, createApp } = createRenderer<Node, Element>({ const { render, createApp } = createRenderer<Node, Element>({
patchProp, patchProp,

View File

@ -1,5 +1,4 @@
export * from './patchFlags' export * from './patchFlags'
export * from './element'
export { isGloballyWhitelisted } from './globalsWhitelist' export { isGloballyWhitelisted } from './globalsWhitelist'
export { makeMap } from './makeMap' export { makeMap } from './makeMap'