DEV Community

Discussion on: The power of dynamic imports

Collapse
 
rikschennink profile image
Rik Schennink • Edited

Nice! I’ve build Conditioner.js to handle the conditional loading part (based on import / require / etc).

You define a context in which you want the module to load and Conditioner loads and unloads it at the right time.

github.com/rikschennink/conditioner