Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async function start() {
- const files = ['./foo.js'];
- const s = await import(files[0]);
- console.log(new s.default());
- }
- ...
- import(/* webpackChunkName: "mychunk" */ files[0])
- ...
- import("module/foo").then(foo => console.log(foo.default))
Add Comment
Please, Sign In to add comment