Socket
Socket
Sign inDemoInstall

babel-preset-proposal

Package Overview
Dependencies
88
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    babel-preset-proposal

babel presets for proposals


Version published
Weekly downloads
5
decreased by-54.55%
Maintainers
1
Install size
6.48 MB
Created
Weekly downloads
 

Readme

Source

Babel proposals plugins

Install

$ npm install --save-dev babel-preset-proposal

Usage

{
  "presets": ["proposal"]
}

or with options:

{
  "presets": [
    ["proposal", {
      "decorators": { "legacy": false },
      "class-properties": { "loose": false },
      "pipeline-operator": { "proposal": "smart" }
    }]
  ]
}

Options

{
  "decorators": { "legacy": true },
  "class-properties": { "loose": true },
  "do-expressions": true,
  "export-default-from": true,
  "export-namespace-from": true,
  "function-bind": true,
  "function-sent": true,
  "logical-assignment-operators": true,
  "nullish-coalescing-operator": true,
  "numeric-separator": true,
  "optional-chaining": true,
  "partial-application": true,
  "pipeline-operator": { "proposal": "minimal" },
  "private-methods": true,
  "throw-expressions": true
}

Keywords

FAQs

Last updated on 12 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc