UNPKG

kdu-template-compiler

Version:
33 lines (30 loc) 947 B
try { var kduVersion = require('kdu').version } catch (e) {} var packageName = require('./package.json').name var packageVersion = require('./package.json').version if (kduVersion && kduVersion !== packageVersion) { var kduPath = require.resolve('kdu') var packagePath = require.resolve('./package.json') throw new Error( '\n\nKdu packages version mismatch:\n\n' + '- kdu@' + kduVersion + ' (' + kduPath + ')\n' + '- ' + packageName + '@' + packageVersion + ' (' + packagePath + ')\n\n' + 'This may cause things to work incorrectly. Make sure to use the same version for both.\n' + 'If you are using kdu-loader@>=10.0, simply update kdu-template-compiler.\n' + 'If you are using kdu-loader@<10.0 or kduify, re-installing kdu-loader/kduify should bump ' + packageName + ' to the latest.\n' ) } module.exports = require('./build')