Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
module.exports = async function(env, argv) {
const mode = getMode(env);
const isProd = mode === 'production';
const config = await createExpoWebpackConfigAsync(
{
...env,
removeUnusedImportExports: false,
},
argv,
);
config.resolve.alias['three$'] = 'three/build/three.min.js';
config.resolve.alias['three/.*$'] = 'three';
config.plugins.push(
new webpack.ProvidePlugin({
THREE: 'three',
}),