Fix stage refs to exportNamespaceFrom and exportDefaultFrom (#6949)
This commit is contained in:
parent
413aa79711
commit
95fe785354
@ -9,7 +9,7 @@
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-decorators": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-export-default": "7.0.0-beta.32",
|
||||
"@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",
|
||||
"@babel/plugin-proposal-pipeline-operator": "7.0.0-beta.33",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import presetStage2 from "@babel/preset-stage-2";
|
||||
|
||||
import transformDecorators from "@babel/plugin-proposal-decorators";
|
||||
import transformExportDefault from "@babel/plugin-proposal-export-default";
|
||||
import transformExportDefaultFrom from "@babel/plugin-proposal-export-default-from";
|
||||
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";
|
||||
@ -28,7 +28,7 @@ export default function(context, opts = {}) {
|
||||
presets: [[presetStage2, { loose, useBuiltIns }]],
|
||||
plugins: [
|
||||
transformDecorators,
|
||||
transformExportDefault,
|
||||
transformExportDefaultFrom,
|
||||
[transformOptionalChaining, { loose }],
|
||||
transformPipelineOperator,
|
||||
[transformNullishCoalescingOperator, { loose }],
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"repository": "https://github.com/babel/babel/tree/master/packages/babel-preset-stage-2",
|
||||
"main": "lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-export-namespace": "7.0.0-beta.32",
|
||||
"@babel/plugin-proposal-export-namespace-from": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-function-sent": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-numeric-separator": "7.0.0-beta.33",
|
||||
"@babel/plugin-proposal-throw-expressions": "7.0.0-beta.33",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import presetStage3 from "@babel/preset-stage-3";
|
||||
|
||||
import transformFunctionSent from "@babel/plugin-proposal-function-sent";
|
||||
import transformExportNamespace from "@babel/plugin-proposal-export-namespace";
|
||||
import transformExportNamespaceFrom from "@babel/plugin-proposal-export-namespace-from";
|
||||
import transformNumericSeparator from "@babel/plugin-proposal-numeric-separator";
|
||||
import transformThrowExpressions from "@babel/plugin-proposal-throw-expressions";
|
||||
|
||||
@ -27,7 +27,7 @@ export default function(context, opts = {}) {
|
||||
presets: [[presetStage3, { loose, useBuiltIns }]],
|
||||
plugins: [
|
||||
transformFunctionSent,
|
||||
transformExportNamespace,
|
||||
transformExportNamespaceFrom,
|
||||
transformNumericSeparator,
|
||||
transformThrowExpressions,
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user