turbopack: keep parens around PURE-annotated callees in fixer
Turbopack ran SWC's fixer without comments, so it dropped the parentheses in
(/* @__PURE__ */ f())(). After printing and re-parsing for minification, the
annotation applied to the outer call and the minifier removed side-effecting
IIFEs (#99897). Pass a read-only view of the parsed and codegen comments so
the fixer's PURE/NO_SIDE_EFFECTS guard works without mutating the stores.
Co-authored-by:
Tobias Koppers <1365881+sokra@users.noreply.github.com>
Showing
Please
register
or
sign in
to comment