tengbao / vanta

Animated 3D backgrounds for your website
http://vantajs.com/
MIT License
5.54k stars 1.02k forks source link

es6 modules #188

Open jikkuatwork opened 5 months ago

jikkuatwork commented 5 months ago

Is it possible to use this library via es6 modules? I tried to import from jsdeliver and it simply didn't work. All I got when I imported was a constructor. Tried debugging with ChatGPT but it looks like the library was expecting to register an effect and didn't contain the effects like NET.

For instance the import added an object to window called VANTA but it looks like this:


{version: '0.5.24', register: ƒ, VantaBase: ƒ}