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
#metro #reactnative #metrobundler #treeshaking
Very wild idea: a #JavaScript #bundler that actually supports ECMAScript modules, inlcuding #treeShaking and #HTTPS URLs.
And doesn't support butthole-shedding or bundling CSS, SVGs, and NFTs.
#javascript #Bundler #treeshaking #https
RT @Teapot4181@twitter.com
Kleiner Mini-Sketch-Comic aus gegebenem Anlass 😅 #treeshaking #frontend #comic
🐦🔗: https://twitter.com/Teapot4181/status/1577263596115230725