Guest User

Untitled

a guest
Mar 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import PaintModule from "./somePaintModule.js";
  2.  
  3. /**
  4. * if user wanted to code split they pass
  5. * const PaintModule = () => import("./somePaintModule.js")
  6. */
  7.  
  8.  
  9. CSS.paintWorklet.addModule(PaintModule)
  10. // Therefore the surface api operates the same in the users eyes
  11. // and gives code splitting first class support
Add Comment
Please, Sign In to add comment