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
Context:
I have created a new react ts vite project, and I have noticed that when going to the Dev Tools Network tab and choosing All, all my .ts and .tsx source files are being fetched. This also happens in production, which is of course an undesirable behaviour
Is this a bug or something that I can fix in the config? How to prevent source files from being fetched in production?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Context:
I have created a new react ts vite project, and I have noticed that when going to the Dev Tools Network tab and choosing
All
, all my.ts
and.tsx
source files are being fetched. This also happens in production, which is of course an undesirable behaviourIs this a bug or something that I can fix in the config? How to prevent source files from being fetched in production?
Here is my current vite config:
here is my tsconfig.json:
here is my tsconfig.node.json:
Node version: 20.11.11
package manager: yarn v1
this is how I build for production:
tsc && vite build
How to prevent source files from being fetched in production?
Beta Was this translation helpful? Give feedback.
All reactions