I'm getting an error on the members-only DrawSVGPlugin when I deploy to Netlify.
I'm using Astro, which builds the site with Vite. Everything works fine on my local instance.
I've followed Greensock install instructions. Screenshot of my npmrc is attached.
I can see gsap and DrawSVGPlugin.js in /gsap in node_modules:
My script in Astro:
<script>
import { gsap } from "gsap";
import { DrawSVGPlugin } from "gsap/DrawSVGPlugin";
gsap.re
oddly enough I think things have changed ever so slightly you need to include the file extension .js as well as point to /dist/
import { gsap } from 'gsap'
import { DrawSVGPlugin } from 'gsap/dist/DrawSVGPlugin.js'
gsap.registerPlugin(DrawSVGPlugin)
Try this and see if it helps. It's what I'm doing in Vite/SvelteKit and seems to work. Also deployed to Netlify with .npmrc and env var, though I see you got that part working 🎉
Update: Just to confirm I had to retest. It does in