forked from quarck/CalendarNotification
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmetro.config.js
More file actions
37 lines (33 loc) · 1.05 KB
/
metro.config.js
File metadata and controls
37 lines (33 loc) · 1.05 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
31
32
33
34
35
36
37
const { getDefaultConfig } = require('expo/metro-config');
const { withNativeWind } = require('nativewind/metro');
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
* https://docs.expo.dev/guides/customizing-metro/
*
* NOTE: NativeWind has Windows path issues. Use bundle_or_skip.js for Windows builds.
* Pre-bundle on WSL: yarn bundle:android --dev=true
*
* @type {import('metro-config').MetroConfig}
*/
const config = getDefaultConfig(__dirname);
config.transformer = {
...config.transformer,
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: {
blockList: {
// PowerSync requires eager initialization - don't inline its requires
[require.resolve('@powersync/react-native')]: true,
}
}
}
})
};
config.resolver = {
...config.resolver,
// Support ESM modules that use .mjs extension
sourceExts: [...config.resolver.sourceExts, 'mjs'],
};
module.exports = withNativeWind(config, { input: './global.css' });