Skip to content
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.
/ babel-preset Public archive

A common Babel 7 preset for Verdaccio projects

License

Notifications You must be signed in to change notification settings

verdaccio/babel-preset

Repository files navigation

Deprecated repository

This repository has been moved to a monorepo you can find in verdaccio/monorepo. This package is located in tools/babel-preset folder


@verdaccio/babel-preset

Configurable Babel preset for Verdaccio projects

Usage

To use the preset in your .babelrc file, you have to add it using:

{
  "presets": ["@verdaccio"]
}

BABEL_ENV options possibles are: ui, test, registry and docker.

Note: docker has a fixed Node targed with 10;

Options

To use a different Node target version (by default is 6.10)

{
  "presets": [["@verdaccio", {"node": "9"}]]
}

Node 8.15 is the minimum version supported and the default set up.

Enable debug

{
  "presets": [["@verdaccio", {"debug": true}]]
}

@verdaccio/babel-preset is a open source project with MIT license

About

A common Babel 7 preset for Verdaccio projects

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published