Follow the steps below to use babel
together with ts-loader
so that you can
use emotion
(or any other Babel plugin) in your React and TypeScript project.
1. Use create-react-app-typescript
$ create-react-app my-app --scripts-version=react-scripts-ts