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
This is related to #19186 (as an alternative solution to that proposal).
Source Maps are too large for analysis in production during production. (I know it's not the normal way)
Vite should have an option to generate a very limited source map.
The ability for it to record ONLY the original filename of files in a limited set of directories. (No line numbers, character positions etc).
There was a related discussion about avoid generating source maps for node_modules #17923 (comment).
I think this is somewhat possible from a plugin by manipulating mappings for selected files. Here is an example to force empty mappings for some files https://stackblitz.com/edit/vitejs-vite-xxt3g3ph?file=vite.config.ts (it should be tested locally as stackblitz's browser source map seems not working).
Description
This is related to #19186 (as an alternative solution to that proposal).
Source Maps are too large for analysis in production during production. (I know it's not the normal way)
Vite should have an option to generate a very limited source map.
The ability for it to record ONLY the original filename of files in a limited set of directories. (No line numbers, character positions etc).
The intention is to analyse stack traces.
Suggested solution
Limited Source maps
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: