import * as barrel from './index'; import { registerBarrel } from './toolbox'; registerBarrel(barrel as Record); if (import.meta.hot) { import.meta.hot.accept('./index', (newBarrel) => { if (newBarrel) registerBarrel(newBarrel as Record); window.dispatchEvent(new CustomEvent('blockly-hmr')); }); }