-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Support distribution of precompiled components #5455
Comments
I'd like to propose the addition of a This way we have:
and sapper takes care of the client and server modules. |
Just to be clear: Then sapper does: With the package.json being: "svelte": "dist/dom/index.js",
"svelte:ssr": "dist/ssr/index.js", |
svelte:ssr
to package.json for ssr compiled modules.
See #604 for some discussion of the reason it's currently done this way |
This is a big change and far-reaching, and, from the way part of it's being worded, sounds like a breaking one. This should be opened as an RFC. |
This is mostly in regards to component libraries, particularly svelte-materialify. If I have to use my library with sapper, then I have to go through the hassle of installing all my dependencies such as svelte-preprocess, sass, postcss (see advanced install).
If someone who wants to use svelte-materialify with sapper he has to install all the dependencies and use the source files, it heavily impacts the development speed (compiling each component repeatedly). The current website of svelte materialify is made with sapper and a single reload takes about 15-30 seconds.
I propose that we add a
svelte:ssr
field in the package.json similar tosvelte
where the files compiled usinggenerate: 'ssr'
are located. This is a massive improvement to component authors and users who do not have to go through much hassle to setup their project.The text was updated successfully, but these errors were encountered: