preliminary ts support in webpack

This commit is contained in:
Crazypersonalph
2023-12-04 12:44:35 +08:00
parent 4457670a53
commit 526c80fa39
+8
View File
@@ -53,8 +53,16 @@ export default {
filename: 'src/[path][name][ext]', filename: 'src/[path][name][ext]',
}, },
}, },
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
}
], ],
}, },
resolve: {
extensions: ['.tsx', '.ts', '.js'],
},
plugins: [ plugins: [
new ESLintPlugin(), new ESLintPlugin(),
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({