Files
blockly3d/webclient/src/blockly/registrar.ts
T
2026-06-13 15:29:55 +03:00

13 lines
371 B
TypeScript

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