0.1.0 • Published 5 years ago

@bilue/babel-preset-node v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Bilue Logo

@bilue/babel-preset-node

npm (scoped)

This package provides an opinionated Babel config for Node.js projects using TypeScript, intended to be used for all of our Node.js projects at Bilue.

Installation

# Yarn
yarn add --dev @bilue/babel-preset-node

# npm
npm save --dev @bilue/babel-preset-node

Usage

In your Babel configuration, usually a .babelrc file at the root of your project, add the following:

{
  "presets": ["@bilue/node"]
}

Features

  • Support for all ES2018 features in vanilla JavaScript files
  • Support for the proposed object rest spread and class fields syntax in Vanilla JavaScript
  • All TypesScript features supported by the Babel TypeScript preset, which at this point includes everything except namespaces and const enums.