init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
const { getDefaultConfig } = require('@react-native/metro-config');
|
||||
const { withUniwindConfig } = require('uniwind/metro');
|
||||
|
||||
const config = withUniwindConfig(getDefaultConfig(__dirname), {
|
||||
cssEntryFile: './global.css',
|
||||
dtsFile: './src/uniwind-types.d.ts',
|
||||
});
|
||||
|
||||
// Keep Metro's file watcher out of the transient Gradle/Xcode build output
|
||||
// dirs. Without watchman, Metro's fallback watcher chokes (ENOENT) when these
|
||||
// directories disappear mid-build.
|
||||
config.resolver.blockList = [
|
||||
/\/android\/app\/build\/.*/,
|
||||
/\/android\/build\/.*/,
|
||||
/\/android\/\.gradle\/.*/,
|
||||
/\/build\/generated\/.*/,
|
||||
/\/ios\/build\/.*/,
|
||||
/\/ios\/Pods\/.*/,
|
||||
];
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user