@lugia/babel-preset-mega

1.2.2 • Public • Published

@lugia/babel-preset-mega

Usage

First, install Babel.

Then install @lugia/babel-preset-mega.

yarn add @lugia/babel-preset-mega

Then create a file named .babelrc with following contents in the root folder of your project:

{
  "presets": ["@lugia/mega"]
}

This preset uses the useBuiltIns option with transform-object-rest-spread and transform-react-jsx, which assumes that Object.assign is available or polyfilled.

Usage with Flow

Make sure you have a .flowconfig file at the root directory. You can also use the flow option on .babelrc:

{
  "presets": [["@lugia/mega", { "flow": true, "typescript": false }]]
}

Usage with TypeScript

Make sure you have a tsconfig.json file at the root directory. You can also use the typescript option on .babelrc:

{
  "presets": [["@lugia/mega", { "flow": false, "typescript": true }]]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lugia/babel-preset-mega

Weekly Downloads

0

Version

1.2.2

License

Apache-2.0

Unpacked Size

7.34 kB

Total Files

3

Last publish

Collaborators

  • yssinstitute
  • zenjava
  • sleepyaries
  • grguang
  • szfeng
  • wangcuixia