diff options
author | silverwind <me@silverwind.io> | 2024-07-09 11:28:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 09:28:43 +0000 |
commit | 13015bba5a3a2bea1ccc96e9282995bedacc5694 (patch) | |
tree | 4e5b64f2067fca4622fd16af5a195e3ff214b756 | |
parent | 4696bcb3f74fd7bf934610cbadff39c0a3649975 (diff) | |
download | gitea-13015bba5a3a2bea1ccc96e9282995bedacc5694.tar.gz gitea-13015bba5a3a2bea1ccc96e9282995bedacc5694.zip |
Add back esbuild-loader for .js files (#31585)
The build currently seems to work fine without this, but in theory it
should fail because Fomantic is JavaScript. I feel more comfortable
having this loader declared.
Note: I did try using the [combined loader
config](https://github.com/privatenumber/esbuild-loader#-quick-setup)
but when I did that, vue files could not load, so I think this is the
best option.
-rw-r--r-- | webpack.config.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js index fa24354a5b..838fb51f43 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -140,6 +140,19 @@ export default { }, }, { + test: /\.js$/i, + exclude: /node_modules/, + use: [ + { + loader: 'esbuild-loader', + options: { + loader: 'js', + target: 'es2020', + }, + }, + ], + }, + { test: /\.ts$/i, exclude: /node_modules/, use: [ |