Definitely, that would be a good use case!
Using require shouldn't be a problem.
I love using this approach when I want to avoid a build step altogether.
I really appreciate you taking the time to check this out.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.