Inline modules

I'm wondering if it would make sense to add a concept of "inline modules" which could be used with import(), to facilitate the use of Workers and Realms without creating lots of different little script files. I wrote up a gist. I'd be interested in your feedback.