You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
640 B
18 lines
640 B
8 years ago
|
try {
|
||
|
var vueVersion = require('weex-vue-framework').version
|
||
|
} catch (e) {}
|
||
|
|
||
|
var packageName = require('./package.json').name
|
||
|
var packageVersion = require('./package.json').version
|
||
|
if (vueVersion && vueVersion !== packageVersion) {
|
||
|
throw new Error(
|
||
|
'\n\nVue packages version mismatch:\n\n' +
|
||
|
'- vue@' + vueVersion + '\n' +
|
||
|
'- ' + packageName + '@' + packageVersion + '\n\n' +
|
||
|
'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
|
||
|
'If you are using weex-vue-loader, re-installing them should bump ' + packageName + ' to the latest.\n'
|
||
|
)
|
||
|
}
|
||
|
|
||
|
module.exports = require('./build')
|