-
Notifications
You must be signed in to change notification settings - Fork 28.9k
perf(next-swc): Remove needless JSON conversion #80671
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
Conversation
Failing test suitesCommit: d48f478
Expand output● server-side dev errors › should show server-side error for dynamic api route correctly
Read more about building and testing Next.js in contributing.md.
Expand output● segment cache (revalidation) › evict client cache when Server Action calls revalidatePath
Read more about building and testing Next.js in contributing.md. |
CodSpeed Performance ReportMerging #80671 will not alter performanceComparing Summary
|
}; | ||
|
||
use crate::{get_compiler, util::MapErr}; | ||
|
||
pub struct MinifyTask { | ||
c: swc_core::base::Compiler, | ||
code: MinifyTarget, | ||
code: Option<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.
Why is this an option? What's the point in minifying if you don't pass any code to minify?
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 do get &mut self
instead of self
by the trait definition
What?
Remove JSON operations that are not required.
Why?
How?
Closes PACK-4870