mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
17 lines
392 B
JavaScript
17 lines
392 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
|
|
const createExpoWebpackConfigAsync = require('@expo/webpack-config');
|
|
|
|
module.exports = async function(env, argv) {
|
|
const config = await createExpoWebpackConfigAsync(env, argv);
|
|
|
|
config.module.rules.push({
|
|
test: /@navigation-ex/,
|
|
use: 'babel-loader',
|
|
});
|
|
|
|
config.resolve.alias['react'] = require.resolve('react');
|
|
|
|
return config;
|
|
};
|