index.js 865 B

1234567891011121314151617181920
  1. try {
  2. var vueVersion = require('vue').version
  3. } catch (e) {}
  4. var packageName = require('./package.json').name
  5. var packageVersion = require('./package.json').version
  6. if (vueVersion && vueVersion !== packageVersion) {
  7. var vuePath = require.resolve('vue')
  8. var packagePath = require.resolve('./package.json')
  9. throw new Error(
  10. '\n\nVue packages version mismatch:\n\n' +
  11. '- vue@' + vueVersion + ' (' + vuePath + ')\n' +
  12. '- ' + packageName + '@' + packageVersion + ' (' + packagePath + ')\n\n' +
  13. 'This may cause things to work incorrectly. Make sure to use the same version for both.\n' +
  14. 'If you are using vue-loader@>=10.0, simply update vue-template-compiler.\n' +
  15. 'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' + packageName + ' to the latest.\n'
  16. )
  17. }
  18. module.exports = require('./build')