-
-
Notifications
You must be signed in to change notification settings - Fork 1.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(es/minifier): Support format.inline_script
#8252
Conversation
inline_script
format.inline_script
2942278
to
ef6c1e2
Compare
crates/swc_ecma_codegen/src/lib.rs
Outdated
@@ -75,6 +75,52 @@ where | |||
pub wr: W, | |||
} | |||
|
|||
fn replace_close_inline_script(raw: &str) -> String { |
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.
This is still unconditional. Can we check for the existence of the pattern and return Cow::Borrowed(raw)
if it's not found?
ef6c1e2
to
76af2f8
Compare
76af2f8
to
821aeeb
Compare
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.
Thanks!
swc-bump:
- swc_ecma_codegen
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.
Automated review comment generated by auto-rebase script
It works. The red line is about typescript typings |
This serves as a partial solution for issue #7602, should we proceed, the implementation of ends_with will be needed.