Permalink
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (27 sloc) 655 Bytes
---
id: babel-plugin-syntax-nullish-coalescing-operator
title: @babel/plugin-syntax-nullish-coalescing-operator
sidebar_label: syntax-nullish-coalescing-operator
---

Installation

npm install --save-dev @babel/plugin-syntax-nullish-coalescing-operator

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-syntax-nullish-coalescing-operator"]
}

Via CLI

babel --plugins @babel/plugin-syntax-nullish-coalescing-operator script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["@babel/plugin-syntax-nullish-coalescing-operator"]
});