shift73k/assets_old/node_modules/svg-sprite-loader/lib/utils/is-webpack-1.js

7 lines
236 B
JavaScript
Raw Normal View History

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