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,
|
useBuiltIns = false,
|
||||||
decoratorsLegacy = false,
|
decoratorsLegacy = false,
|
||||||
decoratorsBeforeExport,
|
decoratorsBeforeExport,
|
||||||
pipelineProposal = "minimal",
|
pipelineProposal,
|
||||||
pipelineTopicToken = "%",
|
pipelineTopicToken,
|
||||||
recordAndTupleSyntax,
|
recordAndTupleSyntax,
|
||||||
} = opts;
|
} = opts;
|
||||||
|
|
||||||
@ -21,6 +21,8 @@ export default (_: any, opts: any = {}) => {
|
|||||||
useBuiltIns,
|
useBuiltIns,
|
||||||
decoratorsLegacy,
|
decoratorsLegacy,
|
||||||
decoratorsBeforeExport,
|
decoratorsBeforeExport,
|
||||||
|
pipelineProposal,
|
||||||
|
pipelineTopicToken,
|
||||||
recordAndTupleSyntax,
|
recordAndTupleSyntax,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
@ -28,10 +30,6 @@ export default (_: any, opts: any = {}) => {
|
|||||||
plugins: [
|
plugins: [
|
||||||
babelPlugins.syntaxDecimal,
|
babelPlugins.syntaxDecimal,
|
||||||
babelPlugins.proposalExportDefaultFrom,
|
babelPlugins.proposalExportDefaultFrom,
|
||||||
[
|
|
||||||
babelPlugins.proposalPipelineOperator,
|
|
||||||
{ proposal: pipelineProposal, topicToken: pipelineTopicToken },
|
|
||||||
],
|
|
||||||
babelPlugins.proposalDoExpressions,
|
babelPlugins.proposalDoExpressions,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -7,6 +7,8 @@ export default (_: any, opts: any = {}) => {
|
|||||||
useBuiltIns = false,
|
useBuiltIns = false,
|
||||||
decoratorsLegacy = false,
|
decoratorsLegacy = false,
|
||||||
decoratorsBeforeExport,
|
decoratorsBeforeExport,
|
||||||
|
pipelineProposal = "minimal",
|
||||||
|
pipelineTopicToken = "%",
|
||||||
recordAndTupleSyntax = "hash",
|
recordAndTupleSyntax = "hash",
|
||||||
} = opts;
|
} = opts;
|
||||||
|
|
||||||
@ -17,6 +19,10 @@ export default (_: any, opts: any = {}) => {
|
|||||||
babelPlugins.proposalDecorators,
|
babelPlugins.proposalDecorators,
|
||||||
{ legacy: decoratorsLegacy, decoratorsBeforeExport },
|
{ legacy: decoratorsLegacy, decoratorsBeforeExport },
|
||||||
],
|
],
|
||||||
|
[
|
||||||
|
babelPlugins.proposalPipelineOperator,
|
||||||
|
{ proposal: pipelineProposal, topicToken: pipelineTopicToken },
|
||||||
|
],
|
||||||
babelPlugins.proposalFunctionSent,
|
babelPlugins.proposalFunctionSent,
|
||||||
babelPlugins.proposalThrowExpressions,
|
babelPlugins.proposalThrowExpressions,
|
||||||
[babelPlugins.syntaxRecordAndTuple, { syntaxType: recordAndTupleSyntax }],
|
[babelPlugins.syntaxRecordAndTuple, { syntaxType: recordAndTupleSyntax }],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user