-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
transformer: typescript --useDefineForClassFields
#6735
Comments
Done in #7011 with |
Is there a way to transform public fields with |
so that I can use `setPublicClassFields` for #6735 when it's ready.
Not at present. |
What's the use case for transforming public fields, but not private fields? |
When a library you depend relies on the |
Thanks for the links. I am guessing from lit's docs that this has something to do with decorators, which we've not tackled yet. This is going to be tricky. How much of a blocker is it? |
Both angular and lit sets |
Just FYI, in case it wasn't clear: Any code which contains decorators currently will not run, because Oxc doesn't transform decorators, and most JS runtimes don't support decorators natively. |
https://www.typescriptlang.org/tsconfig/#useDefineForClassFields
https://babeljs.io/docs/babel-plugin-transform-typescript
oxc/crates/oxc_transformer/src/compiler_assumptions.rs
Line 50 in aa3222a
The text was updated successfully, but these errors were encountered: