Skip to content

Commit

Permalink
fixed node-libs-react-native/globals import
Browse files Browse the repository at this point in the history
  • Loading branch information
siddarthkay committed Aug 29, 2023
1 parent 8b6e3b6 commit 5c1e051
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@ const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
*
* @type {import('metro-config').MetroConfig}
*/
const config = {};
const config = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
resolver: {
extraNodeModules: require('node-libs-react-native'),
},
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);

0 comments on commit 5c1e051

Please sign in to comment.