-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetro.config.js
More file actions
30 lines (24 loc) · 1.12 KB
/
Copy pathmetro.config.js
File metadata and controls
30 lines (24 loc) · 1.12 KB
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
// Learn more https://docs.expo.io/guides/customizing-metro
const { getSentryExpoConfig } = require('@sentry/react-native/metro');
// Learn more https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started#step-3-wrap-metro-config-with-reanimated-wrapper-recommended
const {
wrapWithReanimatedMetroConfig,
} = require('react-native-reanimated/metro-config');
const config = getSentryExpoConfig(__dirname);
config.transformer.minifierConfig = {
compress: {
// The option below removes all console logs statements in production.
drop_console: true,
},
};
// Learn more about the need for this here: https://github.com/expo/expo/discussions/36551
config.resolver.unstable_enablePackageExports = false;
// Learn more about the need for this here: https://github.com/expo/expo/discussions/36551
config.transformer.getTransformOptions = async () => ({
// The following allows tree shaking and lazy loading. Learn more https://docs.expo.dev/guides/tree-shaking/
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
});
module.exports = wrapWithReanimatedMetroConfig(config);