From df3df54a7a09d4ace33ce2a0c2d254e16f5a31ec Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 17 Jul 2025 17:44:06 +0100 Subject: [PATCH] Compile JS to es2022 --- config/config.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.exs b/config/config.exs index 0e353857..b5b19591 100644 --- a/config/config.exs +++ b/config/config.exs @@ -50,7 +50,7 @@ config :esbuild, version: "0.25.6", music_library: [ args: - ~w(js/app.js --bundle --target=es2017 --outdir=../priv/static/assets --external:/fonts/* --external:/images/* --alias:@=.), + ~w(js/app.js --bundle --target=es2022 --outdir=../priv/static/assets --external:/fonts/* --external:/images/* --alias:@=.), cd: Path.expand("../assets", __DIR__), env: %{"NODE_PATH" => [Path.expand("../deps", __DIR__), Mix.Project.build_path()]} ]