UNPKG

865 BJavaScriptView Raw
1try {
2 var vueVersion = require('vue').version
3} catch (e) {}
4
5var packageName = require('./package.json').name
6var packageVersion = require('./package.json').version
7if (vueVersion && vueVersion !== packageVersion) {
8 var vuePath = require.resolve('vue')
9 var packagePath = require.resolve('./package.json')
10 throw new Error(
11 '\n\nVue packages version mismatch:\n\n' +
12 '- vue@' + vueVersion + ' (' + vuePath + ')\n' +
13 '- ' + packageName + '@' + packageVersion + ' (' + packagePath + ')\n\n' +
14 'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
15 'If you are using vue-loader@>=10.0, simply update vue-template-compiler.\n' +
16 'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' + packageName + ' to the latest.\n'
17 )
18}
19
20module.exports = require('./build')