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

25 lines
664 B
JavaScript
Raw Normal View History

2019-10-04 18:38:54 +08:00
const path = require('path');
2024-01-22 15:55:52 +08:00
// const extraNodeModules = {
// react: path.resolve(__dirname, 'node_modules/react'),
// 'react-native': path.resolve(__dirname, 'node_modules/react-native'),
// 'react-native-update': path.resolve(__dirname, '../..'),
// '@babel/runtime': path.resolve(__dirname, 'node_modules/@babel/runtime'),
// };
// const watchFolders = [path.resolve(__dirname, '../..')];
2019-10-04 18:38:54 +08:00
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
},
}),
},
2024-01-22 15:55:52 +08:00
// resolver: {
// extraNodeModules,
// },
// watchFolders,
2019-10-04 18:38:54 +08:00
};