flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.82k stars 181 forks source link

Fix and improve metro config merging #1770

Closed vvsamin closed 1 month ago

vvsamin commented 1 month ago

Description

There are problems with merging metro configs (some properties are overwritten).

For example:

module.exports = withRNVMetro({
    resolver: {
        sourceExts: ['svg'],
    }
})

as a result, the merged config contains only the custom sourceExts array, losing all rnv extensions (although initially, the logic implied unifying some of the properties).

This PR fixes such errors and improves the config merge flow.

Related issues

Npm releases

n/a