UNPKG

637 BJavaScriptView Raw
1try {
2 var vueVersion = require('mpvue/package.json').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 'If you are using mpvue-loader, re-installing them should bump ' + packageName + ' to the latest.\n'
14 )
15}
16
17module.exports = require('./build')