I'm using Greensock in an Angular app. The standard GSAP components I can all import normally through NPM. I've also gotten the Business Green plugins to work by dumping them into the GSAP folder in my node_modules and doing something like this:
import CustomWiggle from 'gsap/CustomWiggle';
I would very much like a cleaner solution than copying files into node_modules by hand. What would be the best way to import these files into my project?
I guess the best solution for now is to tell people to import plugins without a name. Since everything gets added to the GreenSockGlobals object, which is probably the window, you should still be able to call the plugin by name.
import "gsap/MorphSVGPlugin";
// Should work as it's global
MorphSVGPlugin.convertToPath("circle");