File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed
apps/cli/templates/frontend/native/nativewind Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change 11// Learn more https://docs.expo.io/guides/customizing-metro
22const { getDefaultConfig } = require("expo/metro-config");
3- const { FileStore } = require("metro-cache");
43const { withNativeWind } = require("nativewind/metro");
5- const path = require("node:path");
64
7- const config = withTurborepoManagedCache(
8- withNativeWind(getDefaultConfig(__dirname), {
9- input: "./global.css",
10- configPath: "./tailwind.config.js",
11- }),
12- );
5+ const config = withNativeWind(getDefaultConfig(__dirname), {
6+ input: "./global.css",
7+ configPath: "./tailwind.config.js",
8+ });
139
1410config.resolver.unstable_enablePackageExports = true;
1511
16- module.exports = config;
17-
18- /**
19- * Move the Metro cache to the `.cache/metro` folder.
20- * If you have any environment variables, you can configure Turborepo to invalidate it when needed.
21- *
22- * @see https://turbo.build/repo/docs/reference/configuration#env
23- * @param {import('expo/metro-config').MetroConfig} config
24- * @returns {import('expo/metro-config').MetroConfig}
25- */
26- function withTurborepoManagedCache(config) {
27- config.cacheStores = [
28- new FileStore({ root: path.join(__dirname, ".cache/metro") }),
29- ];
30- return config;
31- }
12+ module.exports = config;
You can’t perform that action at this time.
0 commit comments