proposal-class-fields
proposal-class-fields copied to clipboard
Tooling implementation status
Thought it would be a good idea to track that status of tools supporting this feature.
- [x] Flow - https://github.com/facebook/flow/releases/tag/v0.54.0
- [x] TypeScript - https://github.com/Microsoft/TypeScript/issues/9950
- [x] Babel (7.0.0-beta.48) - https://github.com/babel/babel/pull/7842
- [x] IntelliJ/Webstorm - https://youtrack.jetbrains.com/issue/WEB-27687
- [ ] Atom
- [x] VSCode
- [x] Sublime - https://github.com/sublimehq/Packages/pull/1292
- [x] Acorn - https://github.com/acornjs/acorn-class-fields
- [ ] Espree
- [ ] Esprima
Should we open acorn, espree and esprima feature requests?
@alippai My understanding was that a lot of tooling had a policy of not implementing until Stage 4. This differs a bit from the policies of a number of web browsers, which may start implementing at Stage 3 and feel comfortable turning it on by default at Stage 4 (though some are more aggressive, and no one has everything in Stage 3 implemented). I'd recommend to tooling projects to adopt a similar policy. However, projects can do whatever they want; if they have a different policy, probably best to respect that in bug reports and keep a policy change discussion separate from these particular features.
Oh, indeed. You are totally right, stage 4 is required for acorn and espree :)
As I am using many stage-x features in my projects, I coded a syntax for Sublime Text 3 https://github.com/borela/naomi which highlights even stage-0 features.
Sublime's core JavaScript syntax now implements class fields (as of PR 1292).
acorn now has class fields support through acorn-class-fields.
This is all great to hear! Does anyone want to post a summary in the README? PRs welcome.
WebStorm has added support for class fields in the latest EAP
@vjpr I assume this urgently needs a refresh?
@franktopel What updates do you see as needed?
As far as I can see the current stable version 1.45.0 of VS Code already supports this syntax?

I checked the boxes for TypeScript and VSCode. Thanks for the ping. Any other updates needed?