Do Expression from Stage 0 to Stage 1 (#6943)
This commit is contained in:
parent
de5ab72c49
commit
c41eb0d052
@ -8,7 +8,6 @@
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-0",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-do-expressions": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-function-bind": "7.0.0-beta.33",
|
||||
"@babel/preset-stage-1": "7.0.0-beta.33"
|
||||
},
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import presetStage1 from "@babel/preset-stage-1";
|
||||
|
||||
import transformDoExpressions from "@babel/plugin-proposal-do-expressions";
|
||||
import transformFunctionBind from "@babel/plugin-proposal-function-bind";
|
||||
|
||||
export default function(context, opts = {}) {
|
||||
@ -23,6 +22,6 @@ export default function(context, opts = {}) {
|
||||
|
||||
return {
|
||||
presets: [[presetStage1, { loose, useBuiltIns }]],
|
||||
plugins: [transformDoExpressions, transformFunctionBind],
|
||||
plugins: [transformFunctionBind],
|
||||
};
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-decorators": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-do-expressions": "^7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-export-default-from": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-nullish-coalescing-operator": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-optional-chaining": "7.0.0-beta.33",
|
||||
|
||||
@ -5,6 +5,7 @@ import transformExportDefaultFrom from "@babel/plugin-proposal-export-default-fr
|
||||
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";
|
||||
import transformDoExpressions from "@babel/plugin-proposal-do-expressions";
|
||||
|
||||
export default function(context, opts = {}) {
|
||||
let loose = false;
|
||||
@ -32,6 +33,7 @@ export default function(context, opts = {}) {
|
||||
[transformOptionalChaining, { loose }],
|
||||
transformPipelineOperator,
|
||||
[transformNullishCoalescingOperator, { loose }],
|
||||
transformDoExpressions,
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user