feat: hmr logic for the backend

This commit is contained in:
Ivan Shmidt
2020-06-11 02:51:06 +02:00
parent 0331d33a37
commit a1a60ad9d1
16 changed files with 131 additions and 28 deletions
+1 -1
View File
@@ -10,6 +10,6 @@
"module": "commonjs",
"esModuleInterop": true,
"lib": ["es2019"],
"types": ["node", "jest"]
"types": ["node", "jest", "webpack-env"]
}
}
@@ -54,7 +54,7 @@ export async function startStandaloneServer(
higherOrderOperation,
logger,
});
const service = createServiceBuilder()
const service = createServiceBuilder(module)
.enableCors({ origin: 'http://localhost:3000' })
.addRouter('/catalog', router);
return await service.start().catch(err => {
@@ -62,3 +62,5 @@ export async function startStandaloneServer(
process.exit(1);
});
}
module.hot?.accept();
+1 -1
View File
@@ -10,6 +10,6 @@
"module": "commonjs",
"esModuleInterop": true,
"lib": ["es2019"],
"types": ["node", "jest"]
"types": ["node", "jest", "webpack-env"]
}
}
+1 -1
View File
@@ -10,6 +10,6 @@
"module": "commonjs",
"esModuleInterop": true,
"lib": ["es2019"],
"types": ["node", "jest"]
"types": ["node", "jest", "webpack-env"]
}
}
+1 -1
View File
@@ -10,6 +10,6 @@
"module": "commonjs",
"esModuleInterop": true,
"lib": ["es2019"],
"types": ["node", "jest"]
"types": ["node", "jest", "webpack-env"]
}
}