mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-16 10:02:34 +08:00
Update Example
This commit is contained in:
27
Example/testHotUpdate/metro.config.js
Normal file
27
Example/testHotUpdate/metro.config.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const path = require('path');
|
||||
|
||||
const extraNodeModules = {
|
||||
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
|
||||
};
|
||||
const blacklistRegexes = [
|
||||
/react-native-update[\/\\]node_modules[\/\\]react-native[\/\\].*/,
|
||||
];
|
||||
const watchFolders = [path.resolve(__dirname, '../..')];
|
||||
|
||||
module.exports = {
|
||||
transformer: {
|
||||
getTransformOptions: async () => ({
|
||||
transform: {
|
||||
experimentalImportSupport: false,
|
||||
inlineRequires: false,
|
||||
},
|
||||
}),
|
||||
},
|
||||
resolver: {
|
||||
extraNodeModules,
|
||||
blacklistRE: require('metro-config/src/defaults/blacklist')(
|
||||
blacklistRegexes,
|
||||
),
|
||||
},
|
||||
watchFolders,
|
||||
};
|
||||
Reference in New Issue
Block a user