Skip to content

Commit 38aa8d9

Browse files
arthurdennerhaoqunjiang
authored andcommittedFeb 13, 2019
fix: import createTimeAgo from vue-timeago because it isn't a default export (#3437)
1 parent 43bee4e commit 38aa8d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/@vue/cli-ui/src/i18n.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Vue from 'vue'
22
import VueI18n from 'vue-i18n'
33
import deepmerge from 'deepmerge'
4-
import VueTimeago from 'vue-timeago'
4+
import VueTimeago, { createTimeago } from 'vue-timeago'
55

66
Vue.use(VueI18n)
77

@@ -50,7 +50,7 @@ async function autoDetect () {
5050
}
5151

5252
const dateFnsLocale = i18n.locale.toLowerCase().replace(/-/g, '_')
53-
Vue.component('VueTimeago', VueTimeago.createTimeago({
53+
Vue.component('VueTimeago', createTimeago({
5454
name: 'VueTimeago',
5555
locale: i18n.locale,
5656
locales: {

0 commit comments

Comments
 (0)
Please sign in to comment.