Neatly Positioned Magazines

    babel-preset-proposal

    1.1.2 • Public • Published

    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
    }

    Install

    npm i babel-preset-proposal

    DownloadsWeekly Downloads

    18

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    3.78 kB

    Total Files

    3

    Last publish

    Collaborators

    • d-band