1.0.0 • Published 1 year ago

babel-preset-manifest v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

babel-preset-manifest

A Babel preset with built-in TypeScript support.

build status npm version npm license

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 to false.
  • loose (boolean) - Turn on Babel loose mode for all plugins. Defaults to false.
  • modules (boolean) - Force transpilation to use ECMA script module syntax. Defaults to false (auto modules).
  • react (boolean | classic | automatic) - Enable the React plugin and the defined JSX runtime. Defaults to false.
  • targets (Record<string, string> | string[] | string) - Override the target environment. Defaults to Node.js current.