Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

es6 modules #188

Open
jikkuatwork opened this issue Jun 16, 2024 · 0 comments
Open

es6 modules #188

jikkuatwork opened this issue Jun 16, 2024 · 0 comments

Comments

@jikkuatwork
Copy link

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: ƒ}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant