Make client more ESM-friendly (#2348)

* Use node: prefix for stdlib imports

* Make code more ESM-friendly

* Add missing mjs file

* Drop mjs file from package.json
This commit is contained in:
Josh Mock
2024-08-22 11:18:31 -05:00
committed by GitHub
parent 715292b501
commit bf4c57f7bc
13 changed files with 44 additions and 38 deletions

View File

@ -18,7 +18,7 @@
*/
import Debug from 'debug'
import * as http from 'http'
import * as http from 'node:http'
import buildServer, { ServerHandler } from './buildServer'
import { StoppableServer } from 'stoppable'