UNPKG

947 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@' +
13 vueVersion +
14 ' (' +
15 vuePath +
16 ')\n' +
17 '- ' +
18 packageName +
19 '@' +
20 packageVersion +
21 ' (' +
22 packagePath +
23 ')\n\n' +
24 'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
25 'If you are using vue-loader@>=10.0, simply update vue-template-compiler.\n' +
26 'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' +
27 packageName +
28 ' to the latest.\n'
29 )
30}
31
32module.exports = require('./build')