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

Commit

Permalink
fix: Use options from Vue.extend constructor export from script blo…
Browse files Browse the repository at this point in the history
…ck (#69)
  • Loading branch information
znck authored May 25, 2018
1 parent 0e8e005 commit 4280da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function assembleFromSource(
scope, functional, moduleIdentifier,
createInjector, createInjectorSSR
) {
const component = script || {}
const component = (typeof script === 'function' ? script.options : script) || {}
if (${e(!compiler.template.isProduction)}) {
component.__file = ${e(filename)}
Expand Down

0 comments on commit 4280da0

Please sign in to comment.