1.3.0 • Published 6 years ago

@deuterium/babel-preset v1.3.0

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

@deuterium/babel-preset

This package utilizies babel 7 and allows compiling of ES2015+ to a backwards compatible ES5 standard.

Install

You will need to install the base babel 7

Main

yarn add --dev @deuterium/babel-preset @babel/core @babel/preset-env

If you want command line usage, you can use it with babel-node and babel by adding

yarm add --dev @babel/cli @babel/node

Plugins

There are also many optional babel transformations (or plugins) that you can add and it wil be automatically configured to work.

To install all of these,

yarn add --dev @babel/plugin-transform-runtime @babel/plugin-proposal-pipeline-operator @babel/plugin-proposal-do-expressions @babel/plugin-proposal-nullish-coalescing-operator @babel/plugin-proposal-optional-chaining

Usage

In your package.json, add

  "babel": {
    "presets": [
      "@deuterium"
    ]
  }
1.3.0

6 years ago

1.2.9

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.2

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.1

7 years ago