Files
self/app/metro.config.js
thomas-senechal 126711d326 First lint and fmt pass
This commit is a first pass of lint and fmt, with a few manual fixes. Only manual issues left to do.
2025-01-06 18:54:46 +01:00

24 lines
563 B
JavaScript

const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');
const path = require('path');
const commonPath = path.join(__dirname, '/../common');
const extraNodeModules = {
common: path.resolve(commonPath),
};
const watchFolders = [path.resolve(commonPath)];
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {
resolver: {
extraNodeModules,
},
watchFolders,
};
module.exports = mergeConfig(getDefaultConfig(__dirname), config);