-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbabel.config.js
More file actions
30 lines (30 loc) · 775 Bytes
/
babel.config.js
File metadata and controls
30 lines (30 loc) · 775 Bytes
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
module.exports = {
presets: ['@react-native/babel-preset'],
plugins: [
// TEMPORARILY DISABLED OPTIMIZATIONS FOR DEBUGGING
/*
// Optimize imports for smaller bundle size
['@babel/plugin-transform-runtime', {
helpers: false,
regenerator: false,
}],
// Remove console.log statements in production builds
['transform-remove-console', {
exclude: ['error', 'warn']
}]
*/
],
env: {
production: {
plugins: [
// TEMPORARILY DISABLED FOR DEBUGGING
/*
// More aggressive optimizations for production
['transform-remove-console'],
['@babel/plugin-transform-react-inline-elements'],
['@babel/plugin-transform-react-constant-elements']
*/
]
}
}
};