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
File path in the browser module file #16578
Labels
Comments
Adding comments to each file by default requires creating a sourcemap to map back to the original position. Vite's URL requests are usually close to the filesystem path too, so it's not hard to find the original path. Otherwise, you can also create a Vite plugin to add the comment by default. Hence, I don't think this is something Vite will support by default. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
sometimes in a big projects with tons of dependencies there is a problem to point to the exact file with the error, so by adding the file path (relative to the project) it will help to point into the exact file
Suggested solution
in the JavaScript module files for the browser (in dev) include a comment at the top with the file name relative to the project
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: