Closed martinerko closed 1 year ago
@martinerko I'm closing this PR because of inactivity. I'd have possibly merged if it was fully working, but as @sventschui mentioned there';'s a problem with this code as-is.
We don't support things like craco
, react-app-rewired
etc...
As per Webpack spec, providing
include/exclude
parameter when defining rule is not mandatory. When usingpreset-create-react-app
with defaultCRA
setup, everything works fine. However, for people using customizedCRA
(such ascraco
,react-app-rewired
) this can cause an issue if the rule that gets modified as part of this preset does not contain such a parameter (include/exclude). Preset will produce an array containing anundefined
value in it which will later cause a crash.Such a rule has been already introduced to CRA codebase but has not been released yet.