Closed kraftwer1 closed 6 years ago
Current workaround:
commonjs: {
namedExports: {
"node_modules/gsap/TweenMax.js": ["TweenLite"]
}
}
Ah, it looks like your project was expecting ES modules. Good news: we're about to release 1.20.5 which will distribute as ES modules by default via NPM. You can preview the files here: https://greensock.com/temp/GSAP-ES6.zip (only a valid link for the next few weeks). Does that resolve things for you? (You should be able to just drop those files into your node_modules/gsap folder). Notice there's a "umd" directory too in case you still need that older format (I doubt you will).
1.20.5 is launched! Let us know if you run into any issues, but I'm pretty confident this will resolve your original one. Happy tweening!
@jackdoyle Fantastic, it works, great job!
I can't get "gsap" to work using Rollup.js.
Steps to reproduce:
This line causes the error (while working fine using Webpack):
Message: