Package detail

@beemo/config-babel

beemojs7.8kMIT2.0.1

Babel config for Beemo projects.

babel-preset, beemo

readme

Beemo - Babel config

Build Status npm version npm deps

An official Beemo Babel config based on babel-preset-beemo.

yarn install --dev @babel/core @beemo/core @beemo/driver-babel @beemo/config-babel

Setup

Create a configs/babel.ts file in your Beemo configuration module that re-exports this config.

export { default } from '@beemo/config-babel';

Settings

The following Beemo settings can be defined and will be passed to the preset.

  • decorators (boolean) - Enable TypeScript decorators. If true, will toggle Babel into loose mode. Defaults to false.
  • react (boolean | classic | automatic) - Enable the React plugin and the defined JSX runtime. Defaults to false.
export default {
    module: '<config-module>',
    drivers: ['babel'],
    settings: {
        react: 'automatic',
    },
};