Whatever Babel plugins and presets you use, you still need to
npm install them like usual.
npm i -D @sincronia/babel-plugin
This plugin takes the exact same options as .babelrc.
Syntactic sugar such as ES6 classes, destructuring, let/const, template strings, default parameters, and arrow functions are supported. Features added to base classes like
Array or for-of loops, Map, Set, and Weakmap are not supported because the
A good rule of thumb is to not use the
useBuiltIns option of the
babel-preset-env preset. If your code works, then you are fine. If it throws errors when you run it, you most likely need an unsupported polyfill.
This example takes