However, esbuild currently supports additional, more recent targets: es2021, es2022, es2023. I've tested that I can use them with raw esbuild, but they do not work when passed to js.Build in hugo.
Proposal is to add support for those targets to js.Build in hugo, for those who want to use a more recent target without jumping to the bleeding edge esnext.
Per js.Build docs the
target
option supports values includinges2015
throughes2020
, which refer to esbuild's target option.However, esbuild currently supports additional, more recent targets:
es2021
,es2022
,es2023
. I've tested that I can use them with raw esbuild, but they do not work when passed to js.Build in hugo.Proposal is to add support for those targets to js.Build in hugo, for those who want to use a more recent target without jumping to the bleeding edge
esnext
.