Skip to content

lwd-technology/react-app-rewire-typescript

Repository files navigation

react-app-rewire-typescript

Add Typescript Webpack loading to a react-app-rewired config.

/* 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. PRs to integrate ts-jest compatibility into this repo are welcome.