How to use Moralis with Svelte (Rollup support)


Is there any support or guides of how to make the project work with Rollup?

I’m currently using Svelte (which uses Rollup) for my front end needs and I don’t know how to correctly set it up.

Right now it’s throwing undefined errors:

Uncaught ReferenceError: require$$10 is not defined
    <anonymous> http://localhost:8080/build/bundle.js:67165

How to reproduce

npx degit sveltejs/template svelte-typescript-app
cd svelte-typescript-app
node scripts/setupTypeScript.js
npm install && npm install --save moralis

and then call the moralis api anywhere inside a svelte component.

Thank you!