JSPM

  • Created
  • Published
  • Downloads 63
  • Score
    100M100P100Q65136F
  • License MIT

A common preset for Verdaccio projects

Package Exports

  • @verdaccio/babel-preset

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@verdaccio/babel-preset) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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