Repository navigation
Vite React Code Hiding #338
Answered
by
ArnaudBarre
serhatzunluoglu
asked this question in
Q&A
|
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. |
Answered by
ArnaudBarre
Jun 21, 2024
Replies: 2 comments 2 replies
|
This is likely a limitation of Vite's non-bundled approach vitejs/vite#16440 (reply in thread) |
2 replies
|
I don't understand, what is the problem of having sources present in development? |
0 replies
Answer selected by
serhatzunluoglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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)