1.0.0 • Published 3 years ago
babel-preset-manifest v1.0.0
babel-preset-manifest
A Babel preset with built-in TypeScript support.
Installation
yarn add --dev babel-preset-manifestUsage
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(automodules).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.
1.0.0
3 years ago