dillon1000/react

Commit

Transform JSX to Lazy Requires instead of Wrappers (#30433)

This ensures that we can keep overriding what runtime to use by
resetting modules while still using the automatic JSX plugin. This is
like the "inline requires" transform but just for JSX.

I got sick of trying to figure out workarounds to hide the extra stack
frame that appears due to the wrappers.
Browse files
Changed paths5 files
First-parent comparison
A scripts/babel/__tests__/transform-lazy-jsx-import-test.js AddedA scripts/babel/transform-lazy-jsx-import.js AddedM scripts/jest/devtools/setupEnv.js ModifiedM scripts/jest/preprocessor.js ModifiedM scripts/jest/setupTests.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…