From 7eb3279e0cfdd705ebbba9ee9623ed988daf3c79 Mon Sep 17 00:00:00 2001 From: HJD Date: Tue, 11 Apr 2023 14:03:06 -0500 Subject: [PATCH] Shift to ESM-based loading for the webUI. --- homebridge-ui/server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homebridge-ui/server.js b/homebridge-ui/server.js index 593886c..9f46e00 100644 --- a/homebridge-ui/server.js +++ b/homebridge-ui/server.js @@ -4,8 +4,8 @@ /* eslint-disable new-cap */ 'use strict'; -const { HomebridgePluginUiServer } = require('@homebridge/plugin-ui-utils'); -const fs = require('fs'); +import { HomebridgePluginUiServer } from "@homebridge/plugin-ui-utils"; +import * as fs from "node:fs"; class PluginUiServer extends HomebridgePluginUiServer { constructor () {