Option to disable Buble
ntucker opened this issue · 2 comments
ntucker commented
- It's destructive as it transforms away classes, which means it this is all anyone sees:
class constructors must be invoked with 'new'
- It's completely pointless except for JSX as there are zero developers in the world running IE11 as their primary browser.
- It's expensive to process and download
- There are better ways to deal with JSX
If you like this default - whatever. Just give us the option to be able to use this project. It comes with docusaurus so the stylings are nice.
I tried
transpileOptions={{
target: { chrome: 71 },
transforms: { classes: false },
}}
to no avail
jpdriver commented
ntucker commented
Could we have options for sucrase? Would be great to use the already shipped with bundle typescript transform. I mean who doesn't use typescript? disableESTransforms: true
would also be handy here.
If you're worried about exposing options that might change over time, keep in mind that any changes to transformation are going to be just as breaking so you're not actually saving yourself at all.