-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make React development mode an option #266
Comments
Heh, I had a feeling someone would request this. I've been trying to keep this project zero/low-configuration and focused on the "fast development builds" use case, but I suppose it's reasonable that people would want the same code running in dev and prod. FWIW, my use case at work is to only use it in development and still use Babel and tsc for prod builds, since we still want to support IE. Production builds are also already slower, and they run in CI anyway, so the speed gains from Sucrase are unimportant there. Do you have thoughts on the right config here? Currently I'm thinking there can be a new Happy to accept a PR (using the |
I have this working already. I wanted to send the other more straight forward PR first to get a better hang of the process in this project. |
Fixed with #270. |
generates code that has
__self
and__source
props. This is normally only enabled when you use preset-react with development to true.The text was updated successfully, but these errors were encountered: