Transpile private property/method #74311
Unanswered
jim-king-2000
asked this question in
Help
Replies: 1 comment
-
Probably, my friend, since the name of the project has changed, they don't support the old library anymore, instead you can read the article here and restructure your project accordingly: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We import
@tanstack/react-query
and we need to let our web app work on Android Chrome v83. So we use the following lines innext.config.js
:But when we open it on Chrome v83, it complains:
Uncaught SyntaxError: Unexpected token '('
And the error location is:
Obviously, it does not support private method on Chrome v83. So we need to transpile
private method/property
.We tried babel:
But something wrong happens:
Then we switch to SWC, but there is no options for transpiling private method/property.
Any other idea?
Beta Was this translation helpful? Give feedback.
All reactions