-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature to preserve original file names and file paths in stack (after bunding) #19186
Comments
See: https://github.com/pjebs/vite-issue-19186 See file: Prod code: |
It would be awesome if some kind of solution can be found without source maps. |
Alternative an option to produce very limited sourcemaps so only relevant files (in my case only their filenames for a few source directories) can be mapped to reduce the size of the generated sourcemap. |
It sounds like you're proposing an entire source map alternative and that's probably out-of-scope for Vite. Let me close this and it might be possible tackle #19187 instead. |
Description
During
npm run dev
, the stack trace contains information about the chain of calling functions (most importantly their file name and path).After
npm run build
and thennpm run preview
, the stack trace loses all of that original information (since after bundling it is the one file).I was wondering if vite can make it possible for me to find that information (without a source map) for some key functions that I can mark to Vite.
Suggested solution
Not sure
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: