Skip to content

Commit 13015bb

Browse files
authored
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.
1 parent 4696bcb commit 13015bb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

webpack.config.js

+13
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ export default {
139139
},
140140
},
141141
},
142+
{
143+
test: /\.js$/i,
144+
exclude: /node_modules/,
145+
use: [
146+
{
147+
loader: 'esbuild-loader',
148+
options: {
149+
loader: 'js',
150+
target: 'es2020',
151+
},
152+
},
153+
],
154+
},
142155
{
143156
test: /\.ts$/i,
144157
exclude: /node_modules/,

0 commit comments

Comments
 (0)