@babel/preset-env package by default so you don’t have to enable/disable individual babel plugins.
If you enable Insert Polyfills option from Project Settings -> JS Tools -> Babel. Babel inserts import statements containing the necessary
Map() and one of your Target Browsers doesn’t support
var myMap = new Map();
Babel will insert an import statement containing the necessary
import 'core-js/modules/es.map'; var myMap = new Map();
You can then use the Bundle Imports and Requires option to bundle the imported polyfill with the output file.
Check Browserlist documentation for the full list of available options.
Built-in Plugins and Presets
React and Flow
You can use Babel to transform JSX while building React apps by enabling
@babe/preset-react option from Project Settings -> JS Tools -> Babel. You can also use flow type annotations by enabling the
Experimental Plugins and Presets
These features are standardized by Ecma International, Technical Committee 39. You can use these features by enabling the
Prepros also comes bundled with plugins for Stage 2+ proposals which are in the process of being standardized. These experimental features are stable enough to be used. You can enable these plugins from Project Settings -> JS Tools -> Babel.
Custom Plugins and Presets
If you want to use plugins and presets which are not bundled with Prepros you can do that by installing them with NPM into your project folder then adding them to the Custom Plugins and Presets list in Project Settings -> JS Tools -> Babel.
Installing a Plugin with NPM
Configuring Custom Plugins and Presets
Learn more about Babel from Babel website.