25 lines
706 B
JavaScript
25 lines
706 B
JavaScript
|
|
// Learn more https://docs.expo.io/guides/customizing-metro
|
||
|
|
const path = require("path");
|
||
|
|
const { getDefaultConfig } = require("expo/metro-config");
|
||
|
|
|
||
|
|
const { withNativeWind } = require("nativewind/metro");
|
||
|
|
|
||
|
|
/** @type {import('expo/metro-config').MetroConfig} */
|
||
|
|
|
||
|
|
const projectRoot = __dirname;
|
||
|
|
const workspaceRoot = path.resolve(projectRoot, "../..");
|
||
|
|
|
||
|
|
const config = getDefaultConfig(projectRoot);
|
||
|
|
|
||
|
|
config.watchFolders = [workspaceRoot];
|
||
|
|
config.resolver.nodeModulesPaths = [
|
||
|
|
path.resolve(projectRoot, "node_modules"),
|
||
|
|
path.resolve(workspaceRoot, "node_modules"),
|
||
|
|
];
|
||
|
|
config.resolver.disableHierarchicalLookup = true;
|
||
|
|
|
||
|
|
module.exports = withNativeWind(config, {
|
||
|
|
input: "./global.css",
|
||
|
|
inlineRem: 16,
|
||
|
|
});
|