- [Breaking] Use custom resolvers (
resolver.resolveRequest) before checking the Haste map. (96fb6e9) - [Feature] Update React Native lazy imports list with the removal of
StatusBarIOS. (2a0f779) - [Feature] Allow configuring the path of the canonical empty module, which now lives in
metro-runtimeby default. (bd5f932, 6e3e789, 7723be5) - [Feature] Add
initialize_done,transformer_loading, andtransformer_loadedevents to theReporterinterface. (d19cf5d) - [Feature] Add
waitForBundleroption to therunServer()andrunMetro()APIs. (57d8a92) - [Feature] Add
resolver.disableHierarchicalLookupoption. (01416f1) - [Feature] Remove confusing troubleshooting steps from missing module errors. (1fa45c2)
- [Feature] Infer names for anonymous functions in optional calls. (4ced2a1)
- [Feature] Infer names for anonymous functions memoized with useCallback. (2611f61)
- [Feature] Update terser to v5 in
metro-minify-terser. (#754 by @rockwotj, #606 by @janicduplessis) - [Fix] Fix a caching issue with custom resolvers. (793b1a0)
- [Fix] Specify UTF-8 encoding when serving bundles. (#695 by @zhiqingchen)
- [Fix] Support package.json module replacements for requires with implicit extensions. (41522a2)
- [Fix] Resolve package.json module replacements when the replaced module isn't a physical file. (171393a)
- [Fix] Fix stack trace symbolication when input files have non-Unix line endings. (#691 by @danielsmc)
- [Fix] Decrease the precedence of
resolver.nodeModulesPathsto respect transitive dependencies. (#738 by @sharmilajesupaul) - [Fix] Respect
mangle: false&sourceMap: falseinminifierConfig. (#749 by @mfbx9da4) - [Fix] Update hash function from MD4 to MD5 for Node 17 compatibility. (#752 by @tobua)
NOTE: Experimental features are not covered by semver and can change at any time.
- [Experimental] Add
server.unstable_serverRootoption to allow serving bundles from folders outside the project root. (026a66c, ca86682, e061cf3, 70e9888, baacea2) - [Experimental] Update
metro-hermes-compiler. (e80434c) - [Experimental] Provide safe access to assets outside the project root using
/assets?unstable_path=.... (f3d1157) - [Experimental] Add
resolver.unstable_hasteMapModulePathoption. (e8c0de0)
Thanks to all the contributors mentioned above for helping improve Metro! 🚇