travel/admin/node_modules/svg-sprite-loader/lib/utils/is-webpack-1.js

7 lines
236 B
JavaScript
Raw Normal View History

2024-06-24 11:28:18 +08:00
// 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;