@rnx-kit/metro-serializer-esbuild 0.1.25

• Add support for `metafile` flag
• Warn when `export *` is used on log level 'debug'

You can now tell esbuild to output a metadata file. This file can be imported in https://esbuild.github.io/analyze/ to produce a neat visualization of the contents of your bundle.

#ReactNative #MetroBundler #esbuild

esbuild - Bundle Size Analyzer

react-native-test-app 2.5.3

• Android/iOS/Windows: Declared support for 0.72
• Android: Fixed build failure with 0.73 nightly

@rnx-kit/metro-serializer-esbuild 0.1.23

• Added `minifyWhitespace`, `minifyIdentifiers`, `minifySyntax` options to allow more granular control over minification

#ReactNative #MetroBundler

Last week, we landed a small change in #Metro to preserve comments: https://github.com/facebook/metro/releases/tag/v0.76.3

While this may seem insignificant, this means that Metro will no longer omit `__PURE__` annotations that bundlers rely on for tree shaking. As of Metro 0.76.3, you may get even smaller bundles if you're using `@rnx-kit/metro-serializer-esbuild`: https://github.com/microsoft/rnx-kit/tree/main/packages/metro-serializer-esbuild#readme

In simple examples, we've seen reductions of several hundred KBs. YMMV

#ReactNative #MetroBundler #TreeShaking

Release v0.76.3 · facebook/metro

[Feature]: Support custom __loadBundleAsync implementations in the default asyncRequire function. See the lazy bundling RFC for more details. (ac3adce, f07ce5c by @motiz88) [Feature]: Support lazy ...

GitHub