Tommy :blobfoxfloofcofe: · @tido
51 followers · 224 posts · Server hachyderm.io

@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 esbuild.github.io/analyze/ to produce a neat visualization of the contents of your bundle.

#reactnative #metrobundler #esbuild

Last updated 1 year ago

Tommy :blobfoxfloofcofe: · @tido
47 followers · 172 posts · Server hachyderm.io

Last week, we landed a small change in to preserve comments: github.com/facebook/metro/rele

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`: github.com/microsoft/rnx-kit/t

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

#metro #reactnative #metrobundler #treeshaking

Last updated 1 year ago