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

5.15.15 • Public • Published

@oriflame/babel-preset

Installation

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

Usage

babelrc

{
  "presets": [
    [
      "@oriflame/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.

Package Sidebar

Install

npm i @oriflame/babel-preset

Weekly Downloads

185

Version

5.15.15

License

MIT

Unpacked Size

13.4 kB

Total Files

10

Last publish

Collaborators

  • samanekm
  • ondrej_langr.oriflame
  • jan.novotny.oriflame
  • cfmano
  • jakubmazanec
  • ori-development