We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
babel.config.js
1 parent c5b983c commit 627bec0Copy full SHA for 627bec0
examples/publish-ci/react-native/babel.config.js
@@ -1,7 +1,14 @@
1
-import type { TransformOptions } from "@babel/core"
+/** @import { ConfigFunction } from "@babel/core" */
2
3
-const config: TransformOptions = {
4
- presets: ["module:@react-native/babel-preset"],
+/**
+ * @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
+ }
12
}
13
-export default config
14
+module.exports = config
0 commit comments