Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chore] dev mode refactor #3138

Merged
merged 15 commits into from
Dec 31, 2021
Prev Previous commit
Next Next commit
more simplifying
  • Loading branch information
Rich-Harris committed Dec 30, 2021
commit ce0f01f65f452319ca6a6958c43bb158cfcb9dc1
9 changes: 1 addition & 8 deletions packages/kit/src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,17 +93,10 @@ prog
try {
const watcher = await dev({ port, host, https, config });

watcher.on('stdout', (data) => {
process.stdout.write(data);
});

watcher.on('stderr', (data) => {
process.stderr.write(data);
});

if (!watcher.vite || !watcher.vite.httpServer) {
throw Error('Could not find server');
}

// we never start the server on a socket path, so address will be of type AddressInfo
const address_info = /** @type {import('net').AddressInfo} */ (
watcher.vite.httpServer.address()
Expand Down
Loading