Created by: Aghassi
This is purely related to https://github.com/facebook/create-react-app/discussions/11977 as a proof of concept for what I'm proposing. It would allow folks who directly use this webpack plugin to customize the error output. Broader use of this error through other means in CRA would need more development.
This change allows the developer to pass in an error message so that they can provide a custom error message for the missing module in the event that it is ejected from CRA OR when the developer is using react-dev-utils
directly for their own use case (which is my current way of using this). So this allows developers who use this to get a more fine grain result for their end users with a better error message.