Skip to content

Commit

Permalink
fix(esm): windows env
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed May 11, 2022
1 parent 00dfb95 commit 9df6800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import localhost from './index.js';
import portfinder from 'portfinder';
import minimist from 'minimist';
import readline from 'readline';

const argv = minimist(process.argv.slice(2));

Expand All @@ -27,7 +28,7 @@ function listen(port) {
}

if (process.platform === 'win32') {
require('readline').createInterface({
readline.createInterface({
input: process.stdin,
output: process.stdout
}).on('SIGINT', () => {
Expand Down

0 comments on commit 9df6800

Please # to comment.