Skip to content

Commit

Permalink
esbuild: add target es2015
Browse files Browse the repository at this point in the history
  • Loading branch information
aspeddro committed Apr 19, 2024
1 parent affe4b5 commit d84d7fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const config = {
test: /\.m?js$/,
// v-- currently using an experimental setting with esbuild-loader
//use: options.defaultLoaders.babel,
use: [{ loader: "esbuild-loader", options: { loader: "jsx" } }],
use: [{ loader: "esbuild-loader", options: { loader: "jsx", target: "es2015" } }],
exclude: /node_modules/,
type: "javascript/auto",
resolve: {
Expand Down

0 comments on commit d84d7fa

Please sign in to comment.