@lrnwebcomponents/deduping-fix

8.0.2 • Public • Published

Deduping fix

This is a utility that helps fix a core issue with "the platform" in that if two things try to call window.customElements.define('tag-name',ClassName) and reference the same tag-name, it is a hard bricking issue. This problem can pop up in local development for a number of reasons (or timing with legacy platforms and dynamically imported assets) and so this little utility helps rewrite this global function to perform it's same function, but issue a warning if already defined as opposed to outright failing.

Readme

Keywords

Package Sidebar

Install

npm i @lrnwebcomponents/deduping-fix

Weekly Downloads

114

Version

8.0.2

License

Apache-2.0

Unpacked Size

16.5 kB

Total Files

5

Last publish

Collaborators

  • heymp
  • btopro
  • nikkimk
  • cgldevel