Closed NfNitLoop closed 2 years ago
How do I use third-party Svelte components with Snel?
For example, I'd love to use https://www.npmjs.com/package/svelte-spa-router/
In npm-based Svelte, I'd just npm install --save that dependency, and then I could import it by name. I tried importing it via esm.sh and others but they don't seem to be able to make a module out of its Router.svelte file.
npm install --save
Router.svelte
see https://github.com/crewdevio/Snel/discussions/25 and https://github.com/crewdevio/Snel/discussions/27
How do I use third-party Svelte components with Snel?
For example, I'd love to use https://www.npmjs.com/package/svelte-spa-router/
In npm-based Svelte, I'd just
npm install --save
that dependency, and then I could import it by name. I tried importing it via esm.sh and others but they don't seem to be able to make a module out of itsRouter.svelte
file.