custom-react-scripts icon indicating copy to clipboard operation
custom-react-scripts copied to clipboard

Typescript support?

Open joevo2 opened this issue 8 years ago • 5 comments

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

joevo2 avatar May 08 '17 08:05 joevo2

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.

threehams avatar Aug 12 '17 19:08 threehams

Interesting thanks for the update @threehams

joevo2 avatar Aug 22 '17 02:08 joevo2

Any updates on this?

xndyz avatar Jan 15 '18 12:01 xndyz

babel 7 now in beta 😄

joevo2 avatar Jan 16 '18 11:01 joevo2

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

Blackbaud-ScottVossen avatar Feb 18 '19 15:02 Blackbaud-ScottVossen