mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 02:07:55 +00:00
ba74fe4298
- Fix shadow style deprecation warnings across components (boxShadow) - Add type declaration files (codec.d.ts, modules.d.ts) - Update metro.config.cjs for proper asset extensions - Update tsconfig.json with module resolution settings - Fix TypeScript errors in shared/lib files - Update app icons (optimized PNG files)
50 lines
1.5 KiB
JavaScript
50 lines
1.5 KiB
JavaScript
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
const { getDefaultConfig } = require('expo/metro-config');
|
|
const path = require('path');
|
|
|
|
/** @type {import('expo/metro-config').MetroConfig} */
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
// ============================================
|
|
// WORKSPACE CONFIGURATION
|
|
// ============================================
|
|
|
|
const projectRoot = __dirname;
|
|
|
|
// Use default watchFolders (no custom configuration)
|
|
|
|
// ============================================
|
|
// CUSTOM MODULE RESOLUTION
|
|
// ============================================
|
|
// DISABLED: Custom resolver causes empty-module.js resolution issues
|
|
// Using npm packages directly instead
|
|
|
|
// ============================================
|
|
// FILE EXTENSIONS
|
|
// ============================================
|
|
|
|
// Extend default extensions instead of replacing them
|
|
config.resolver.sourceExts = [
|
|
...config.resolver.sourceExts,
|
|
'expo.ts',
|
|
'expo.tsx',
|
|
'expo.js',
|
|
'expo.jsx',
|
|
'wasm',
|
|
];
|
|
|
|
// SVG should be handled as source file for react-native-svg transformer
|
|
// Remove svg from assetExts if present, add to sourceExts
|
|
config.resolver.assetExts = config.resolver.assetExts.filter(ext => ext !== 'svg');
|
|
if (!config.resolver.sourceExts.includes('svg')) {
|
|
config.resolver.sourceExts.push('svg');
|
|
}
|
|
|
|
// ============================================
|
|
// NODE POLYFILLS
|
|
// ============================================
|
|
|
|
// Polyfills will be resolved from project's own node_modules
|
|
|
|
module.exports = config;
|