-
Notifications
You must be signed in to change notification settings - Fork 1
/
metro.config.js
39 lines (24 loc) · 1.12 KB
/
metro.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
31
32
33
34
35
36
37
38
39
// // Learn more https://docs.expo.io/guides/customizing-metro
// import { getDefaultConfig } from "expo/metro-config";
// /** @type {import('expo/metro-config').MetroConfig} */
// const config = getDefaultConfig(__dirname, {
// // [Web-only]: Enables CSS support in Metro.
// isCSSEnabled: true,
// });
// export default config;
// // https://github.com/expo/expo/issues/23322
// // Learn more https://docs.expo.io/guides/customizing-metro
// const { getDefaultConfig } = require("expo/metro-config");
// const config = getDefaultConfig(__dirname);
// // Remove all console logs in production...
// config.transformer.minifierConfig.compress.drop_console = true;
// config.resolver.sourceExts = [...config.resolver.sourceExts, "mjs", "cjs"];
// module.exports = config;
const { getDefaultConfig } = require('expo/metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname, {
// Additional features...
});
config.transformer.minifierConfig.compress.drop_console = true;
config.resolver.sourceExts = [...config.resolver.sourceExts, "mjs", "cjs"];
module.exports = config;