Use import rather than require

This commit is contained in:
argoyle committed 2019-02-04 08:27:13 +01:00
1 parent c54d3c143f
commit 696cbdfe70
3 files changed
+6 -4

No files matched your search

+4 -3
View File
@@ -1,8 +1,9 @@
import Vue from 'vue'
const moment = require('moment');
require('moment/locale/sv');
import moment from 'moment';
import vueMoment from 'vue-moment';
import 'moment/locale/sv';
Vue.use(require('vue-moment'), {
Vue.use(vueMoment, {
moment
});