Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-30 18:35:45 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-30 18:35:45 -0700
commit921351bfb69dbf95d134bd78266d71b0a00f9835 (patch)
treef51b3f4e201fe163511b525b29ecfde502ec8e74
parentb65cad124cf5d0f358c1fa3f0cdb176f0f9e78e5 (diff)
Simplify jsdom import in server file
-rw-r--r--esbuild-server.mjs3
1 files changed, 1 insertions, 2 deletions
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 = {