Closed plampila-teconer closed 3 years ago
Hey! Thanks for reporting this. I will try to get it resolved later today.
This should be fixed in 1.3.3
, if you're still running into problems let me know.
Works great. Thank you for the super fast response!
During a svelte-kit build there is a warning that I don't think was there before:
[vite-plugin-svelte] The following packages did not export their
package.json
file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.
You're welcome! The warning should be gone in 1.3.3
While package works fine with SvelteKit/Vite, it can't be imported as an ESM package with node.
If I understand correctly, there are three changes to make this work:
"type": "module"
to package.json, so that it's seen as an ESM package."exports": "./dist/index.js"
to package.json, to set what is being exported.My use case for this is handling a WebSocket connection outside the SvelteKit middleware using adapter-node.