Skip to content

Commit 627bec0

Browse files
committed
Fix babel.config.js file
1 parent c5b983c commit 627bec0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1-
import type { TransformOptions } from "@babel/core"
1+
/** @import { ConfigFunction } from "@babel/core" */
22

3-
const config: TransformOptions = {
4-
presets: ["module:@react-native/babel-preset"],
3+
/**
4+
* @satisfies {ConfigFunction}
5+
*/
6+
const config = api => {
7+
api.cache.using(() => process.env.NODE_ENV)
8+
9+
return {
10+
presets: [["module:@react-native/babel-preset"]],
11+
}
512
}
613

7-
export default config
14+
module.exports = config

0 commit comments

Comments
 (0)