Modularizing JavaScript Custom Elements Best Practices for Importing and Reusing Components
I am having hard time to move all things related to custom element into separate file to be imported and reused Here is simple custom element pccoverflowswiper