Skip to content

Commit

Permalink
add syntax plugin to preset-stage-2
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Nov 5, 2021
1 parent 45652ef commit d2979d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/babel-standalone/package.json
Expand Up @@ -37,6 +37,7 @@
"@babel/plugin-syntax-class-static-block": "^7.14.5",
"@babel/plugin-syntax-decimal": "workspace:^",
"@babel/plugin-syntax-decorators": "workspace:^",
"@babel/plugin-syntax-destructuring-private": "workspace:^",
"@babel/plugin-syntax-do-expressions": "workspace:^",
"@babel/plugin-syntax-export-default-from": "workspace:^",
"@babel/plugin-syntax-flow": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/scripts/pluginConfig.json
Expand Up @@ -5,6 +5,7 @@
"syntax-class-static-block",
"syntax-decimal",
"syntax-decorators",
"syntax-destructuring-private",
"syntax-do-expressions",
"syntax-export-default-from",
"syntax-flow",
Expand Down
3 changes: 3 additions & 0 deletions packages/babel-standalone/src/generated/plugins.ts
Expand Up @@ -8,6 +8,7 @@ import syntaxClassProperties from "@babel/plugin-syntax-class-properties";
import syntaxClassStaticBlock from "@babel/plugin-syntax-class-static-block";
import syntaxDecimal from "@babel/plugin-syntax-decimal";
import syntaxDecorators from "@babel/plugin-syntax-decorators";
import syntaxDestructuringPrivate from "@babel/plugin-syntax-destructuring-private";
import syntaxDoExpressions from "@babel/plugin-syntax-do-expressions";
import syntaxExportDefaultFrom from "@babel/plugin-syntax-export-default-from";
import syntaxFlow from "@babel/plugin-syntax-flow";
Expand Down Expand Up @@ -103,6 +104,7 @@ export {
syntaxClassStaticBlock,
syntaxDecimal,
syntaxDecorators,
syntaxDestructuringPrivate,
syntaxDoExpressions,
syntaxExportDefaultFrom,
syntaxFlow,
Expand Down Expand Up @@ -199,6 +201,7 @@ export const all: { [k: string]: any } = {
"syntax-class-static-block": syntaxClassStaticBlock,
"syntax-decimal": syntaxDecimal,
"syntax-decorators": syntaxDecorators,
"syntax-destructuring-private": syntaxDestructuringPrivate,
"syntax-do-expressions": syntaxDoExpressions,
"syntax-export-default-from": syntaxExportDefaultFrom,
"syntax-flow": syntaxFlow,
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/preset-stage-2.ts
Expand Up @@ -19,6 +19,7 @@ export default (_: any, opts: any = {}) => {
babelPlugins.proposalDecorators,
{ legacy: decoratorsLegacy, decoratorsBeforeExport },
],
babelPlugins.syntaxDestructuringPrivate,
[
babelPlugins.proposalPipelineOperator,
{ proposal: pipelineProposal, topicToken: pipelineTopicToken },
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Expand Up @@ -1732,7 +1732,7 @@ __metadata:
languageName: unknown
linkType: soft

"@babel/plugin-syntax-destructuring-private@workspace:packages/babel-plugin-syntax-destructuring-private":
"@babel/plugin-syntax-destructuring-private@workspace:^, @babel/plugin-syntax-destructuring-private@workspace:packages/babel-plugin-syntax-destructuring-private":
version: 0.0.0-use.local
resolution: "@babel/plugin-syntax-destructuring-private@workspace:packages/babel-plugin-syntax-destructuring-private"
dependencies:
Expand Down Expand Up @@ -3504,6 +3504,7 @@ __metadata:
"@babel/plugin-syntax-class-static-block": ^7.14.5
"@babel/plugin-syntax-decimal": "workspace:^"
"@babel/plugin-syntax-decorators": "workspace:^"
"@babel/plugin-syntax-destructuring-private": "workspace:^"
"@babel/plugin-syntax-do-expressions": "workspace:^"
"@babel/plugin-syntax-export-default-from": "workspace:^"
"@babel/plugin-syntax-flow": "workspace:^"
Expand Down

0 comments on commit d2979d2

Please sign in to comment.