1 | try {
|
2 | var vueVersion = require('mpvue/package.json').version
|
3 | } catch (e) {}
|
4 |
|
5 | var packageName = require('./package.json').name
|
6 | var packageVersion = require('./package.json').version
|
7 | if (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 |
|
17 | module.exports = require('./build')
|