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

build: add svelte-package #2407

Draft
wants to merge 1 commit into
base: feat/svelte-support
Choose a base branch
from

Conversation

Shyrro
Copy link
Collaborator

@Shyrro Shyrro commented Apr 17, 2024

Add svelte-package to bundle Svelte.

Svelte Package is currently the supported way for Svelte to bundle packages : https://kit.svelte.dev/docs/packaging#options

As there as many issues with exporting mjs/js files instead of Svelte files.

The bundle now looks something like this:

Capture d’écran 2024-04-17 à 15 12 12

Svelte Package did the necessary to export svelte files in ts with associated types next to it.

Main Caveat:

Don't have any way to ignore Stories and test files, so the easiest solution would be to put them on a separate folder or put the components inside a specific folder which we can then specify as an entry.

@Shyrro Shyrro requested a review from Omikorin April 17, 2024 13:15
Copy link

vercel bot commented Apr 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
ark-docs ❌ Failed (Inspect) Apr 17, 2024 1:15pm

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

Successfully merging this pull request may close these issues.

None yet

1 participant