From 526c80fa394439e9dd11f75d1f27b5cb35f411a4 Mon Sep 17 00:00:00 2001 From: Crazypersonalph <93847055+Crazypersonalph@users.noreply.github.com> Date: Mon, 4 Dec 2023 12:44:35 +0800 Subject: [PATCH] preliminary ts support in webpack --- webpack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 5d4f2e8d..3ce548db 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -53,8 +53,16 @@ export default { filename: 'src/[path][name][ext]', }, }, + { + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/, + } ], }, + resolve: { + extensions: ['.tsx', '.ts', '.js'], + }, plugins: [ new ESLintPlugin(), new MiniCssExtractPlugin({