0.0.0 • Published 5 years ago

@eigi/babel-config v0.0.0

Weekly downloads
1
License
-
Repository
-
Last release
5 years ago

@eigi/babel-config

A customizable Babel configuration for EIGI apps

Installation

With global Verdaccio registry

# for consumption outside of `uaf-main`, you can get babel config from our Verdaccio registry
yarn set registry http://verdaccio.dev.provo1.unifiedlayer.com

yarn add @eigi/babel-config --dev

With Lerna

# if you are in the `uaf-main` mono-repo, use lerna to install it in your scoped package
lerna add @eigi/babel-config --dev --scope=my-pkg

Installation with .yarnrc

For consumption outside of uaf-main, you can get babel config from our Verdaccio registry. Add the following to your root .yarnrc configuration file:

registry "https://registry.npmjs.org"
"@eigi:registry" "http://verdaccio.dev.provo1.unifiedlayer.com"
yarn add @eigi/babel-config --dev

Usage

As is

To consume the babel config as is, you can create a babel.config.js file at your project root and export the config as follows:

module.exports = require('@eigi/babel-config');

Customizing

To customize, we will export a modified varation of the config in babel.config.js:

const config = require('@eigi/babel-config');
module.exports = {
  // extend config as is
  ...config,

  // add additional plugins
  plugins: [...config.plugins, '@babel/plugin-syntax-dynamic-import'],
};

Support

This package is maintained by Team 418.