Webpack5 as used by GatsbyJS gets cranky when the descriptionData attribute from assorted rules
(like its stock JS processing) isn't consumed during a compile pass. Adding this rule plugin
resolves this issue.
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)
(e.g. in Gatsby:)
failed Building production JavaScript and CSS bundles - 0.362s
ERROR #98123 WEBPACK
Generating JavaScript bundles failed
Compiling RuleSet failed: Properties descriptionData are unknown (at ruleSet[0].rules[0]: [object Object])
...which is valid when Webpack processes it with all its built-in rules but not when we're somewhat goofily using only parts of Webpack in get-matched-rule-5.js.
What is the new behavior (if this is a feature change)?
Webpack5 as used by GatsbyJS gets cranky when the
descriptionData
attribute from assorted rules (like its stock JS processing) isn't consumed during a compile pass. Adding this rule plugin resolves this issue.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)
(e.g. in Gatsby:)
...for a ruleset like:
...which is valid when Webpack processes it with all its built-in rules but not when we're somewhat goofily using only parts of Webpack in
get-matched-rule-5.js
.What is the new behavior (if this is a feature change)?
Everything passes.
Does this PR introduce a breaking change?
No.
Please check if the PR fulfills contributing guidelines
Yes.