1.9.2 • Published 5 years ago

@mhirba/babel-preset-next v1.9.2

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

@mhirba/babel-preset-next

Summary

Overview

A Node.js Typescript with Babel configuration for Mhirba source code. Yes, it's a beautiful 融合, Fūjon :)

Je ne pense jamais au futur. Il vient bien assez tôt.. _ Albert Einstein

Installation

Use Yarn or NPM to install.

❯ yarn add --dev @mhirba/babel-preset-next

or

❯ npm install --save-dev @mhirba/babel-preset-next

Usage

Simple. Basic.

Extends your specific babel configuration and add the presets; For example in an .babelrc file:

{
  "presets": ["@mhirba/next"]
}

Configuration

Presets

We use the basic presets @babel/env and @babel/typescript

Plugins

The plugins used are:

  • @babel/plugin-transform-runtime
  • @babel/plugin-proposal-class-properties
  • @babel/plugin-proposal-object-rest-spread
  • @babel/plugin-proposal-decorators
  • @babel/plugin-proposal-object-rest-spread
  • babel-plugin-transform-typescript-metadata

Credits

Craft with :heart: by Majdi Toumi|Mhirba in Paris.