UNPKG

515 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 throw new Error(
9 '\n\nVue packages version mismatch:\n\n' +
10 '- vue@' + vueVersion + '\n' +
11 '- ' + packageName + '@' + packageVersion + '\n\n' +
12 'This may cause things to work incorrectly. Make sure to use the same version for both.\n'
13 )
14}
15
16module.exports = require('./build')