SPARK-48: Publish Stacks-Svelte by mukunku · Pull Request #1991 · StackExchange/Stacks

and others added 13 commits

September 16, 2025 10:39
in this commit I have done the following:
- ensure that the correct typescript config is picked up by the svelte config (and consequentially vite)
- ensure that svelte-sonnet does not get prebundled by esbuild (this was causing issues for the tests)
- Keep peer dependencies for stacks svelte marked (we cannot put * because that would indicate that consumers can install any svelte or stacks classic version which is not the case)
- Adjust stacks svelte web test runner config to point at the css bundle generated in stacks classic and also ensure that a fresh build of stacks classic is run before running the tests (I also removed the reference to stacks.js because we don't depend on that in stacks-svelte)
- IMPORTANT: Ensure that storybook point at our stacks.less bundle in the preview.ts file. This has the benefit that whatever styles we change in stacks classic it will be hot reloaded in storybook (this is pretty much the whole point why we switch to monorepo - make a change in stacks classic and see it reflected in stacks svelte in a matter of milliseconds - pretty cool :) )
- There are 2 unit tests failing for the Select component - I have not looked too much into it because the component need to be migrated to use the new Svelte 5 runes API. Before spending too much time trying to debug the tests I would rather go ahead and migrate it. It should be rather simple.

@mukunku

mukunku

@mukunku

@mukunku

@mukunku

mukunku

@mukunku

@mukunku

@mukunku mukunku marked this pull request as ready for review

October 3, 2025 19:11

mukunku

@mukunku

@mukunku

dancormier