@beemo/config-babel
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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',
	},
};

Readme

Keywords

Package Sidebar

Install

npm i @beemo/config-babel

Weekly Downloads

43

Version

2.0.1

License

MIT

Unpacked Size

5.5 kB

Total Files

9

Last publish

Collaborators

  • beemo-admin
  • milesj