Use import rather than require

This commit is contained in:
2019-02-04 08:27:13 +01:00
parent c54d3c143f
commit 696cbdfe70
3 changed files with 6 additions and 4 deletions
+1
View File
@@ -17,6 +17,7 @@
"graphql-tag": "^2.10.1",
"lodash": "^4.17.10",
"mem": "^4.0.0",
"moment": "^2.24.0",
"node-sass": "^4.9.0",
"nuxt": "^2.0.0",
"s-ago": "^1.3.0",
+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
});
+1 -1
View File
@@ -5321,7 +5321,7 @@ moment@2.22.2:
resolved "https://registry.yarnpkg.com/moment/-/moment-2.22.2.tgz#3c257f9839fc0e93ff53149632239eb90783ff66"
integrity sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=
moment@^2.11.1:
moment@^2.11.1, moment@^2.24.0:
version "2.24.0"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.24.0.tgz#0d055d53f5052aa653c9f6eb68bb5d12bf5c2b5b"
integrity sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==