Skip to content

Transforming const to the configured target environment #83

Answered by ElMassimo
pepicrft asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @pepibumur!

When asking for help please open a Discussion instead—I intend to use Issues for problems in the library only 😃


Following the settings in tsconfig.json is a feature of esbuild.

es5 is now considered an old dialect and it's not well supported in esbuild, so it won't transpile the es6 const to its es5 equivalent.

Since all modern browsers support es6 and more recent dialects, it's safe to target es6 instead, which you already did, cool!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pepicrft
Comment options

Answer selected by ElMassimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #82 on June 01, 2021 11:40.