Closed blazeu closed 6 years ago
Real production apps might not want this, but we want this to ease reviewing of MR preview and easier reporting of bugs in general.
This will give proper stack traces just like in development mode.
CRA uses cheap-module-source-map in dev
cheap-module-source-map
https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/webpack.config.dev.js#L78-L80
and source-map in prod
source-map
https://github.com/facebook/create-react-app/blob/next/packages/react-scripts/config/webpack.config.prod.js#L96-L98
Seems like our config is reversed a bit...
https://github.com/coala/gh-board/blob/38a94ce8e8711369e58502fefda67d4c479afc50/webpack.config.js#L21
Real production apps might not want this, but we want this to ease reviewing of MR preview and easier reporting of bugs in general.
This will give proper stack traces just like in development mode.