-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmetro.config.js
More file actions
31 lines (25 loc) · 795 Bytes
/
metro.config.js
File metadata and controls
31 lines (25 loc) · 795 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
31
const { withUniwindConfig } = require("uniwind/metro");
const { getDefaultConfig } = require("expo/metro-config");
const config = getDefaultConfig(__dirname);
config.transformer = {
...config.transformer,
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: true,
inlineRequires: true,
},
}),
maxWorkerCount: require("node:os").cpus().length,
enableBabelRCLookup: false,
enableBabelRuntime: false,
};
config.serializer = {
...config.serializer,
};
config.resolver = {
...config.resolver,
assetExts: [...(config.resolver?.assetExts || []), "bin"],
sourceExts: [...(config.resolver?.sourceExts || []), "mjs", "sql"],
};
config.watchFolders = [];
module.exports = withUniwindConfig(config, { cssEntryFile: "./src/global.css" });