mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-06-14 09:01:01 +00:00
fix: TypeScript errors, shadow deprecations, and build configuration
- 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)
This commit is contained in:
@@ -23,22 +23,23 @@ const projectRoot = __dirname;
|
||||
// FILE EXTENSIONS
|
||||
// ============================================
|
||||
|
||||
// Extend default extensions instead of replacing them
|
||||
config.resolver.sourceExts = [
|
||||
...config.resolver.sourceExts,
|
||||
'expo.ts',
|
||||
'expo.tsx',
|
||||
'expo.js',
|
||||
'expo.jsx',
|
||||
'ts',
|
||||
'tsx',
|
||||
'js',
|
||||
'jsx',
|
||||
'json',
|
||||
'wasm',
|
||||
'svg',
|
||||
'cjs',
|
||||
'mjs',
|
||||
];
|
||||
|
||||
// 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
|
||||
// ============================================
|
||||
|
||||
Reference in New Issue
Block a user