-const http = require('node:http'),
- path = require('node:path'),
- { env } = require('node:process'),
- finalhandler = require('finalhandler'),
- serveStatic = require('serve-static');
+import { createServer } from 'node:http'
+import { dirname, join } from 'node:path'
+import { env } from 'node:process'
+import { fileURLToPath } from 'node:url'
+import finalhandler from 'finalhandler'
+import serveStatic from 'serve-static'