I have a vite react application in which i have installed canvasJs charts, but when I try to built the folder it breaks saying require is not defined. I checked the logs its when we do npm run build, the charts imports have require instead of import. This is limiting me from using this pakage in my app. how can i resolve this ?