mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
59101d6809
Summary: This module is currently unused, so we can clean it up. ## Changelog: [INTERNAL] - Pull Request resolved: https://github.com/facebook/react-native/pull/52705 Test Plan: CI Reviewed By: cipolleschi Differential Revision: D78555763 Pulled By: cortinico fbshipit-source-id: 0a6152ab3d357cac0c6d7669f292680af7b87074
46 lines
1.4 KiB
JavaScript
46 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @noflow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const {getDefaultConfig} = require('@react-native/metro-config');
|
|
const {mergeConfig} = require('metro-config');
|
|
const path = require('path');
|
|
|
|
/**
|
|
* This cli config is needed for development purposes, e.g. for running
|
|
* integration tests during local development or on CI services.
|
|
*
|
|
* @type {import('metro-config').MetroConfig}
|
|
*/
|
|
const config = {
|
|
// Make Metro able to resolve required external dependencies
|
|
watchFolders: [
|
|
path.resolve(__dirname, '../../node_modules'),
|
|
path.resolve(__dirname, '../assets'),
|
|
path.resolve(__dirname, '../community-cli-plugin'),
|
|
path.resolve(__dirname, '../dev-middleware'),
|
|
path.resolve(__dirname, '../new-app-screen'),
|
|
path.resolve(__dirname, '../normalize-color'),
|
|
path.resolve(__dirname, '../polyfills'),
|
|
path.resolve(__dirname, '../react-native'),
|
|
path.resolve(__dirname, '../virtualized-lists'),
|
|
path.resolve(__dirname, '../react-native-popup-menu-android'),
|
|
],
|
|
resolver: {
|
|
blockList: [/..\/react-native\/sdks\/hermes/],
|
|
extraNodeModules: {
|
|
'react-native': path.resolve(__dirname, '../react-native'),
|
|
},
|
|
},
|
|
};
|
|
|
|
module.exports = mergeConfig(getDefaultConfig(__dirname), config);
|