Is it possible to load a snapshot of a package used within a dart script, while the part of the dart script with main() is still loaded dynamically. My use case is that I am scripting an application with the dart runtime and I'd like to load in a snapshot of some large packages, for example vector_math. However, the main dart script is live, so every time it is edited it is re-evaluated with a new isolate.
If this is not possible, am I able to somehow glob the package onto the 'full snapshot' that I generated with the gen_snapshot program?
Thanks,
Rich
p.s. Thank you to those responsible for the documentation on snapshots, including the section for embedders. I have been using this functionality and I find it an amazing piece of tech.