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
Why?
SourceMaps needs in Dev mode, in Prod it must be always disabled. But this condition enable Style Source Maps ONLY in PROD + shouldUseSourceMap, in all other situations it will be False
Describe the bug
Here: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/config/webpack.config.js
wrong condition:
sourceMap: isEnvProduction && shouldUseSourceMap
correct condition:
sourceMap: isEnvDevelopment && shouldUseSourceMap
Why?
SourceMaps needs in Dev mode, in Prod it must be always disabled. But this condition enable Style Source Maps ONLY in PROD + shouldUseSourceMap, in all other situations it will be
False
Research results:
The text was updated successfully, but these errors were encountered: