Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (30 sloc) 837 Bytes
---
id: babel-plugin-syntax-numeric-separator
title: @babel/plugin-syntax-numeric-separator
sidebar_label: syntax-numeric-separator
---

Syntax only

It's unlikely you want to use this plugin directly as it only enables Babel to parse this syntax. Instead, use plugin-proposal-numeric-separator to both parse and transform this syntax.

Installation

npm install --save-dev @babel/plugin-syntax-numeric-separator

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-syntax-numeric-separator"]
}

Via CLI

babel --plugins @babel/plugin-syntax-numeric-separator script.js

Via Node API

require("@babel/core").transform("code", {
  plugins: ["@babel/plugin-syntax-numeric-separator"]
});
You can’t perform that action at this time.