Better support for testing from engines
fuchsia.groan at virgin.net
Tue Jul 2 10:25:56 UTC 2019
I've not used import maps yet myself (https://github.com/WICG/import-maps)
but they'd probably allow you to swap an imported module for a dummy. Or
you could swizzle them with a service worker.
Obviously, there are much easier ways of handling your toy example. But I
appreciate that real world cases tend to be "non-trivial".
More information about the es-discuss