Skip to content

Commit

Permalink
Add back esbuild-loader for .js files (go-gitea#31585)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
silverwind committed Jul 9, 2024
1 parent 4696bcb commit 13015bb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,19 @@ export default {
},
},
},
{
test: /\.js$/i,
exclude: /node_modules/,
use: [
{
loader: 'esbuild-loader',
options: {
loader: 'js',
target: 'es2020',
},
},
],
},
{
test: /\.ts$/i,
exclude: /node_modules/,
Expand Down

0 comments on commit 13015bb

Please sign in to comment.