I'm trying to move most of my stuff from Webpack to Vite, I'm proficient in neither of them but. I've been having lots of problems, and have been unable to find a solution; I'm not able to register nor import ScrollSmoother — or any Club Greensock plugin. I've been back and forth between this forum, Vite's docs, forums, and the consensus is not many people are experiencing problems as it seems to affect mainly the paid plugins. I just created a new project as I found some thread mentioning that it worked for Vite 3 and up. Nothing.
I know this seems to be a Vite problem, but somewhere I also read there being a namespace problem that needed to be fixed for GSAP. I'm just tired of not finding anything, so is there any workaround to make GSAP and the Club Greensock plugins in Vite?