1.2.0 • Published 3 years ago

@spothero/babel-preset-spothero v1.2.0

Weekly downloads
84
License
Apache-2.0
Repository
github
Last release
3 years ago

@spothero/babel-preset-spothero: SpotHero's Babel Preset

This module provides your project with an extendable Babel preset to develop applications using SpotHero's base Babel configuration.

Installation

npm install @spothero/babel-preset-spothero -D

npm install core-js regenerator-runtime -S

Usage

Create a babel key in your package.json file and add the preset to the configuration:

{
    "babel": {
        "presets": ["@spothero/spothero"]
    }
}

Alternate configuration modes are also supported.

In the main entry point of your project, import the following as the first two lines:

import 'core-js/stable';
import 'regenerator-runtime/runtime';

Make sure to only import these once in your whole app.