1.0.0 • Published 9 years ago
@treblefm/babel-node v1.0.0
@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-nodeUsage
Instead of calling node in your npm start script (or wherever), call babel-node.
Warnings
- Does not include REPL support
- Conflicts with babel-nodeprovided bybabel-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
    }
}