Skip to content

brian-nunez/babel-preset-nunez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Installation

npm install --save-dev babel-preset-nunez

Add to your .babelrc file

{
  "presets": ["nunez"],
  "presets": ["babel-preset-nunez"] // equivalent
}

Options

By default babel-preset-nunez will transpile for the "last 2 versions" and "not dead" browsers.

{
  "presets": [[
    "nunez",
    {
      "serverOnly": true,
      "modern": true,
    }
  ]]
}

serverOnly - Will transpile only for node. modern - Will transpile for common browsers.

Customizing Babel Config

Preset includes:

Presets

Plugins

You can customize presets in the .babelrc file through the nunez preset.

{
  "presets": [
    [
      "nunez",
      {
        "preset-env": {},
        "preset-react": {}
      }
    ]
  ]
};

About

A JavaScript babel preset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages