Plugins

A Plugin is a specific code transformation that can be included during compilation
link - babeljs.io/docs/en/plugins


@babel/plugin-proposal-class-properties
This lets you use class properties to write elegant React components ?
Previously called 'plugin-transform-class-properties' in Babel version 6.
Class properties were introduced in ES 2016

npm install --save-dev @babel/plugin-proposal-class-properties 

@babel/plugin-transform-arrow-functions
This replaces any ES 2015 arrow functions with their function equivalents

npm install --save-dev @babel/plugin-transform-arrow-functions 

@babel/plugin-transform-classes
This lets you

npm install --save-dev @babel/plugin-transform-classes 

@babel/plugin-proposal-object-rest-spread


@babel/plugin-syntax-typescript (isTSX)




© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext