mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* fix: plugin react-constant-elements transform JSXFrament not add container * test: add a jsx-in-frament test case for plugin-react-constant-elements * feat: hoist JSXFragment if possible * add more test cases --------- Co-authored-by: Huáng Jùnliàng <[email protected]>
5 lines
87 B
JavaScript
5 lines
87 B
JavaScript
var _Fragment;
|
|
function F() {
|
|
return _Fragment || (_Fragment = <><div>f</div></>);
|
|
}
|