DEV Community

Discussion on: Hide ReactJS Code From Browser

Collapse
 
sgolovine profile image
Sunny Golovine

So typically you won't want to include sourcemaps in your production build as all it does it jack up your bundle size and how much data has to be delivered to the user.

Source maps should be disabled by default in prod builds and only enabled when there is an production issue that for some reason can't be solved locally.