Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import PaintModule from "./somePaintModule.js";
- /**
- * if user wanted to code split they pass
- * const PaintModule = () => import("./somePaintModule.js")
- */
- CSS.paintWorklet.addModule(PaintModule)
- // Therefore the surface api operates the same in the users eyes
- // and gives code splitting first class support
Add Comment
Please, Sign In to add comment