It al has to do with what your (Angular) project is using or not. When simply importing specific imports from gsap the bundler includes only that specific objects & its dependencies. The plugin registration (in the way it is currently set up) and the initialisation of gsap is skipped.
That can be simply changed: Import the plugins you need & the gsap object. For Angular somewhere in the top op your main.ts file.
import { EaselPlugin, gsap } from "gsap/all";
gsap.registerPlugin(EaselPlugin);