mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The dart_runner was invoking main directly which was working fine in JIT mode but when we switch to aot snapshots invoking main would fail. This was due to user's not marking their main as a vm entrypoint. Rather than having user's mark this entrypoint we add a trampoline through the dart:fuchsia package which is marked as an entrypoint and avoids the main functions being tree shaken. BUG: fxbug.dev/64153