require inside it.
require is not defined everytime try to use the script via CDN.
Using public directory
So I copy the content from CDN and put it as static file inside public directory.
Then in the related file, we just load it as we normally load in HTML file.
Sample usage: how to load highlightjs for syntax code highlighting in Astro