diff --git a/webapp/packages/core-cli/configs/webpack.config.js b/webapp/packages/core-cli/configs/webpack.config.js index ad1595a600..fbfe559830 100644 --- a/webapp/packages/core-cli/configs/webpack.config.js +++ b/webapp/packages/core-cli/configs/webpack.config.js @@ -289,7 +289,17 @@ module.exports = (env, argv) => { devMode && { test: /\.jsx?$/, exclude: /node_modules/, - use: ['thread-loader', 'swc-loader'], + use: [ + 'thread-loader', + { + loader: 'swc-loader', + options: { + jsc: { + target: 'esnext', + }, + }, + }, + ], }, { test: /\.(css|s[ac]ss)$/,