How do you hide timestamps in react production after build in vite? #17761
-
My phase of production is currenly at pentest, which I need to pass every test, even it's low. There's a pentest that says
I found out that in react production, there's a function that written like this
I'm assuming that it comes from react library itself. Because its being used everywhere. Is there anyway to hide this or maybe replace it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I don't think that comes from React and the code looks quite suspicious, unless it's doing some encoding stuff. You might want to search in your dependdencies, or write a Vite plugin to detect where this comes from. A github search may also help. |
Beta Was this translation helpful? Give feedback.
-
for anyone else that finds this, it is actually from https://github.com/emotion-js/emotion/blob/cce67ec6b2fc94261028b4f4778aae8c3d6c5fd6/packages/hash/src/index.ts the hex |
Beta Was this translation helpful? Give feedback.
I don't think that comes from React and the code looks quite suspicious, unless it's doing some encoding stuff. You might want to search in your dependdencies, or write a Vite plugin to detect where this comes from. A github search may also help.