Vite React Code Hiding #338
-
In my react project that I created with Vite, I do not want the codes to appear in the sources section in the browser. How can I do that? I tried things like sourcemap=false but it didn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is likely a limitation of Vite's non-bundled approach vitejs/vite#16440 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
I don't understand, what is the problem of having sources present in development? |
Beta Was this translation helpful? Give feedback.
I don't understand, what is the problem of having sources present in development?
This will not be present in the prod version if you disable source maps (or push them to something like Sentry and then remove them from the dist folder)