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
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.
NOTE:
I haven't ejected the project.
Steps to reproduce:
Initialize a project with CRA create-react-app testApp
Run yarn run build to bundle the project
Deploy the build using pushstate-server using pushstate-server build
Go to localhost:9000 and go to sources in chrome debugger.
Now go to sources and see the following path top -> webpack:// -> . -> src.
Actual Behavior
Here you can see the whole code of the project in the production build.
Expected Behavior
The source code is not supposed to be exposed in the production build.
Discussion
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