How to require external libraries in a component helper file?

You can use the approach I use in GitHub - merefield/discourse-tc-tag-cloud: A Discourse Theme Component that displays a tag cloud above the tag lists on the tags page

Note the assets are registered here:

And sit in the assets folder.

4 Likes