Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 4280da0

Browse files
authored
fix: Use options from Vue.extend constructor export from script block (#69)
1 parent 0e8e005 commit 4280da0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assembler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function assembleFromSource(
208208
scope, functional, moduleIdentifier,
209209
createInjector, createInjectorSSR
210210
) {
211-
const component = script || {}
211+
const component = (typeof script === 'function' ? script.options : script) || {}
212212
213213
if (${e(!compiler.template.isProduction)}) {
214214
component.__file = ${e(filename)}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy