4.1.0 • Published 2 years ago

@fastcms/babel-preset v4.1.0

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

@fastcms/babel-preset

Peer Babel Version

Shared @babel preset for projects of @fastcms

Installation

Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/yarn manually.

# Install using npm
$ npm info "@fastcms/babel-preset" peerDependencies optionalDependencies
$ npx install-peerdeps --dev @fastcms/babel-preset

# Install using yarn
$ yarn add --dev @fastcms/babel-preset @babel/core @babel/runtime core-js

Usage

After installation, create a javascript config file babel.config.js to the project root.

module.exports = require('@fastcms/babel-preset');

Or create a babel json config file .babelrc.json to the project root.

{
  "presets": [
    "@fastcms",
    {
      "react": true,
      "typescript": true
    }
  ]
}

License

The codebase and documentation in this repository are released under the MIT License