@@ -6,20 +6,20 @@ const root = path.resolve(__dirname, '..');
66const node_modules = path . join ( __dirname , 'node_modules' ) ;
77
88module . exports = async function ( env , argv ) {
9- const config = await createExpoWebpackConfigAsync ( env , argv ) ;
9+ const config = await createExpoWebpackConfigAsync ( env , argv ) ;
1010
11- config . module . rules . push ( {
12- test : / \. ( j s | j s x | t s | t s x ) $ / ,
13- include : path . resolve ( root , 'src' ) ,
14- use : 'babel-loader' ,
15- } ) ;
11+ config . module . rules . push ( {
12+ test : / \. ( j s | j s x | t s | t s x ) $ / ,
13+ include : path . resolve ( root , 'src' ) ,
14+ use : 'babel-loader' ,
15+ } ) ;
1616
17- // We need to make sure that only one version is loaded for peerDependencies
18- // So we alias them to the versions in example's node_modules
19- Object . assign ( config . resolve . alias , {
20- ...resolver . extraNodeModules ,
21- 'react-native-web' : path . join ( node_modules , 'react-native-web' ) ,
22- } ) ;
17+ // We need to make sure that only one version is loaded for peerDependencies
18+ // So we alias them to the versions in example's node_modules
19+ Object . assign ( config . resolve . alias , {
20+ ...resolver . extraNodeModules ,
21+ 'react-native-web' : path . join ( node_modules , 'react-native-web' ) ,
22+ } ) ;
2323
24- return config ;
24+ return config ;
2525} ;
0 commit comments