1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-31 21:33:12 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

react-native-pushy适配harmony (#461)

* init

* update

* udpate

* update

* update

* update

* add pushy build time logic
This commit is contained in:
波仔糕
2024-12-26 12:11:52 +08:00
committed by GitHub
parent 1ad0926a24
commit 822602add9
151 changed files with 25412 additions and 3 deletions

View 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,
);