1๐
โ
Vue 2.2 now per default uses ES6 modules, but despite it was pointed in the other answer as wrong, you can still use CommonJS if you want, so is not wrong do require('vue')
, however, is recommended to switch to the new syntax.
You can do:
var Vue = require('vue').default;
or
import Vue from 'vue';
The last works without the default
property, because the new ES6 syntax does this automatically for you.
๐คEdmundo Santos
Source:stackexchange.com