Our comment said the dev fixtures were compiled out of production. The 3.8 MB bundle says otherwise.
Munchable's phone app ships with a small catalogue of fake products so the scan flow can be exercised on a developer machine with no backend running. Six products and one canned restaurant menu, every call site gated on __DEV__ : /** * Bundled sample catalog used ONLY in local dev (every call site is gated on * __DEV__) so the scan → result flow works with no backend. In production, * products…
Munchable's phone app includes a small catalog of fake products for testing purposes, allowing developers to exercise the scan flow on a device without a backend running. The catalog consists of six products, one of which is a canned restaurant menu. The catalog is gated behind a `__DEV__` flag, ensuring it is not served to real users in production.
When the app is compiled for production, the dev-only catalog is removed by dead code elimination, resulting in a bundle that is only 0.12% data, with Hazelnut Cocoa Spread being the first fake product present. The bundled sample catalog is served from a web build at app.munchable.app, allowing anyone to fetch the file. The claim that the sample fallback is compiled out of production is testable by fetching the production bundle and checking its length and the presence of specific product names.
The two results obtained, one indicating the presence of the Hazelnut Cocoa Spread product and another showing the absence of the sample menu, demonstrate the discrepancy between the comment and the actual contents of the production bundle. The comment should be updated to clarify that the dev-only fixtures are inert and not removed from the production bundle, as they still have a negligible impact on the overall file size.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.