fix(build): resolve Android release compilation and web bundling issues #56

Merged
amit merged 1 commits from build-issues into main 2026-10-09 05:02:25 +00:00
3 changed files with 16 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
android/
# dependencies
node_modules/

View File

@ -28,7 +28,7 @@
"allowBackup": false
},
"web": {
"output": "static",
"output": "single",
"favicon": "./assets/images/favicon.png"
},
"plugins": [
@ -55,4 +55,4 @@
"reactCompiler": true
}
}
}
}

12
metro.config.js Normal file
View File

@ -0,0 +1,12 @@
const { getDefaultConfig } = require('expo/metro-config');
const config = getDefaultConfig(__dirname);
// Prioritize CommonJS / require / react-native conditions to avoid ESM import.meta in web builds
config.resolver.unstable_conditionNames = ['browser', 'require', 'react-native'];
if (config.resolver.unstable_conditionsByPlatform) {
config.resolver.unstable_conditionsByPlatform.web = ['browser', 'require', 'react-native'];
}
module.exports = config;