metro.config.js 679 B

123456789101112131415161718192021222324252627
  1. /* eslint-env node */
  2. /* eslint-disable */
  3. const {
  4. getDefaultConfig
  5. } = require("expo/metro-config");
  6. const path = require("path");
  7. const root = path.resolve(__dirname, "..");
  8. const nodeModulesPaths = [path.resolve(__dirname, "node_modules")];
  9. const config = getDefaultConfig(__dirname);
  10. config.watchFolders = [root];
  11. config.resolver.extraNodeModules = {
  12. "ncore-ui-kit-mobile": path.resolve(root, "src"),
  13. "react": path.resolve(__dirname, "node_modules/react"),
  14. "react-native": path.resolve(__dirname, "node_modules/react-native"),
  15. };
  16. config.resolver.nodeModulesPaths = nodeModulesPaths;
  17. config.resolver.disableHierarchicalLookup = true;
  18. module.exports = config;