Previously [swc] miscompiled
This is now fixed fundamentally. The parenthesis remover pass now checks if a comment exists for inner node.
Now dependencies of circular imports of exports are handled correctly and topo sort algorithm is now applied correctly.
The pr fixes number of bugs of
Now if you use bundler with [swc], the helpers of [swc] will be efficiently emitted.
Thanks to @nayeemrmn, multiple usage of
import.meta does not create multiple
Although class declarations are not hoisted, it's a top-level item and should be handled before function bodies.
should be treated as