Skip to content

Commit

Permalink
add syntax plugin to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 22, 2022
1 parent d855fdf commit 99e5f75
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 @@ -45,6 +45,7 @@
"@babel/plugin-syntax-decorators": "workspace:^",
"@babel/plugin-syntax-destructuring-private": "workspace:^",
"@babel/plugin-syntax-do-expressions": "workspace:^",
"@babel/plugin-syntax-explicit-resource-management": "workspace:^",
"@babel/plugin-syntax-export-default-from": "workspace:^",
"@babel/plugin-syntax-flow": "workspace:^",
"@babel/plugin-syntax-function-bind": "workspace:^",
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/scripts/pluginConfig.json
Expand Up @@ -7,6 +7,7 @@
"syntax-decorators",
"syntax-destructuring-private",
"syntax-do-expressions",
"syntax-explicit-resource-management",
"syntax-export-default-from",
"syntax-flow",
"syntax-function-bind",
Expand Down
3 changes: 3 additions & 0 deletions packages/babel-standalone/src/generated/plugins.ts
Expand Up @@ -10,6 +10,7 @@ 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 syntaxExplicitResourceManagement from "@babel/plugin-syntax-explicit-resource-management";
import syntaxExportDefaultFrom from "@babel/plugin-syntax-export-default-from";
import syntaxFlow from "@babel/plugin-syntax-flow";
import syntaxFunctionBind from "@babel/plugin-syntax-function-bind";
Expand Down Expand Up @@ -110,6 +111,7 @@ export {
syntaxDecorators,
syntaxDestructuringPrivate,
syntaxDoExpressions,
syntaxExplicitResourceManagement,
syntaxExportDefaultFrom,
syntaxFlow,
syntaxFunctionBind,
Expand Down Expand Up @@ -211,6 +213,7 @@ export const all: { [k: string]: any } = {
"syntax-decorators": syntaxDecorators,
"syntax-destructuring-private": syntaxDestructuringPrivate,
"syntax-do-expressions": syntaxDoExpressions,
"syntax-explicit-resource-management": syntaxExplicitResourceManagement,
"syntax-export-default-from": syntaxExportDefaultFrom,
"syntax-flow": syntaxFlow,
"syntax-function-bind": syntaxFunctionBind,
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/preset-stage-2.ts
Expand Up @@ -34,6 +34,7 @@ export default (_: any, opts: any = {}) => {
babelPlugins.proposalRecordAndTuple,
{ syntaxType: recordAndTupleSyntax },
],
babelPlugins.syntaxExplicitResourceManagement,
babelPlugins.syntaxModuleBlocks,
],
};
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Expand Up @@ -1907,7 +1907,7 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-syntax-explicit-resource-management@workspace:packages/babel-plugin-syntax-explicit-resource-management":
"@babel/plugin-syntax-explicit-resource-management@workspace:^, @babel/plugin-syntax-explicit-resource-management@workspace:packages/babel-plugin-syntax-explicit-resource-management":
version: 0.0.0-use.local
resolution: "@babel/plugin-syntax-explicit-resource-management@workspace:packages/babel-plugin-syntax-explicit-resource-management"
dependencies:
Expand Down Expand Up @@ -3663,6 +3663,7 @@ __metadata:
"@babel/plugin-syntax-decorators": "workspace:^"
"@babel/plugin-syntax-destructuring-private": "workspace:^"
"@babel/plugin-syntax-do-expressions": "workspace:^"
"@babel/plugin-syntax-explicit-resource-management": "workspace:^"
"@babel/plugin-syntax-export-default-from": "workspace:^"
"@babel/plugin-syntax-flow": "workspace:^"
"@babel/plugin-syntax-function-bind": "workspace:^"
Expand Down

0 comments on commit 99e5f75

Please sign in to comment.