diff options
author | marco <marcoambrosini@pm.me> | 2022-05-04 13:39:06 +0200 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2022-05-18 08:19:24 +0200 |
commit | 29a4ff3ebbb0ea82fe84bb6e24f28e4d0469501f (patch) | |
tree | 5edaf44c06247b438baa7cc40a2b585859ffd4f4 /webpack.js | |
parent | 62aba746bbe62186aa29c7e29f3ac850ac48ae41 (diff) |
ts
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'webpack.js')
-rw-r--r-- | webpack.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webpack.js b/webpack.js index f8f8015e3..310a8fe24 100644 --- a/webpack.js +++ b/webpack.js @@ -79,4 +79,14 @@ webpackConfig.module.rules.push({ use: { loader: 'worker-loader' }, }) +// Add typescript rule +webpackConfig.module.rules.push({ + test: /\.tsx?$/, + use: ['babel-loader', 'ts-loader'], + exclude: /node_modules/, +}) + +// Add typescript extension resolver +webpackConfig.resolve.extensions.push('.tsx') + module.exports = webpackConfig |