Move Logical Assignment Ops to Stage 1 (#7625)
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
"dependencies": {
|
||||
"@babel/helper-plugin-utils": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-function-bind": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-logical-assignment-operators": "7.0.0-beta.42",
|
||||
"@babel/preset-stage-1": "7.0.0-beta.42"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -2,7 +2,6 @@ import { declare } from "@babel/helper-plugin-utils";
|
||||
import presetStage1 from "@babel/preset-stage-1";
|
||||
|
||||
import transformFunctionBind from "@babel/plugin-proposal-function-bind";
|
||||
import transformLogicalAssignmentOperators from "@babel/plugin-proposal-logical-assignment-operators";
|
||||
|
||||
export default declare((api, opts) => {
|
||||
api.assertVersion(7);
|
||||
@@ -26,6 +25,6 @@ export default declare((api, opts) => {
|
||||
|
||||
return {
|
||||
presets: [[presetStage1, { loose, useBuiltIns }]],
|
||||
plugins: [transformFunctionBind, transformLogicalAssignmentOperators],
|
||||
plugins: [transformFunctionBind],
|
||||
};
|
||||
});
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
"@babel/plugin-proposal-decorators": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-do-expressions": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-export-default-from": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-logical-assignment-operators": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-optional-chaining": "7.0.0-beta.42",
|
||||
"@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.42",
|
||||
|
||||
@@ -3,6 +3,7 @@ import presetStage2 from "@babel/preset-stage-2";
|
||||
|
||||
import transformDecorators from "@babel/plugin-proposal-decorators";
|
||||
import transformExportDefaultFrom from "@babel/plugin-proposal-export-default-from";
|
||||
import transformLogicalAssignmentOperators from "@babel/plugin-proposal-logical-assignment-operators";
|
||||
import transformOptionalChaining from "@babel/plugin-proposal-optional-chaining";
|
||||
import transformPipelineOperator from "@babel/plugin-proposal-pipeline-operator";
|
||||
import transformNullishCoalescingOperator from "@babel/plugin-proposal-nullish-coalescing-operator";
|
||||
@@ -33,6 +34,7 @@ export default declare((api, opts) => {
|
||||
plugins: [
|
||||
transformDecorators,
|
||||
transformExportDefaultFrom,
|
||||
transformLogicalAssignmentOperators,
|
||||
[transformOptionalChaining, { loose }],
|
||||
transformPipelineOperator,
|
||||
[transformNullishCoalescingOperator, { loose }],
|
||||
|
||||
Reference in New Issue
Block a user