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

Commit

Permalink
feat: use __vue_component__ identifier for normalized component and d…
Browse files Browse the repository at this point in the history
…efault export (#91)
  • Loading branch information
znck authored Nov 21, 2019
1 parent 57d69e3 commit fb1ab41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/assembler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ export function assembleFromSource(
}

code += `
export default __vue_normalize__(
const __vue_component__ = __vue_normalize__(
${
code.indexOf('__vue_render__') > -1
? '{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }'
Expand All @@ -468,7 +468,8 @@ export function assembleFromSource(
? '__vue_create_injector_shadow__'
: 'undefined'
}
)`
)\n
export default __vue_component__`

if (script.map) {
map = merge(script.map, JSON.parse(mapGenerator.toString()))
Expand Down

0 comments on commit fb1ab41

Please sign in to comment.