Open kaedroho opened 2 years ago
The JS library is bundled in the Python package and included on the page as part of the {{ media }} declaration, if I'm not mistaken.
Oh, I see! I'm just building it into a React project so I've added the telepath-unpack
library directly to our frontend, I assume this isn't a supported use case at the moment? (happy to help make it supported)
It's semi-supported, in the sense of "you can do this, but you'll have to figure out the details based on the reference docs". A how-to page on that subject would be welcome!
I guess a typical non-Django-served app will have all the relevant .js files containing the telepath definitions as part of a fixed webpack bundle (assuming it doesn't need to be extensible in the way the Wagtail admin is), so it won't make use of the mechanism where Django passes a media declaration.
The tutorial seems to assume that you already have the JS library installed since it references
window.telepath
but it doesn't provide any instructions on how to use the package on the frontend.