svelte-lexical icon indicating copy to clipboard operation
svelte-lexical copied to clipboard

Make toolbar state updater configurable

Open umaranis opened this issue 2 years ago • 0 comments

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.

umaranis avatar Apr 01 '23 03:04 umaranis