@rajzik/babel-preset
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

@rajzik/babel-preset

Installation

npm install --save-dev @rajzik/babel-preset @babel/core
yarn add --dev @rajzik/babel-preset @babel/core

Usage

babelrc

{
  "presets": [
    [
      "@rajzik/babel-preset",
      {
        "react": true
      }
    ]
  ]
}

Options

  • react boolean
    • Enable react preset
  • modules boolean
    • Enables modules transpilation
  • library boolean
    • Enables optimizations for library
  • graphql boolean
    • Add support for graphql
  • removePropTypes boolean
    • Removes prop types from source code
  • targets Record<string, string> | string[] | string
  • srcFolder string
    • Change default source folder
    • default: src
  • env object

Using core-js

We support core-js polyfills.

See: babel documentation.

Readme

Keywords

Package Sidebar

Install

npm i @rajzik/babel-preset

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

16.6 kB

Total Files

8

Last publish

Collaborators

  • silhan.jan