dont hardcode port

This commit is contained in:
Rich Harris
2018-03-10 10:01:42 -05:00
parent e8f3aff0da
commit c580259c07

View File

@@ -210,7 +210,7 @@ export default async function dev(port: number) {
deferreds.client.promise.then(() => { deferreds.client.promise.then(() => {
function restart() { function restart() {
ports.wait(3000).then(deferreds.server.fulfil); // TODO control port ports.wait(port).then(deferreds.server.fulfil);
} }
if (proc) { if (proc) {