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?
To be clear, it works perfectly fine as long as I don't add TweenMax to the scripts property in .angular-cli.json. So there really is no problem to solve.
With that out of the way... I get the following error in the console of the page (not the terminal):
ERROR TypeError: gsap_1.TimelineMax is not a constructor
I import TimelineMax like so: import { TimelineMax, Power2 } from 'gsap'; in my component. I can also import TweenMax in the same fashion (if I needed to). Why would I