-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(es/minifier): Regex support for format.comments
#10571
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(es/minifier): Regex support for format.comments
#10571
Conversation
|
We are supporting regex in some places with rust syntax, so I'm not sure if it's fine to mix regex. Should we adjust |
|
At the time of introducing regex to SWC config for the first, there was no good ECMAScript regex crate... |
However, after checking the codebase, it seems that most 🤔 So I'm not sure whether it's necessary to adjust |
|
Oh. Then let’s just use js regex, but with something like CachedJsRegex (if the js regex crate supports compiling regex) |
|
CodSpeed Performance ReportMerging #10571 will not alter performanceComparing Summary
|
kdy1
left a comment
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!
format.comments
Description:
Use regress because it is compatible with EcmaScript Syntax. So the users can easily migrate from terser.
I will also update the docs.
Related issue (if exists):
closes: #9674