FormidableLabs / react-live

A flexible playground for live editing React components

Home Page:https://commerce.nearform.com/open-source/react-live/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to disable Buble

ntucker opened this issue · comments

  1. It's destructive as it transforms away classes, which means it this is all anyone sees: class constructors must be invoked with 'new'
  2. It's completely pointless except for JSX as there are zero developers in the world running IE11 as their primary browser.
  3. It's expensive to process and download
  4. 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

commented

hey @ntucker -- we'll be replacing Bublé with sucrase going forward. there still isn't a way to disable the transpilation step, but you may find that it's less destructive.

i'm going to close this issue for now, but please reopen it if you're still experiencing the issue. thanks! 🙇🏻‍♂️

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.