@beemo/config-babel
v2.0.1
Published
Babel config for Beemo projects.
Readme
Beemo - Babel config
An official Beemo Babel config based on babel-preset-beemo.
yarn install --dev @babel/core @beemo/core @beemo/driver-babel @beemo/config-babelSetup
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 tofalse.react(boolean | classic | automatic) - Enable the React plugin and the defined JSX runtime. Defaults tofalse.
export default {
module: '<config-module>',
drivers: ['babel'],
settings: {
react: 'automatic',
},
};