mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
18 lines
414 B
JavaScript
18 lines
414 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
/* eslint-env node */
|
|
|
|
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;
|
|
};
|