Web Dev Solutions

Catalin Mititiuc

From 921351bfb69dbf95d134bd78266d71b0a00f9835 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 30 May 2024 18:35:45 -0700 Subject: Simplify jsdom import in server file --- esbuild-server.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'esbuild-server.mjs') diff --git a/esbuild-server.mjs b/esbuild-server.mjs index 13cca8b..51d953d 100644 --- a/esbuild-server.mjs +++ b/esbuild-server.mjs @@ -2,9 +2,8 @@ import * as esbuild from 'esbuild'; import * as fs from 'node:fs'; import http from 'node:http'; import path from 'node:path'; -import jsdom from 'jsdom'; +import { JSDOM } from 'jsdom'; -const { JSDOM } = jsdom; const __dirname = path.dirname(new URL(import.meta.url).pathname); const colors = { -- cgit v1.2.3