-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Changing tsconfig compilerOptions.target doesn't change build from es2015 to es6 #18735
Comments
@nparoski If you add a {
"jsc": {
"target": "es2016"
}
} The reason why tsconfig didn't work is because SWC does not use the |
@jaysoo Thanks error is resolved, I would very much appreciate if you guys can add Thanks for the fast reply. |
Yes, we will generate it with defaults so it is more clear on where to change the target. I'll see if we need to add this to docs as well. |
@jaysoo what is the purpose of .babelrc in root if swc is used? |
There is no purpose. Looks like a bug in the |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I keep getting error in console because of usage of es6 classes and code gets transpiled to es5
I have player.ts
Which compiles to
Expected Behavior
I expect with tsconfig.json
compilerOptions.target = es6
to get something similar to:GitHub Repo
https://github.com/nparoski/web-game/tree/feature/es6-classes
Steps to Reproduce
es6
instead ofes2015
Nx Report
Failure Logs
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: