1 | try {
|
2 | var vueVersion = require('vue').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 | )
|
14 | }
|
15 |
|
16 | module.exports = require('./build')
|