Skip to content

How can I remove some developer component from the production build without ejecting? #12416

Discussion options

You must be logged in to vote

Using source-map-explorer I found that the components I was worried about already were excluded from the production build. I was using an environment variable to exclude them from the react-router-dom Switch block, so CRA/webpack must be configured to drop any import that isn't used.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dominick-Peluso-Bose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant