mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 21:33:12 +08:00 
			
		
		
		
	react-native-pushy适配harmony (#461)
* init * update * udpate * update * update * update * add pushy build time logic
This commit is contained in:
		
							
								
								
									
										24
									
								
								Example/harmony_use_pushy/metro.config.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								Example/harmony_use_pushy/metro.config.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| const {mergeConfig, getDefaultConfig} = require('@react-native/metro-config'); | ||||
| const {createHarmonyMetroConfig} = require('@react-native-oh/react-native-harmony/metro.config'); | ||||
|  | ||||
| /** | ||||
|  * @type {import("metro-config").ConfigT} | ||||
|  */ | ||||
| const config = { | ||||
|   transformer: { | ||||
|     getTransformOptions: async () => ({ | ||||
|       transform: { | ||||
|         experimentalImportSupport: false, | ||||
|         inlineRequires: true, | ||||
|       }, | ||||
|     }), | ||||
|   }, | ||||
| }; | ||||
|  | ||||
| module.exports = mergeConfig( | ||||
|   getDefaultConfig(__dirname), | ||||
|   createHarmonyMetroConfig({ | ||||
|     reactNativeHarmonyPackageName: '@react-native-oh/react-native-harmony', | ||||
|   }), | ||||
|   config, | ||||
| ); | ||||
		Reference in New Issue
	
	Block a user
	 波仔糕
					波仔糕