-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
30 lines (23 loc) · 973 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// const path = require('path');
// const createExpoWebpackConfigAsync = require('@expo/webpack-config');
// module.exports = async function (env, argv) {
// const config = await createExpoWebpackConfigAsync(env, argv);
// config.resolve = {
// extensions: ['.js', '.jsx'], // Add the extensions that should be used to resolve modules
// modules: [path.resolve(__dirname, 'src'), 'node_modules'], // Add the route to the src folder
// };
// config.module.rules.push({
// test: /\.js$/,
// loader: 'babel-loader',
// include: [path.join(__dirname, 'node_modules/react-router-native')
// ]
// })
// return config;
// }
const path = require('path');
const createExpoWebpackConfigAsync = require('@expo/webpack-config');
module.exports = async function (env, argv) {
const config = await createExpoWebpackConfigAsync(env, argv);
config.resolve.extensions.push('.jsx');
return config;
}