babel-plugin-private-underscores
Make _classMembers 'private' using symbols
- {feature1}
- {feature2}
- {feature3}
Install
yarn add --dev babel-plugin-private-underscores
Example
Input
{ this; } { // ... }
Output
let _method = Symbol'_method'; { this_method; } { // ... }
Usage
"plugins": "private-underscores"
Note: This is not real private, it just makes it a lot harder for people to accidentally use methods with underscores.