This plugin transforms static class properties as well as properties declared with the property initializer syntax
$ npm install @daybrush/babel-plugin-no-side-effect-class-properties
if use class properties and have no side effects, use this plugin.
This is a guide page. Use babel-plugin-no-side-effect-class-properties for up to date features and support.
Using npm:
npm install --save-dev babel-plugin-no-side-effect-class-properties
.babelrc
{
"plugins": [
["no-side-effect-class-properties"],
["@babel/plugin-proposal-class-properties", { "loose": true }],
]
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE