Skip to content

Commit bb85aef

Browse files
committed
chore: move dom element config to compiler-dom
1 parent 052febc commit bb85aef

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

packages/compiler-dom/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ export function compile(
2828
}
2929

3030
export * from '@vue/compiler-core'
31+
export * from './tagConfig'

packages/compiler-dom/src/parserOptionsMinimal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Namespaces,
66
NodeTypes
77
} from '@vue/compiler-core'
8-
import { isVoidTag, isHTMLTag, isSVGTag } from '@vue/shared'
8+
import { isVoidTag, isHTMLTag, isSVGTag } from './tagConfig'
99

1010
export const enum DOMNamespaces {
1111
HTML = Namespaces.HTML,

packages/shared/src/element.ts renamed to packages/compiler-dom/src/tagConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { makeMap } from './makeMap'
1+
import { makeMap } from '../../shared/src/makeMap'
22

33
const HTML_TAGS =
44
'html,body,base,head,link,meta,style,title,address,article,aside,footer,' +

packages/runtime-dom/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { createRenderer } from '@vue/runtime-core'
2-
import { isHTMLTag, isSVGTag } from '@vue/shared'
32
import { nodeOps } from './nodeOps'
43
import { patchProp } from './patchProp'
4+
// Importing from the compiler, will be tree-shaken in prod
5+
import { isHTMLTag, isSVGTag } from '@vue/compiler-dom'
56

67
const { render, createApp } = createRenderer<Node, Element>({
78
patchProp,

packages/shared/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
export * from './patchFlags'
2-
export * from './element'
32
export { isGloballyWhitelisted } from './globalsWhitelist'
43
export { makeMap } from './makeMap'
54

0 commit comments

Comments
 (0)