-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
target
in tsconfig doesn't affect esbuild's runtime library
#2628
Comments
Can you provide a self-contained code sample and esbuild configuration that will reproduce the problem? |
You can look at this repository https://github.com/mengxinssfd/esbuild-isuue--2628. Sorry, what I said earlier was not correct. It is accurate to use the |
@evanw I ran into this just now, the issue is that
Here's the docs that says tsconfig Using
|
target
in tsconfig doesn't affect esbuild's runtime library
FYI I'm changing this so |
I found that after building the code, there is an extra
__spreadValues
function, which is written insidevar prop in b ||= {}
It's using the
ECMAScript 2021 - (ES12)
feature, when I set thetarget
to a version before ES12, it doesn't workThe text was updated successfully, but these errors were encountered: