pradel / create-react-app-esbuild

Use esbuild in your create-react-app for faster compilation, development and tests
MIT License
562 stars 34 forks source link

`esbuild-jest` file patterns are wrong #33

Closed yaronya closed 3 years ago

yaronya commented 3 years ago

esbuild-jest file load patterns are currently set to:

loaders: {
      '.js': 'jsx',
      '.test.js': 'jsx',
      '.ts': 'tsx',
      '.test.ts': 'tsx',
}

This might be wrong because .ts file just get the 'tsx' loader and not ts. When using tsx for .ts I get a lot of transformation errors.