0

I ran the react build script and it has built the files into a build folder. However when I use serve (or any static file serve package), I am able to see the files from the src folder when I check the inspector. The react components files can be seen from the inspector.

The actual directory structure

The files in the chrome inspector

How can I solve this issue?

Sarang S
  • 13
  • 2
  • This is not an issue. This is how source maps work. – Estus Flask Mar 20 '19 at 07:54
  • How can I go about hiding these files? – Sarang S Mar 20 '19 at 07:55
  • https://stackoverflow.com/a/21719713/1695393 has more details on sourcemaps... if you want to hide them, delete any `.map` files from your build directory – dubes Mar 20 '19 at 07:56
  • There are no these files. They are shown only in dev tools. If you believe you don't need source maps, remove .map files in production build, but you will have hard time debugging your app. – Estus Flask Mar 20 '19 at 07:56

0 Answers0