-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Exclude JSON from sourcemaps #3878
Comments
I guess you can just run a script after esbuild that replaces the json fields in sourcemap with |
This would be tricky - since the filenames aren't retained - or if they are the order is lost - since the code mapping portion of the sourcemap contains hundreds of empty Seems like a reasonable feature to add though, rather than forcing the use of an |
I'm trying to exclude JSON files from sourcemaps - I've already looked at #1685 and implemented the suggested solution - however this only works for JS files as you can't append a comment to a JSON file (esbuild complains about this if I do add the comment). Unfortunately these files are still added to the client sourcemap, making it quite large.
Is there a way to exclude JSON files from the sourcemap?
The text was updated successfully, but these errors were encountered: