-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
feat(cli): allow to specify sourcemap mode via --sourcemap build's option #11505
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code and behavior looks good to me!
Would you update this part, too?
Line 57 in f12a1ab
| `--sourcemap` | Output source maps for build (default: `false`) (`boolean`) | |
@sapphi-red sure d981c0c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Hi I don't know how to add this to my vite 4.1.4, please can you help? |
We will only ship this in Vite 4.2 when it's released. |
@ivana-helvin you can test it now at vite@4.2.0-beta.0 (stable release will probably take ~10-15 days) |
Description
Currently there are no ways to set
build.sourcemap
tohidden
via CLI. But it may be useful to set it on different environments without customization of Vite config, for example in CI:Additional context
What is the purpose of this pull request?
Before submitting the PR, please make sure you do the following
fixes #123
).