Y
Hacker News
new
|
ask
|
show
|
jobs
by
_jesse
1058 days ago
You can dynamically import using import():
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
. Works basically the same as a static import, just returns a promise that resolves with the module that you're importing.