2026-10-14 02:09:05 +03:00
|
|
|
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}
|
|
|
|
|
*/
|
2026-10-14 02:09:05 +03:00
|
|
|
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);
|