summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorAnbraten <anton@ju60.de>2024-10-29 11:47:39 +0100
committerAnbraten <anton@ju60.de>2024-10-29 18:15:09 +0100
commit8dc72589cafd0881e234af489c4b3d643422f7e9 (patch)
treee2029633859a2ca528991efbdb5c39e4719367ff /webpack.config.js
parentMerge pull request 'Update vitest monorepo to v2.1.4 (forgejo)' (#5737) from ... (diff)
downloadforgejo-8dc72589cafd0881e234af489c4b3d643422f7e9.tar.xz
forgejo-8dc72589cafd0881e234af489c4b3d643422f7e9.zip
Add typescript
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index ebbc51a381..4662a30db5 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -178,13 +178,13 @@ export default {
},
},
{
- test: /\.js$/i,
+ test: /\.(js|ts)$/i,
exclude: /node_modules/,
use: [
{
loader: 'esbuild-loader',
options: {
- loader: 'js',
+ loader: 'ts',
target: 'es2020',
},
},