vue/packages/vue-template-compiler/index.js
2016-07-26 02:25:17 -04:00

18 lines
630 B
JavaScript

try {
var vueVersion = require('vue').version
} catch (e) {}
var packageName = require('./package.json').name
var packageVersion = require('./package.json').version
if (vueVersion && vueVersion !== packageVersion) {
throw new Error(
'\n\nVue packages version mismatch:\n\n' +
'- vue@' + vueVersion + '\n' +
'- ' + packageName + '@' + packageVersion + '\n\n' +
'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
'If you are using vue-loader or vueify, re-installing them should bump ' + packageName + ' to the latest.\n'
)
}
module.exports = require('./build')