You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When transforming the code above with --tsconfig-raw='{"compilerOptions": { "target": "ES5" }}', with esbuild 0.15.7 no errors happen, but with esbuild 0.15.8 "Transforming const to the configured target environment" error happened.
I've checked the changelog but didn't find a related change. Is this an intended change?
If so, is there any difference between using --tsconfig-raw='{"compilerOptions": { "target": "ES5" }}' of tsconfig and --target es5?
The text was updated successfully, but these errors were encountered:
sapphi-red
changed the title
--tsconfig-raw='{"compilerOptions": { "target": "ES5" }}' has same affect with --target es5 since 0.15.8--tsconfig-raw='{"compilerOptions": { "target": "ES5" }}' has same effect with --target es5 since 0.15.8
Sep 22, 2022
Looks like this behavior change comes from 3e2374c. However, this new behavior feels like the correct behavior to me. The target setting in tsconfig.json is supposed to be respected by esbuild unless it's overridden at the esbuild level. This has been the case for a while: #277. Arguably the previous behavior of esbuild you're describing was a bug that was fixed.
When transforming the code above with
--tsconfig-raw='{"compilerOptions": { "target": "ES5" }}'
, with esbuild 0.15.7 no errors happen, but with esbuild 0.15.8 "Transforming const to the configured target environment" error happened.esbuild repl 0.15.7
esbuild repl 0.15.8
I've checked the changelog but didn't find a related change. Is this an intended change?
If so, is there any difference between using
--tsconfig-raw='{"compilerOptions": { "target": "ES5" }}'
oftsconfig
and--target es5
?refs vitejs/vite#10167
The text was updated successfully, but these errors were encountered: