-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Babel 7 + babel-preset-react-app@next but with TypeScript #3863
Comments
I wouldn't mind making it possible to exclude the |
sure @gaearon, what do you think about:
similar to how we use |
Looks good to me @oieduardorabelo. Do we know if there's an existing setting anywhere else so we can keep a consistent option name? |
thanks @Timer, based on the docs, there are different options and configs, the only one I found similar to opt-in/out was
maybe the the last link is similar too, where we can toggle
following that, we could use:
|
I think "flow": false is best then 😄 |
Fixed in #3865 |
Does this mean CRA supports React with typescript natively? 🕺 |
I doubt that :-). But if you can reuse the preset I guess that's nice? |
TypeScript is now officially supported as of Create React App 2.1. Read the release notes to get started! |
Hello there 👋 ,
I'm trying to unify my building, currently TypeScript & Babel, under Babel 7,
I'm using
babel-preset-react-app@next
, to keep everything nice and updated, but, when I try to mix with@babel/preset-typescript
, I've the following error:Seems it's because we've the
@babel/preset-flow
built in inbabel-preset-react-app
,My questions is:
babel-preset-react-app
make a opt-in/out for@babel/preset-flow
?How to reproduce
Keep in mind, below, there's no
tsconfig.json
yet, because the project doesn't even compile with both presets describe aboveThe text was updated successfully, but these errors were encountered: