mancala/apps/mobile/metro.config.js

20 lines
653 B
JavaScript
Raw Normal View History

const path = require('path');
2024-03-24 03:47:18 +03:00
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
// @mancala/core and mancala.js are linked from the repo's packages folder.
watchFolders: [path.resolve(__dirname, '../../packages')],
resolver: {
// Lets the linked packages find modules that only the app installs, such as @babel/runtime.
nodeModulesPaths: [path.resolve(__dirname, 'node_modules')],
},
};
2024-03-24 03:47:18 +03:00
module.exports = mergeConfig(getDefaultConfig(__dirname), config);