mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-03-12 10:30:21 +01:00
13 lines
292 B
JavaScript
13 lines
292 B
JavaScript
|
module.exports = ({ config }) => {
|
||
|
config.module.rules.push({
|
||
|
test: /\.(ts|tsx)$/,
|
||
|
loader: require.resolve('babel-loader'),
|
||
|
options: {
|
||
|
presets: [require.resolve('babel-preset-react-app')],
|
||
|
},
|
||
|
});
|
||
|
|
||
|
config.resolve.extensions.push('.ts', '.tsx');
|
||
|
return config;
|
||
|
};
|