0.1.0 • Published 2 years ago

babel-preset-vessel v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

babel-preset-vessel

A Babel preset with Typescript and optional React support for vessel projects. Created for uniting testing, linting, local development and applications. If building deployable packages, it is suggested to use Packemon instead.

Installation

yarn add --dev babel-preset-vessel

Usage

Add the preset to your root babel.config.js.

module.exports = {
  presets: ['vessel'],
};

Options

The following options can be passed to the preset.

  • 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.
module.exports = {
  presets: [['vessel', { react: true }]],
};