How to use the @babel/plugin-proposal-pipeline-operator.proposals.join function in @babel/plugin-proposal-pipeline-operator

To help you get started, we’ve selected a few @babel/plugin-proposal-pipeline-operator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github babel / babel / packages / babel-preset-stage-0 / src / index.js View on Github external
}

  if (decoratorsLegacy !== true) {
    throw new Error(
      "The new decorators proposal is not supported yet." +
        ' You must pass the `"decoratorsLegacy": true` option to' +
        " @babel/preset-stage-0",
    );
  }

  if (typeof pipelineProposal !== "string") {
    throw new Error(
      "The pipeline operator requires a proposal set." +
        " You must pass 'pipelineProposal' option to" +
        " @babel/preset-stage-0 whose value must be one of: " +
        proposals.join(", "),
    );
  }

  return {
    presets: [
      [
        presetStage1,
        { loose, useBuiltIns, decoratorsLegacy, pipelineProposal },
      ],
    ],
    plugins: [transformFunctionBind],
  };
});

@babel/plugin-proposal-pipeline-operator

Transform pipeline operator into call expressions

MIT
Latest version published 2 months ago

Package Health Score

98 / 100
Full package analysis