Add some tests that handle error cases. Make sure that the compiler doesn't throw unhandled errors and instead returns a result that says something to the effect of "hey, this didn't really work."
Find a testing framework that actually supports dynamic import() or find some kind of workaround with Jest.
import()
or find some kind of workaround with Jest.