You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like using this plugin directly when I write my own webpack configs, and I think it would be beneficial to allow developers to pass a custom error message to the constructor that takes precedence over the default message. It would not be a breaking change, but would be a welcomed one so I don't have to patch in my own logic. I'm also happy to issue a PR for this if the maintainers are interested in allowing this to happen.
My specific use case is I'm working with Webpack under Bazel (bazel.build) and would like to provide more explicit error handling since the failure cases are more nuanced.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
create-react-app/packages/react-dev-utils/ModuleScopePlugin.js
Lines 15 to 19 in a422bf2
I like using this plugin directly when I write my own webpack configs, and I think it would be beneficial to allow developers to pass a custom error message to the constructor that takes precedence over the default message. It would not be a breaking change, but would be a welcomed one so I don't have to patch in my own logic. I'm also happy to issue a PR for this if the maintainers are interested in allowing this to happen.
My specific use case is I'm working with Webpack under Bazel (bazel.build) and would like to provide more explicit error handling since the failure cases are more nuanced.
I've created #11978 as a PoC
Beta Was this translation helpful? Give feedback.
All reactions