is-webpack-1.js 236 B

123456
  1. // eslint-disable-next-line import/no-extraneous-dependencies
  2. const webpackPkg = require('webpack/package.json');
  3. const webpackMajorVersion = parseInt(webpackPkg.version.split('.')[0], 10);
  4. module.exports = webpackMajorVersion === 1;