babel-preset-manifest
v1.0.0
Published
Manifest Design System babel preset
Downloads
2
Readme
babel-preset-manifest
A Babel preset with built-in TypeScript support.
Installation
yarn add --dev babel-preset-manifest
Usage
Extend the preset in your root jest.config.js
.
module.exports = {
presets: ['manifest'],
};
Setup
Add the preset to your root babel.config.js
.
module.exports = {
presets: ['manifest'],
};
Options
The following options can be passed to the preset.
decorators
(boolean
) - Enable TypeScript decorators. If true, will toggle Babel into loose mode. Defaults tofalse
.loose
(boolean
) - Turn on Babel loose mode for all plugins. Defaults tofalse
.modules
(boolean
) - Force transpilation to use ECMA script module syntax. Defaults tofalse
(auto
modules).react
(boolean | classic | automatic
) - Enable the React plugin and the defined JSX runtime. Defaults tofalse
.targets
(Record<string, string> | string[] | string
) - Override the target environment. Defaults to Node.jscurrent
.