mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 04:09:41 +02:00
fix(matrix-mobile): block matrix-sdk-crypto-wasm in Metro resolver
The WASM crypto module uses import.meta which Hermes doesn't support. Since E2EE is not implemented, resolve it as empty module. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d9b3775fcc
commit
b840a21af6
1 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,14 @@ config.resolver.extraNodeModules = {
|
|||
stream: require.resolve('stream-browserify'),
|
||||
};
|
||||
|
||||
// Block matrix-sdk-crypto-wasm (uses import.meta, not compatible with Hermes)
|
||||
config.resolver.resolveRequest = (context, moduleName, platform) => {
|
||||
if (moduleName === '@matrix-org/matrix-sdk-crypto-wasm') {
|
||||
return { type: 'empty' };
|
||||
}
|
||||
return context.resolveRequest(context, moduleName, platform);
|
||||
};
|
||||
|
||||
// Monorepo workspace support
|
||||
const monorepoRoot = path.resolve(__dirname, '../../../..');
|
||||
config.watchFolders = [monorepoRoot];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue