An open API service indexing awesome lists of open source software.

https://github.com/lwd-technology/react-app-rewire-typescript

Add ts-loader to a react-app-rewired config.
https://github.com/lwd-technology/react-app-rewire-typescript

react-app-rewired ts-loader typescript webpack

Last synced: about 1 year ago
JSON representation

Add ts-loader to a react-app-rewired config.

Awesome Lists containing this project

README

          

# react-app-rewire-typescript

Add [Typescript](https://github.com/microsoft/typescript) Webpack loading to a [`react-app-rewired`](https://github.com/timarney/react-app-rewired) config.

```js
/* config-overrides.js */

const rewireTypescript = require('react-app-rewire-typescript');

module.exports = function override(config, env) {
// ...
config = rewireTypescript(config, env);
// ...
return config;
}
```

For running `.ts` test files, take a look at [`ts-jest`](https://github.com/kulshekhar/ts-jest). PRs to integrate `ts-jest` compatibility into this repo are welcome.