kitze / custom-react-scripts

[DEPRECATED, use customize-cra] Allow custom config for create-react-app without ejecting
https://custom-react-scripts.netlify.com
MIT License
993 stars 97 forks source link

Typescript support? #79

Open joevo2 opened 7 years ago

joevo2 commented 7 years ago

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

threehams commented 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.

joevo2 commented 7 years ago

Interesting thanks for the update @threehams

andyfangaf commented 6 years ago

Any updates on this?

joevo2 commented 6 years ago

babel 7 now in beta 😄

Blackbaud-ScottVossen commented 5 years ago

babel 7 now released. I'd love to see this one added!