mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	setup rnoh
This commit is contained in:
		| @@ -1,11 +1,24 @@ | ||||
| const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config'); | ||||
| const {mergeConfig, getDefaultConfig} = require('@react-native/metro-config'); | ||||
| const {createHarmonyMetroConfig} = require('react-native-harmony/metro.config'); | ||||
|  | ||||
| /** | ||||
|  * Metro configuration | ||||
|  * https://facebook.github.io/metro/docs/configuration | ||||
|  * | ||||
|  * @type {import('metro-config').MetroConfig} | ||||
|  * @type {import("metro-config").ConfigT} | ||||
|  */ | ||||
| const config = {}; | ||||
| const config = { | ||||
|   transformer: { | ||||
|     getTransformOptions: async () => ({ | ||||
|       transform: { | ||||
|         experimentalImportSupport: false, | ||||
|         inlineRequires: true, | ||||
|       }, | ||||
|     }), | ||||
|   }, | ||||
| }; | ||||
|  | ||||
| module.exports = mergeConfig(getDefaultConfig(__dirname), config); | ||||
| module.exports = mergeConfig( | ||||
|   getDefaultConfig(__dirname), | ||||
|   createHarmonyMetroConfig({ | ||||
|     reactNativeHarmonyPackageName: 'react-native-harmony', | ||||
|   }), | ||||
|   config, | ||||
| ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm