Chore: Web: Fix build (#13250)

This commit is contained in:
Henry Heino
2025-09-19 09:22:22 +01:00
committed by GitHub
parent cac93e9f9c
commit 4a043f68ad
@@ -45,6 +45,7 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => {
};
const emptyLibraryMock = path.resolve(__dirname, 'mocks/empty.js');
const throwOnLoadLibraryMock = path.resolve(__dirname, 'mocks/throwOnLoad.js');
return {
output: {
@@ -78,6 +79,8 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => {
'@react-native-documents/picker': emptyLibraryMock,
'react-native-exit-app': emptyLibraryMock,
'expo-camera': emptyLibraryMock,
// Remove this after upgrading react-native-vector-icons.
'@react-native-vector-icons/material-design-icons': throwOnLoadLibraryMock,
// Workaround for applying serviceworker types to a single file.
// See https://joshuatz.com/posts/2021/strongly-typed-service-workers/.