Open edorivai opened 5 years ago
Can we revisit this? @janpaepke
ScrollMagic would be great if fully ESM compatible at this point, including it's animation.gsap.js
plugin. There's way too many work-arounds for this at this point.
👍
May I suggest too :
var construct = function () {
Hi All :wave:
I've been joining @janpaepke to take a look at the entire setup of this library, to see if we can modernize things and make sure the lib works with a variety of setups. It should work seemlessly with
<script src='...' />
,define(['scrollmagic'])
const scrollmagic = require('scrollmagic')
import scrollmagic from 'scrollmagic'
Work has started in the
rollup-integration
branch, but please bear with us as we work out all the kinks. For those interested, we're looking at using rollup for bundling.TODO:
//@include
s with esmimport
spackage.json
as much as possible - try usingnpm version
as much as possible instead of gulp versioning mechanismrollup-plugin-replace
if(__DEV__)
blocks, which should be removed by uglify for the production builds