fix: accept hot updates and destroy entity list
This commit is contained in:
parent
5078c064f0
commit
596ab4385b
|
@ -56,7 +56,11 @@ const appNode = document.querySelector('.app');
|
|||
appNode.appendChild(renderer.element);
|
||||
|
||||
if (module.hot) {
|
||||
module.hot.accept((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
module.hot.dispose(() => {
|
||||
entityList.destroy();
|
||||
appNode.removeChild(renderer.element);
|
||||
stage.destroy();
|
||||
renderer.destroy();
|
||||
|
|
Loading…
Reference in New Issue
Block a user