Skip to content

Commit 99fd145

Browse files
authored
perf(babelrc): enable externalHelpers option for babel-plugin-transform-async-to-promises (TanStack#490)
1 parent 11456a8 commit 99fd145

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.babelrc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@
1010
],
1111
"@babel/react"
1212
],
13-
"plugins": ["babel-plugin-transform-async-to-promises"],
13+
"plugins": [
14+
[
15+
"babel-plugin-transform-async-to-promises",
16+
{
17+
externalHelpers: true
18+
}
19+
]
20+
],
1421
"env": {
1522
"test": {
1623
"presets": [
@@ -22,7 +29,8 @@
2229
"exclude": ["@babel/plugin-transform-regenerator"]
2330
}
2431
]
25-
]
32+
],
33+
"plugins": ["babel-plugin-transform-async-to-promises"]
2634
}
2735
}
2836
}

0 commit comments

Comments
 (0)