Skip to content

Commit

Permalink
fix: add support for jsx, ts, tsx in webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
Coltin Kifer committed Sep 6, 2024
1 parent d961489 commit 2524dbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const config = {
rules: [
{
use: 'babel-loader',
test: /\.(js|jsx)$/,
test: /\.(js|jsx|ts|tsx)$/,
exclude: /node_modules/,
include: [path.resolve(__dirname, 'src')],
},
Expand All @@ -28,6 +28,7 @@ const config = {
'react-dom': path.join(__dirname, './node_modules/react-dom'),
'react-transition-group': path.join(__dirname, './node_modules/react-transition-group'),
},
extensions: ['.js', '.jsx', '.json', '.ts', '.tsx'],
},

externals: {
Expand Down

0 comments on commit 2524dbc

Please sign in to comment.