-
Notifications
You must be signed in to change notification settings - Fork 334
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
Support static class fields #443
Comments
Peanut gallery observation: I'm guessing this won't work until at least #438 lands, and that one I just noticed can't work with the Node versions this project tests for. I'm pretty sure based on Mozilla's documentation this won't work until Node 12+ is the minimum version escodegen supports... Which is really unfortunate. |
This feature just has been implemented in my fork: |
I have the same problem, but the problem seems to still exist. |
Same problem here, |
I implemented this: #465 |
i was playing around with AST by using acorn.
Acorn has a plugin to parse code with static class fields. https://github.com/acornjs/acorn-static-class-features
Unfortuallity escodegen can't handle this feature. So i wrote a function that generates a static assignment from the AST provided by acorn.
if you want this snippet inside your codebase i can contribute and create a PR.
The text was updated successfully, but these errors were encountered: