20 lines
578 B
JavaScript
20 lines
578 B
JavaScript
const { getDefaultConfig } = require("expo/metro-config");
|
|
const { withNativeWind } = require("nativewind/metro");
|
|
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
// Add resolver for platform-specific files
|
|
config.resolver.platforms = ['ios', 'android', 'native', 'web'];
|
|
|
|
// Ensure web extensions are properly resolved
|
|
// This allows .web.ts files to be picked up for web builds
|
|
config.resolver.sourceExts = [
|
|
...config.resolver.sourceExts,
|
|
'web.ts',
|
|
'web.tsx',
|
|
'web.js',
|
|
'web.jsx',
|
|
];
|
|
|
|
module.exports = withNativeWind(config, { input: "./app/global.css" });
|