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

Commit fb1ab41

Browse files
authored
feat: use __vue_component__ identifier for normalized component and default export (#91)
1 parent 57d69e3 commit fb1ab41

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/assembler.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export function assembleFromSource(
441441
}
442442

443443
code += `
444-
export default __vue_normalize__(
444+
const __vue_component__ = __vue_normalize__(
445445
${
446446
code.indexOf('__vue_render__') > -1
447447
? '{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ }'
@@ -468,7 +468,8 @@ export function assembleFromSource(
468468
? '__vue_create_injector_shadow__'
469469
: 'undefined'
470470
}
471-
)`
471+
)\n
472+
export default __vue_component__`
472473

473474
if (script.map) {
474475
map = merge(script.map, JSON.parse(mapGenerator.toString()))

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