mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Chore: Web: Fix build (#13250)
This commit is contained in:
@@ -45,6 +45,7 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const emptyLibraryMock = path.resolve(__dirname, 'mocks/empty.js');
|
const emptyLibraryMock = path.resolve(__dirname, 'mocks/empty.js');
|
||||||
|
const throwOnLoadLibraryMock = path.resolve(__dirname, 'mocks/throwOnLoad.js');
|
||||||
|
|
||||||
return {
|
return {
|
||||||
output: {
|
output: {
|
||||||
@@ -78,6 +79,8 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => {
|
|||||||
'@react-native-documents/picker': emptyLibraryMock,
|
'@react-native-documents/picker': emptyLibraryMock,
|
||||||
'react-native-exit-app': emptyLibraryMock,
|
'react-native-exit-app': emptyLibraryMock,
|
||||||
'expo-camera': 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.
|
// Workaround for applying serviceworker types to a single file.
|
||||||
// See https://joshuatz.com/posts/2021/strongly-typed-service-workers/.
|
// See https://joshuatz.com/posts/2021/strongly-typed-service-workers/.
|
||||||
|
|||||||
Reference in New Issue
Block a user