JetBrains / svg-sprite-loader

Webpack loader for creating SVG sprites.
MIT License
2.01k stars 271 forks source link

fix(utils): force get-matched-rule-4 to use nearest webpack installation #463

Closed protango closed 3 years ago

protango commented 3 years ago

What kind of change does this PR introduce? (bugfix, feature, docs update, improvement) bugfix

What is the current behavior? (You can also link to an open issue here)

461

What is the new behavior (if this is a feature change)? The get-matched-rule-4 util will now load webpack/lib/RuleSet only from the nearest webpack installation, it will no longer look up the chain for additional webpack installations until it finds the RuleSet file.

This eliminates the issue raised in #461, where the wrong version of webpack is loaded in a scenario where multiple nested webpack installations exist.

Does this PR introduce a breaking change? No

Please check if the PR fulfills contributing guidelines