So for anyone running across the same problem as i had (my sight was much clearer after lunch), this is the solution:
Follow the instructions as written in the docs
that is, download the zip, place the gsap-bonus.tgz file in your project root, install it with:
npm install ./gsap-bonus.tgz
and in your frontend:
import { gsap } from "gsap";
import { PixiPlugin } from "gsap/PixiPlugin.js";
(or whatever plugin you're in need of).
so this will include the plugins and gsap in your bundle. if you want to use the gsap from the cdn instead, you need to include it first in a script tag:
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.6/gsap.min.js"></script>
and in your webpack-config:
module.exports = {
...
externals: {
gsap: 'gsap',
},
...
}
this will tell webpack not to include gsap in your bundle as it will be served from outside.
????☄️? gsapaliciouuuus