refactor: hmr

This commit is contained in:
cha0s 2023-12-08 05:32:35 -06:00
parent 6249effb69
commit a72a650e60

View File

@ -7,7 +7,7 @@ export {default as fullEntity} from './full-entity';
export const hooks = { export const hooks = {
'@avocado/resource.resources': Flecks.provide(require.context('./resources', false, /\.js$/)), '@avocado/resource.resources': Flecks.provide(require.context('./resources', false, /\.js$/)),
'@flecks/core.hmr.gathered': (Class, hook) => { '@flecks/core.hmr.gathered.class': (Class, hook) => {
if ('@avocado/traits.traits' === hook) { if ('@avocado/traits.traits' === hook) {
const {type} = Class; const {type} = Class;
const it = hotEntities.values(); const it = hotEntities.values();