The registerBlock utility allows for exporting an array of styles, which are each registered as block styles and unregistered on hot module updates (code here).
It would be good to expose a similar interface for block variations, which calls registerBlockVariation in the registerBlock function and unregisterBlockVariation in the unregisterBlock method.
The
registerBlockutility allows for exporting an array of styles, which are each registered as block styles and unregistered on hot module updates (code here).It would be good to expose a similar interface for block variations, which calls
registerBlockVariationin theregisterBlockfunction andunregisterBlockVariationin theunregisterBlockmethod.