forked from nativewind/react-native-css
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmetro.config.js
More file actions
24 lines (21 loc) · 708 Bytes
/
metro.config.js
File metadata and controls
24 lines (21 loc) · 708 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
const { getDefaultConfig } = require("@expo/metro-config");
const { withReactNativeCSS } = require("react-native-css/metro");
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = getDefaultConfig(__dirname);
/**
* This block of code is not required, it just makes the example work in this monorepo setup.
*/
const path = require("path");
config.watchFolders = [path.resolve(__dirname, "../")];
config.resolver.nodeModulesPaths = [
path.resolve(__dirname, "node_modules"),
path.resolve(__dirname, "../node_modules"),
];
module.exports = withReactNativeCSS(config, {
globalClassNamePolyfill: true,
});