greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.85k stars 1.72k forks source link

Import TweenLite from npm gsap #164

Closed willdady closed 8 years ago

willdady commented 8 years ago

I can't figure out how to import TweenLite when using the npm installed version of gsap with Webpack. I get that the default import from gsap is TweenMax but ideally I would like to do the following:

import { TweenLite } from 'gsap';

However that doesn't work. Weirdly this works:

import { TimelineLite } from 'gsap';

All I'm wanting to achieve is to set TweenLite.defaultOverwrite. I'm otherwise only needing TimelineLite. I'm using 1.18.5.

jackdoyle commented 8 years ago

I bet if you upgrade to 1.19.0 (released yesterday), you'll be fine ;)

willdady commented 8 years ago

Ha! Confirmed import { TweenLite } from 'gsap'; now working. Thanks @jackdoyle :)