UNPKG

303 BJavaScriptView Raw
1module.exports = ({ config, mode }) => {
2 config.module.rules.push({
3 test: /\.(ts|tsx)$/,
4 loader: require.resolve('babel-loader'),
5 options: {
6 presets: [['react-app', { flow: false, typescript: true }]],
7 },
8 });
9 config.resolve.extensions.push('.ts', '.tsx');
10 return config;
11};
\No newline at end of file