@comparaonline/ui-config-babel

Babel config to support ES6+ and JSX

Usage no npm install needed!

<script type="module">
  import comparaonlineUiConfigBabel from 'https://cdn.skypack.dev/@comparaonline/ui-config-babel';
</script>

README

UI configuration for babel

Extensible Babel configuration for ES6+ and TypeScript

ES6+ and JSX

It uses Babel 7 and enables the transpilation of ES6+ (including object-rest-spread and class-properties) and JSX code.

Usage

In your .babelrc.js

module.exports = require('@comparaonline/ui-config-babel');

TypeScript

Usage

module.exports = require('@comparaonline/ui-config-babel/typescript');

If you need support .jsx files, update your tsconfig.json to set "jsx" to "react".