management/front/dkha-web-sz-main/node_modules/svg-sprite-loader/lib/utils/is-webpack-1.js

7 lines
236 B
JavaScript

// 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;