Skip to content

Commit

Permalink
feat: transform Badge into async component
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed Jul 12, 2018
1 parent 5ec67ea commit de9a51b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import('@temp/style.styl')
// built-in components
import Content from './components/Content'
import OutboundLink from './components/OutboundLink.vue'
import Badge from './components/Badge.vue'
import ClientOnly from './components/ClientOnly'

// suggest dev server restart on base change
Expand All @@ -36,7 +35,7 @@ Vue.mixin(dataMixin(siteData))
// component for rendering markdown content and setting title etc.
Vue.component('Content', Content)
Vue.component('OutboundLink', OutboundLink)
Vue.component('Badge', Badge)
Vue.component('Badge', () => import('./components/Badge.vue'))
// component for client-only content
Vue.component('ClientOnly', ClientOnly)

Expand Down

0 comments on commit de9a51b

Please sign in to comment.