On the official Flutter docs, they say you can run flutter build web to compile for a release, and it'll generate everything you need, including source maps.
Build and release a web appHow to prepare for and release a web app.Flutter Logo
However this is not the case. Also,