Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 554a7b2

Browse files
committed
fix: update babel.config.js to use function syntax and change preset to babel-preset-expo
1 parent 0890ad8 commit 554a7b2

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

babel.config.js

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
3-
plugins: [
4-
[
5-
'module:react-native-dotenv',
6-
{
7-
moduleName: '@env',
8-
path: '.env',
9-
blocklist: null,
10-
allowlist: null,
11-
safe: false,
12-
allowUndefined: true,
13-
verbose: false,
14-
},
1+
module.exports = function (api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
plugins: [
6+
[
7+
'module:react-native-dotenv',
8+
{
9+
moduleName: '@env',
10+
path: '.env',
11+
blocklist: null,
12+
allowlist: null,
13+
safe: false,
14+
allowUndefined: true,
15+
verbose: false,
16+
},
17+
],
1518
],
16-
],
19+
};
1720
};

0 commit comments

Comments
 (0)