react-app-rewire-typescript-babel-preset
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

react-app-rewire-typescript-babel-preset

Circle CI

Add TypeScript support to Create React App using @babel/preset-typescript.

react-app-rewire-typescript-babel-preset is a plugin for react-app-rewired which adds support for TypeScript to Create React App (react-scripts v2).

It uses the Babel preset @babel/preset-typescript as an alternative to Webpack loaders. This allows you to more easily use the Babel ecosystem of transforms and plugins.

Changelog

Documentation

Please see the full documentation here: https://react-app-rewire-typescript-babel-preset.netlify.com

Example Config

After installation you'll end up with a config-overrides.js similar to this:

const {
  rewireWebpack: rewireTypescript,
  rewireJest: rewireTypescriptJest,
  rewireTSLint 
= require("react-app-rewire-typescript-babel-preset");
 
module.exports = {
  webpack: function(config, env) {
    return rewireTypescript(config);
  },
  jest: function(config) {
    return rewireTypescriptJest(config);
  }
};

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.0.043latest

Version History

VersionDownloads (Last 7 Days)Published
3.0.043
2.5.00
2.4.00
2.3.00
2.2.10
2.2.01
2.1.20
2.1.10
2.1.00
2.0.00
1.0.20
1.0.13
1.0.00

Package Sidebar

Install

npm i react-app-rewire-typescript-babel-preset

Weekly Downloads

47

Version

3.0.0

License

MIT

Unpacked Size

19.8 kB

Total Files

20

Last publish

Collaborators

  • strothj