Yeah, I really do like this way of doing it. I might change the Vue example to do that. For React though, the HTML is usually empty, so it ends up hiding the dependencies within a tab that nobody looks at, so imports are a lot clearer.
Perhaps I could find a way to transform imports into script statements in the exported file. I'll have a think about it...