Able to view the whole source code of the project in the chrome debugger when running the build using pushstate-server. Not sure whether this is a known issue or an expected behavior.
I haven't ejected the project.
create-react-app testAppyarn run build to bundle the projectpushstate-server buildlocalhost:9000 and go to sources in chrome debugger.Now go to sources and see the following path top -> webpack:// -> . -> src.
Here you can see the whole code of the project in the production build.
The source code is not supposed to be exposed in the production build.
Can anyone confirm whether this is a bug or just an expected behavior.
The following image shows the code when I deployed the project locally using pushstate-server

This is expected. You can delete .map files from the build output if you want to disable it, although you'll get console warnings about them missing.
There is no harm in leaving them in though in my opinion. Client code is already available to the user鈥檚 machine so there鈥檚 no secrets in it.
Just wanted to know, thanks for the clarification @gaearon
Most helpful comment
This is expected. You can delete
.mapfiles from the build output if you want to disable it, although you'll get console warnings about them missing.There is no harm in leaving them in though in my opinion. Client code is already available to the user鈥檚 machine so there鈥檚 no secrets in it.