Open joevo2 opened 7 years ago
Once Babel 7 is released, this wil be much much simpler - add babel-preset-typescript, replace babel-preset-react with three plugins to remove Flow (syntax-jsx, transform-react-jsx, transform-react-display-name), add .ts and .tsx extensions to Webpack config, and change config/paths.js
to look for src/index.tsx
instead of src/index.js
.
This will use babel for compilation instead of Typescript, but uses Typescript for its type system. Probably the best compromise given all the babel-specific plugins built into create-react-app.
Interesting thanks for the update @threehams
Any updates on this?
babel 7 now in beta 😄
babel 7 now released. I'd love to see this one added!
Currently im using this as my CRA script~ it would be great if i could use typescript as well as CSS module and stuff offered in this repo
https://github.com/wmonk/create-react-app-typescript