renderer: add HMR

This commit is contained in:
Matthias Schiffer 2020-02-22 21:27:32 +01:00
parent 9eed5c04ff
commit bfdecdbd3c
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
declare namespace NodeJS {
interface Module {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
hot: any;
}
}
declare module '*.vs' {
const content: string;
export default content;

View file

@ -23,3 +23,5 @@ window.onload = async (): Promise<void> => {
GameContext.load(renderer);
};
module.hot?.accept();