Now we can customize JSX pragma for React.createElement. But here shows that buble now hardcodes fragment expression as React.Fragment which is not really a good idea. Can we make fragment pragma customizable? Such as adding an option jsxFrag to the option list?
Now we can customize JSX pragma for
React.createElement
. But here shows that buble now hardcodes fragment expression asReact.Fragment
which is not really a good idea. Can we make fragment pragma customizable? Such as adding an optionjsxFrag
to the option list?Here we can see babel has already supported customizing fragment pragma. Hope buble can add this soon.