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 13, 2022
1 parent e023050 commit 4f9b91e
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/babel-standalone/package.json
Expand Up @@ -51,6 +51,7 @@
"@babel/plugin-syntax-function-sent": "workspace:^",
"@babel/plugin-syntax-import-assertions": "workspace:^",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-syntax-import-reflection": "workspace:^",
"@babel/plugin-syntax-jsx": "workspace:^",
"@babel/plugin-syntax-module-blocks": "workspace:^",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/babel-standalone/scripts/pluginConfig.json
Expand Up @@ -12,9 +12,10 @@
"syntax-function-bind",
"syntax-function-sent",
"syntax-module-blocks",
"syntax-import-assertions",
"syntax-import-meta",
"syntax-import-reflection",
"syntax-jsx",
"syntax-import-assertions",
"syntax-object-rest-spread",
"syntax-optional-catch-binding",
"syntax-pipeline-operator",
Expand Down
9 changes: 6 additions & 3 deletions packages/babel-standalone/src/generated/plugins.ts
Expand Up @@ -15,9 +15,10 @@ import syntaxFlow from "@babel/plugin-syntax-flow";
import syntaxFunctionBind from "@babel/plugin-syntax-function-bind";
import syntaxFunctionSent from "@babel/plugin-syntax-function-sent";
import syntaxModuleBlocks from "@babel/plugin-syntax-module-blocks";
import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions";
import syntaxImportMeta from "@babel/plugin-syntax-import-meta";
import syntaxImportReflection from "@babel/plugin-syntax-import-reflection";
import syntaxJsx from "@babel/plugin-syntax-jsx";
import syntaxImportAssertions from "@babel/plugin-syntax-import-assertions";
import syntaxObjectRestSpread from "@babel/plugin-syntax-object-rest-spread";
import syntaxOptionalCatchBinding from "@babel/plugin-syntax-optional-catch-binding";
import syntaxPipelineOperator from "@babel/plugin-syntax-pipeline-operator";
Expand Down Expand Up @@ -115,9 +116,10 @@ export {
syntaxFunctionBind,
syntaxFunctionSent,
syntaxModuleBlocks,
syntaxImportAssertions,
syntaxImportMeta,
syntaxImportReflection,
syntaxJsx,
syntaxImportAssertions,
syntaxObjectRestSpread,
syntaxOptionalCatchBinding,
syntaxPipelineOperator,
Expand Down Expand Up @@ -216,9 +218,10 @@ export const all: { [k: string]: any } = {
"syntax-function-bind": syntaxFunctionBind,
"syntax-function-sent": syntaxFunctionSent,
"syntax-module-blocks": syntaxModuleBlocks,
"syntax-import-assertions": syntaxImportAssertions,
"syntax-import-meta": syntaxImportMeta,
"syntax-import-reflection": syntaxImportReflection,
"syntax-jsx": syntaxJsx,
"syntax-import-assertions": syntaxImportAssertions,
"syntax-object-rest-spread": syntaxObjectRestSpread,
"syntax-optional-catch-binding": syntaxOptionalCatchBinding,
"syntax-pipeline-operator": syntaxPipelineOperator,
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/preset-stage-2.ts
Expand Up @@ -35,6 +35,7 @@ export default (_: any, opts: any = {}) => {
{ syntaxType: recordAndTupleSyntax },
],
babelPlugins.syntaxModuleBlocks,
babelPlugins.syntaxImportReflection,
],
};
};
12 changes: 12 additions & 0 deletions yarn.lock
Expand Up @@ -1995,6 +1995,17 @@ __metadata:
languageName: node
linkType: hard

"@babel/plugin-syntax-import-reflection@workspace:^, @babel/plugin-syntax-import-reflection@workspace:packages/babel-plugin-syntax-import-reflection":
version: 0.0.0-use.local
resolution: "@babel/plugin-syntax-import-reflection@workspace:packages/babel-plugin-syntax-import-reflection"
dependencies:
"@babel/core": "workspace:^"
"@babel/helper-plugin-utils": "workspace:^"
peerDependencies:
"@babel/core": ^7.0.0-0
languageName: unknown
linkType: soft

"@babel/plugin-syntax-json-strings@npm:^7.8.3":
version: 7.8.3
resolution: "@babel/plugin-syntax-json-strings@npm:7.8.3"
Expand Down Expand Up @@ -3658,6 +3669,7 @@ __metadata:
"@babel/plugin-syntax-function-sent": "workspace:^"
"@babel/plugin-syntax-import-assertions": "workspace:^"
"@babel/plugin-syntax-import-meta": ^7.10.4
"@babel/plugin-syntax-import-reflection": "workspace:^"
"@babel/plugin-syntax-jsx": "workspace:^"
"@babel/plugin-syntax-module-blocks": "workspace:^"
"@babel/plugin-syntax-object-rest-spread": ^7.8.3
Expand Down

0 comments on commit 4f9b91e

Please sign in to comment.