Move pipeline operator to Stage 2 (#13754)
This commit is contained in:
parent
69ae2388f8
commit
137fecc765
@ -7,8 +7,8 @@ export default (_: any, opts: any = {}) => {
|
||||
useBuiltIns = false,
|
||||
decoratorsLegacy = false,
|
||||
decoratorsBeforeExport,
|
||||
pipelineProposal = "minimal",
|
||||
pipelineTopicToken = "%",
|
||||
pipelineProposal,
|
||||
pipelineTopicToken,
|
||||
recordAndTupleSyntax,
|
||||
} = opts;
|
||||
|
||||
@ -21,6 +21,8 @@ export default (_: any, opts: any = {}) => {
|
||||
useBuiltIns,
|
||||
decoratorsLegacy,
|
||||
decoratorsBeforeExport,
|
||||
pipelineProposal,
|
||||
pipelineTopicToken,
|
||||
recordAndTupleSyntax,
|
||||
},
|
||||
],
|
||||
@ -28,10 +30,6 @@ export default (_: any, opts: any = {}) => {
|
||||
plugins: [
|
||||
babelPlugins.syntaxDecimal,
|
||||
babelPlugins.proposalExportDefaultFrom,
|
||||
[
|
||||
babelPlugins.proposalPipelineOperator,
|
||||
{ proposal: pipelineProposal, topicToken: pipelineTopicToken },
|
||||
],
|
||||
babelPlugins.proposalDoExpressions,
|
||||
],
|
||||
};
|
||||
|
||||
@ -7,6 +7,8 @@ export default (_: any, opts: any = {}) => {
|
||||
useBuiltIns = false,
|
||||
decoratorsLegacy = false,
|
||||
decoratorsBeforeExport,
|
||||
pipelineProposal = "minimal",
|
||||
pipelineTopicToken = "%",
|
||||
recordAndTupleSyntax = "hash",
|
||||
} = opts;
|
||||
|
||||
@ -17,6 +19,10 @@ export default (_: any, opts: any = {}) => {
|
||||
babelPlugins.proposalDecorators,
|
||||
{ legacy: decoratorsLegacy, decoratorsBeforeExport },
|
||||
],
|
||||
[
|
||||
babelPlugins.proposalPipelineOperator,
|
||||
{ proposal: pipelineProposal, topicToken: pipelineTopicToken },
|
||||
],
|
||||
babelPlugins.proposalFunctionSent,
|
||||
babelPlugins.proposalThrowExpressions,
|
||||
[babelPlugins.syntaxRecordAndTuple, { syntaxType: recordAndTupleSyntax }],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user