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
Update swc_core to v0.75.23
#4470
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Ignored Deployments
|
|
✅ This changes can build |
Benchmark for 724875aClick to view benchmark
|
@@ -215,9 +222,15 @@ impl EcmascriptInputTransform { | |||
..Default::default() | |||
}; | |||
let p = std::mem::replace(program, Program::Module(Module::dummy())); | |||
let hash = { | |||
let mut hasher = DefaultHasher::new(); | |||
p.hash(&mut hasher); |
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.
That sounds pretty expensive. Do we need to hash the whole AST?
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.
What I actually need is the hash of the source code. Would it be better?
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.
We can pass that via TransformContext
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.
But how is the transform using that? Would a comment change have effects on the transform?
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.
It's used to generate a hash for the file.
Related: swc-project/plugins#163
Benchmark for 7ee7bb3Click to view benchmark
|
Depends on vercel/turbo#4470 --- - Closes #46989 - Fixes WEB-879 - Fixes WEB-813 --------- Co-authored-by: OJ Kwon <1210596+kwonoj@users.noreply.github.com> Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com> Co-authored-by: Shu Ding <g@shud.in>
### Description This update includes an improvement of `@swc/helpers`, so we need to update `@swc/helpers` too when updating next-swc. ### Testing Instructions Fix WEB-744 Fix WEB-859 --- - Fixes vercel#2825. - Fixes vercel#4092.
Description
This update includes an improvement of
@swc/helpers
, so we need to update@swc/helpers
too when updating next-swc.Testing Instructions
Fix WEB-744
Fix WEB-859