Skip to content

Commit

Permalink
fix: Support transforming Explicit Resource Management in stage-2 (#…
Browse files Browse the repository at this point in the history
…15707)

* Update preset-stage-2.ts

* review
  • Loading branch information
liuxingbaoyu committed Jun 19, 2023
1 parent 5e5c126 commit 1765030
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion packages/babel-standalone/src/preset-stage-2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default (_: any, opts: any = {}) => {
babelPlugins.proposalRecordAndTuple,
{ syntaxType: recordAndTupleSyntax },
],
babelPlugins.syntaxExplicitResourceManagement,
babelPlugins.syntaxModuleBlocks,
babelPlugins.syntaxImportReflection,
],
Expand Down
1 change: 1 addition & 0 deletions packages/babel-standalone/src/preset-stage-3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default (_: any, opts: any = {}) => {
},
],
babelPlugins.proposalRegexpModifiers,
babelPlugins.proposalExplicitResourceManagement,
// These are Stage 4
...(process.env.BABEL_8_BREAKING
? []
Expand Down

0 comments on commit 1765030

Please sign in to comment.