Skip to main content

@babel/plugin-syntax-partial-application

note

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

Installation

npm install --save-dev @babel/plugin-syntax-partial-application

Usage

babel.config.json
{
"plugins": [
["@babel/plugin-syntax-partial-application", { "version": "2018-07" }]
]
}

Via Node API

JavaScript
require("@babel/core").transformSync("code", {
plugins: [
["@babel/plugin-syntax-partial-application", { version: "2018-07" }]
]
});

Options

History
VersionChanges
v8.0.0Added the version option with support for "2018-07"

version (required)

There is only one version currently supported:

  • "2018-07" is the proposal version after the updates that was discussed in the July 2018 TC39 meeting.