mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
This commit is a first pass of lint and fmt, with a few manual fixes. Only manual issues left to do.
24 lines
563 B
JavaScript
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);
|