diff options
Diffstat (limited to 'node_modules/vue-template-compiler/index.js')
| -rw-r--r-- | node_modules/vue-template-compiler/index.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/vue-template-compiler/index.js b/node_modules/vue-template-compiler/index.js new file mode 100644 index 00000000..287d2817 --- /dev/null +++ b/node_modules/vue-template-compiler/index.js @@ -0,0 +1,18 @@ +try { + var vueVersion = require('vue').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 vue-loader@>=10.0, simply update vue-template-compiler.\n' + + 'If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should bump ' + packageName + ' to the latest.\n' + ) +} + +module.exports = require('./build') |
