mobile: fix webpack build

This commit is contained in:
ammarahm-ed
2023-08-03 17:07:40 +05:00
committed by Ammar Ahmed
parent 36662d58da
commit 6cd1d7c41b
2 changed files with 5 additions and 2 deletions

View File

@@ -30,7 +30,8 @@
"toggle-switch-react-native": "3.2.0",
"url": "^0.11.0",
"validator": "^13.5.2",
"zustand": "^3.6.0"
"zustand": "^3.6.0",
"katex": "0.16.2"
},
"sideEffects": false
}

View File

@@ -98,7 +98,8 @@ module.exports = (env) => {
"@selderee/plugin-htmlparser2": path.join(__dirname, "../node_modules/@selderee/plugin-htmlparser2"),
"peberminta": path.join(__dirname, "../node_modules/peberminta"),
"react-native-blob-util": path.join(__dirname, "../node_modules/react-native-blob-util"),
"@mdi/js": path.join(__dirname, "../node_modules/@mdi/js/mdi.js")
"@mdi/js": path.join(__dirname, "../node_modules/@mdi/js/mdi.js"),
"katex": path.join(__dirname, "../node_modules/katex"),
},
},
/**
@@ -183,6 +184,7 @@ module.exports = (env) => {
/node_modules(.*[/\\])+@tanstack[/\\]query-core/,
/node_modules(.*[/\\])+@tanstack[/\\]react-query/,
/node_modules(.*[/\\])+@trpc[/\\]react-query/,
/node_modules(.*[/\\])+katex/,
],
use: {
loader: "babel-loader",