Answer the question
In order to leave comments, you need to log in
How to make Babel and GSAP friends?
Found out that Babel does not transpile GSAP, leaving, for example, const in the code. How to make Tower of Babel grind GSAP bones?
Liba is connected like thisimport {TweenLite} from "gsap/TweenMax";
Answer the question
In order to leave comments, you need to log in
Generally it is better to use css animation or transition. And now it seems that new versions of browsers already support web animation api ..
Connect an already compiled version, very often developers put 2 versions in the package, modular and compiled. This is usually the dist folder
. If you have a restriction for babel not to touch the node_modules folder, then you can make an exception for certain
packages
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question