bublejs / buble

https://buble.surge.sh
MIT License
869 stars 67 forks source link

Custom `React.Fragment` pragma for JSX #198

Closed ClassicOldSong closed 5 years ago

ClassicOldSong commented 5 years ago

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?

Here we can see babel has already supported customizing fragment pragma. Hope buble can add this soon.

ClassicOldSong commented 5 years ago

I'll see if I can submit a pull request on this

mourner commented 5 years ago

Fixed in #199