1.0.0 • Published 7 years ago

@treblefm/babel-node v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

@treblefm/babel-node

A better babel-node, meant for production use.

Uses babel-preset-env to automatically select the minimum amount of plugins, transforms, and polyfills (Stage 3 or better) required for your version of Node.js (>= 4). Also includes flow support; remember, kids, use protection and be type-safe.

Install

npm install @treblefm/babel-node

Usage

Instead of calling node in your npm start script (or wherever), call babel-node.

Warnings

  • Does not include REPL support
  • Conflicts with babel-node provided by babel-cli

Notes

If you're also using @treblefm/eslint-config, you'll want to disable the node/no-unsupported-features rule:

{
    "extends": "@treblefm",
    "rules": {
        "node/no-unsupported-features": 0
    }
}