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