I want to access data from script tag in html file, produced by cms. Is it possible to do this without polluting global namespace? I\'ve tried to use es6 modules but I\'ve
You can't export JS from HTML. You can import it however, using the type="module" attribute on the tag:
type="module"