@fastcms/babel-preset

4.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @fastcms/babel-preset

Weekly Downloads

11

Version

4.1.0

License

MIT

Unpacked Size

7.12 kB

Total Files

4

Last publish

Collaborators

  • shiaohoo