This is a simple example that shows how to intercept `import` specifiers using service workers.
It is buggy because of how claiming clients works in service workers. If you want to make a feature like this without buggy behavior, get involved on WHATWG spec work on github
This solution is not suitable for production. It requires a variety of source code transforms and extra network calls. It also is limited by the service worker scope so it cannot function cross origin. Check out how our service worker rewrote ./test.js vs how it is on disk.