Skip to content

Commit

Permalink
fix: prefer non-self-closing tag when adding a component (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsn committed Oct 27, 2018
1 parent 59b0a90 commit fd2fd4a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/message/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ export function observeServerEvents(
: component.name

const modifier: Modifiers = [
insertToTemplate(vueFile.template!, payload.path, `<${componentName} />`)
insertToTemplate(
vueFile.template!,
payload.path,
`<${componentName}></${componentName}>`
)
]

if (!existingComponent) {
Expand Down

0 comments on commit fd2fd4a

Please sign in to comment.