dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonscripts/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…