Suggestion: omit void 0
from output of new JSX transform (react-jsx
)
#47439
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Bug Report
π Search Terms
react-jsx
void 0
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
tsconfig.json
:π Actual behavior
π Expected behavior
This is how it works in Babel: Babel playground.
I just tried to migrate our codebase at Unsplash to use the new JSX transform but I noticed a cumulative increase of 5 KB across all chunks. If we can remove the extraneous
void 0
, this should help reduce the bundle size.Twitter thread for reference: https://twitter.com/OliverJAsh/status/1481912497175203840
The text was updated successfully, but these errors were encountered: