Show Topics

Babel

Babel allows you to transform ES2015+ code into a backwards compatible version of JavaScript. Just enable the "Transpile with Babel" option in the file options sidebar to transform your JavaScript code with Babel.

Prepros uses "@babel/preset-env" package to transpile your JS so you don't have to enable/disable individual babel plugins. Just enter the list of browsers to support then Prepros handles the rest.

You can use Babel to transform JSX while building React apps. Prepros also contains plugins for ECMAScript Stage 2+ proposals so you can use experimental JavaScript features as well.

You can configure Babel options from Project Settings -> JS Tools -> Babel.

Learn more about Babel from Babel website.