svelte-lexical
svelte-lexical copied to clipboard
Make toolbar state updater configurable
Toolbar is configurable in the sense that we can choose which commands to include. The state updater (StateStoreRichTextUpdator.svelte) for the toolbar is not. It tracks and updates all the state stores irrespective of the commands being included in the toolbar.
This is a concern from tree-shaking point of view and can lead to extra code being bundled.