-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
30 lines (28 loc) · 967 Bytes
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Exporting the Babel configuration
module.exports = {
// Specifies the Babel presets to be used. Presets are a set of plugins used to transform the code.
presets: ['module:@react-native/babel-preset'],
// Specifies the Babel plugins to be used. Plugins are individual transformations applied to the code.
plugins: [
[
'module-resolver',
{
alias: {
'@src': './src',
},
},
],
[
// The 'react-native-dotenv' plugin is used to load environment variables from a .env file.
'module:react-native-dotenv',
{
// Ensures that a .env.example file exists and matches the variables in the .env file.
safe: true,
// Throws an error if any environment variables are undefined.
allowUndefined: false,
},
],
// The 'react-native-reanimated/plugin' plugin is required for React Native Reanimated library.
['react-native-reanimated/plugin'],
],
};