Created
March 10, 2018 21:09
-
-
Save TheLarkInn/6f74d916ab3ab03f35ea25d0e96e35ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This does not seem to work. Is there a better way to load modules without creating new entypoints, and hardcoding their paths?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this planned for webpack?