get-matched-rule.js 352 B

1234567891011121314
  1. /* eslint-disable global-require */
  2. const getWebpackVersion = require('./get-webpack-version');
  3. let getMatchedRule = null;
  4. if (getWebpackVersion.IS_5) {
  5. // webpack5 and upper
  6. getMatchedRule = require('./get-matched-rule-5');
  7. } else {
  8. // webpack4 and lower
  9. getMatchedRule = require('./get-matched-rule-4');
  10. }
  11. module.exports = getMatchedRule;