Skip to content

Commit 683ced9

Browse files
committed
refactor: do not pollute markup with useless id
1 parent dd780f8 commit 683ced9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/constants.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export const MOUNT_ELEMENT_ID = 'app'
21
export const MOUNT_COMPONENT_REF = 'VTU_COMPONENT'
32
export const MOUNT_PARENT_NAME = 'VTU_ROOT'

src/mount.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,7 @@ import { processSlot } from './utils/compileSlots'
2727
import { createWrapper, VueWrapper } from './vueWrapper'
2828
import { attachEmitListener } from './emitMixin'
2929
import { createDataMixin } from './dataMixin'
30-
import {
31-
MOUNT_COMPONENT_REF,
32-
MOUNT_ELEMENT_ID,
33-
MOUNT_PARENT_NAME
34-
} from './constants'
30+
import { MOUNT_COMPONENT_REF, MOUNT_PARENT_NAME } from './constants'
3531
import { stubComponents } from './stubs'
3632

3733
type Slot = VNode | string | { render: Function } | Function | Component
@@ -194,7 +190,6 @@ export function mount(
194190
: { ...originalComponent }
195191

196192
const el = document.createElement('div')
197-
el.id = MOUNT_ELEMENT_ID
198193

199194
if (options?.attachTo) {
200195
let to: Element | null

0 commit comments

Comments
 (0)