Skip to content

Commit

Permalink
fix rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed May 13, 2024
1 parent e168504 commit 7850a87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/babel-traverse/src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,10 @@ Object.assign(NodePath_Final.prototype, {
ensureBlock: NodePath_conversion.ensureBlock,
...(!process.env.BABEL_8_BREAKING && !USE_ESM
? {
// @ts-expect-error babel 7 only
arrowFunctionToShadowed: NodePath_conversion.arrowFunctionToShadowed,
arrowFunctionToShadowed:
// workaround for rollup
// @ts-expect-error babel 7 only
NodePath_conversion[String("arrowFunctionToShadowed")],
}
: {}),
unwrapFunctionEnvironment: NodePath_conversion.unwrapFunctionEnvironment,
Expand Down

0 comments on commit 7850a87

Please sign in to comment.