@lrnwebcomponents/es-global-bridge

v2.1.1
A very simple class to help bridge global scoped code with ES Modules
web-components esm compatibility html

ES Global bridge

This project helps bridge legacy, non-ESM code with modern ESM code. It generates a Promise for adding a script tag to the page. Then when it's resolved (loaded) it generates an event that can be listened for to make sure that the global classes in that file resolve correctly.

npm i @lrnwebcomponents/[email protected]

Metadata

Downloads