Eric Liu
Eric Liu
Note that `optimizeImports` is a Svelte preprocessor, so it runs at compile time (i.e., every time you update a source file). It might be worth first trying to explicitly instruct...
Thanks for digging into this and sharing your config. I hope `prebundleSvelteLibraries` can eventually replace the need for `optimizeImports`.
Commenting for posterity. `prebundleSvelteLibraries` is now enabled by default in the Svelte Vite plugin. This means that – for Vite/SvelteKit users – you do not necessarily need the `optimizeImports` preprocessor....
The solution (#4) is to keep track of keys that are currently pressed and reset `combo` when no keys are pressed down. Published to NPM in v0.3.1
@lukaszpolowczyk Can you submit a PR with your preferred solution?
@lukaszpolowczyk No problem – try installing 0.3.1 now from npm
So your expected behavior would be to preserve the `Shift` key but not `ArrowRight`/`ArrowLeft` after releasing?
Thanks for reporting, will take a pass at resolving these warnings.
I will commit to communicating breaking changes more explicitly.
My understanding is that `bind:group` is intended for inputs whereas svelte-toggle` uses a native `button` element: https://github.com/metonym/svelte-toggle/blob/97b294d70783f66d92e04ced55be91c2540c999c/src/Toggle.svelte#L66