File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ const extraNodeModules = {
1717const config = {
1818 resolver : {
1919 extraNodeModules,
20- resolveRequest : function packageExportsResolver ( context , moduleImport , platform ) {
20+ resolveRequest : function packageExportsResolver (
21+ context ,
22+ moduleImport ,
23+ platform ,
24+ ) {
2125 // Use the browser version of the package for React Native
2226 if ( moduleImport === 'axios' || moduleImport . startsWith ( 'axios/' ) ) {
2327 return context . resolveRequest (
@@ -26,12 +30,12 @@ const config = {
2630 unstable_conditionNames : [ 'browser' ] ,
2731 } ,
2832 moduleImport ,
29- platform
30- ) ;
33+ platform ,
34+ )
3135 }
3236
3337 // Fall back to normal resolution
34- return context . resolveRequest ( context , moduleImport , platform ) ;
38+ return context . resolveRequest ( context , moduleImport , platform )
3539 } ,
3640 } ,
3741 watchFolders : [ path . resolve ( __dirname , 'node_modules' ) ] ,
You can’t perform that action at this time.
0 commit comments