1const createConfigAsync = require('@expo/webpack-config');
2const path = require('path');
3
4module.exports = async (env, argv) => {
5  const config = await createConfigAsync(
6    {
7      ...env,
8      babel: {
9        dangerouslyAddModulePathsToTranspile: ['<%- project.slug %>'],
10      },
11    },
12    argv
13  );
14  config.resolve.modules = [
15    path.resolve(__dirname, './node_modules'),
16    path.resolve(__dirname, '../node_modules'),
17  ];
18
19  return config;
20};
21