mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-12-20 04:35:13 +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