Guest User

Untitled

a guest
Jul 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. async function start() {
  2. const files = ['./foo.js'];
  3. const s = await import(files[0]);
  4. console.log(new s.default());
  5. }
  6.  
  7. ...
  8. import(/* webpackChunkName: "mychunk" */ files[0])
  9. ...
  10.  
  11. import("module/foo").then(foo => console.log(foo.default))
Add Comment
Please, Sign In to add comment