react-app-rewire-typescript-babel-preset icon indicating copy to clipboard operation
react-app-rewire-typescript-babel-preset copied to clipboard

[email protected] support

Open feimosi opened this issue 6 years ago • 0 comments

Would be great to add support for [email protected] before deprecating this package, it's a very simple fix. Because of limited official TypeScript support in react-scripts I still actively use this package in production.

I've already fixed it here (just rewireWebpack.ts file changes): https://github.com/feimosi/react-app-rewire-typescript-babel-preset/commit/b1f8de5cfe54bee5168ce91cd3b924680bd7ca22#diff-a1bd5d0b107a0eb5ea012e4bec782aaeL4

v2.0.1 has removed all the helpers so we just need to restore them:

  • getBabelLoader from customize-cra,
  • getLoader embedded as it's not available anywhere.

Related: https://github.com/timarney/react-app-rewired/issues/348#issuecomment-452199363

feimosi avatar Mar 25 '19 16:03 feimosi