mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-16 13:11:39 +08:00
25 lines
604 B
JavaScript
25 lines
604 B
JavaScript
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,
|
|
);
|