Jump to content
Search Community

GSAP CDN link for ESM development?

skiller test
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Hey there,
I'm developing a small, but media-heavy web application (a GSAP powered interactive game), and since I'm bound to tight restrictions regarding file size, I'm using Vite to 1.) write slick and modern module-based code (ESM, or ECMAScript Modules is the keyword here) and to 2.) tightly pack my code.
Naturally, I want to provide GSAP as an external dependency (did I mention tight file size restrictions?), but I can't find an ESM-suited CDN link for GSAP and the Premium modules (how I'll be able to use these premium modules without exposing my personal license is a wholly different enchilada).
Are there any? I have scoured the https://cdn.jsdelivr.net/npm/gsap@3.12.2/dist/ directory a little, but these all seem to be "normal" (i.e. require- instead of import-based) CommonJS libs.

 

Thanks in advance

C.

 

P.S.: I can't provide a CodePen illustrating the problem because referring to GSAP works differently there (via the require syntax).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...