next.js
196ed2b8 - Fix syntax contexts in server action transform (#91210)

Commit
12 days ago
Fix syntax contexts in server action transform (#91210) ``` let x: Ident = IdentName::new(name, span).into(); ``` should never be done. It uses `SyntaxContext::default()` for the Ident. So from swc's perspective, you are referring to a different variable than you think. When constructing an `Ident`, you should usually always provide a SyntaxContext. I think this would pose a problem in Webpack because it serializes it into a code string again, but for Turbopack these SyntaxContext are important.
Author
Parents
Loading