currently uses webpack in conjunction with typescript to develop a class library.
but there is a problem. When referencing the method in the packaged js file of ts in the outer html, there will be a problem that this function does not exist. I looked at the reason: there should be a scope problem after webpack packaging. Is there any way to solve this problem?