mirror of
https://github.com/jellyfin/jellyfin-expo.git
synced 2024-11-23 05:59:39 +00:00
Patch metro config to fix invalid native module urls
This commit is contained in:
parent
5ebf8e4d40
commit
18416c21f5
@ -9,4 +9,13 @@ const defaultConfig = getDefaultConfig(__dirname);
|
|||||||
|
|
||||||
defaultConfig.resolver.assetExts.push('staticjs');
|
defaultConfig.resolver.assetExts.push('staticjs');
|
||||||
|
|
||||||
|
defaultConfig.server.rewriteRequestUrl = (url) => {
|
||||||
|
if (!url.endsWith('.bundle')) {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
// https://github.com/facebook/react-native/issues/36794
|
||||||
|
// JavaScriptCore strips query strings, so try to re-add them with a best guess.
|
||||||
|
return url + '?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true';
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = defaultConfig;
|
module.exports = defaultConfig;
|
||||||
|
Loading…
Reference in New Issue
Block a user