Skip to content

Commit 1be15af

Browse files
committed
chore: tweaks
1 parent 436866d commit 1be15af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/runtime-dom/src/apiCustomElement.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,8 @@ export function defineCustomElement(
172172
*/
173173
_createApp?: CreateAppFunction<Element>,
174174
): VueElementConstructor {
175-
if (isPlainObject(options)) options = extend({}, options)
176-
const Comp = defineComponent(options, extraOptions) as any
177-
if (isPlainObject(Comp)) extend(Comp, extraOptions)
175+
let Comp = defineComponent(options, extraOptions) as any
176+
if (isPlainObject(Comp)) Comp = extend({}, Comp, extraOptions)
178177
class VueCustomElement extends VueElement {
179178
static def = Comp
180179
constructor(initialProps?: Record<string, any>) {

0 commit comments

Comments
 (0)