1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
react-native-pushy/Example/testHotUpdate/metro.config.js

25 lines
631 B
JavaScript
Raw Normal View History

2019-10-04 18:38:54 +08:00
const path = require('path');
const extraNodeModules = {
2023-01-26 22:23:37 +08:00
react: path.resolve(__dirname, 'node_modules/react'),
2019-10-04 18:38:54 +08:00
'react-native': path.resolve(__dirname, 'node_modules/react-native'),
2019-10-05 11:52:25 +08:00
'react-native-update': path.resolve(__dirname, '../..'),
'@babel/runtime': path.resolve(__dirname, 'node_modules/@babel/runtime'),
2019-10-04 18:38:54 +08:00
};
const watchFolders = [path.resolve(__dirname, '../..')];
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
2021-04-09 18:23:29 +08:00
inlineRequires: true,
2019-10-04 18:38:54 +08:00
},
}),
},
resolver: {
extraNodeModules,
},
watchFolders,
};