-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
default export from svelte-kit package #1856
Comments
There's nothing wrong with your export code, it's still a vite problem that can't properly handle it, #1148 patches it by forcing packages with #1735 would solve this as it will preserve the original |
@ignatiusmb Thanks, that was helpful! Which vite issue is the one that tracks correctly handling (Svelte?) exports? |
How do I create a
default
export in asvelte-kit package
? Would be cool if the docs included some guidance on that. If I add an index file that re-exports a Svelte component asdefault
,and then install the package and try
I get
The easiest solution to this in the past was to use the
"svelte"
field inpackage.json
butsveltekit package
does not copy that field into its output.I asked this question here as well.
The text was updated successfully, but these errors were encountered: