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) 801 Bytes
---
id: babel-plugin-syntax-function-sent
title: @babel/plugin-syntax-function-sent
sidebar_label: syntax-function-sent
---

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-function-sent to both parse and transform this syntax.

Installation

npm install --save-dev @babel/plugin-syntax-function-sent

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["@babel/plugin-syntax-function-sent"]
}

Via CLI

babel --plugins @babel/plugin-syntax-function-sent script.js

Via Node API

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