Skip to content

A local-first personal finance app

Replace require with import (#133)

Jed Foxfa42c2202ef9
diff --git a/src/app.js b/src/app.js
index 42eb56ecdc..a354895a1e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -58,7 +58,7 @@ export default async function run() {
await syncApp.init();
if (config.https) {
- const https = require('https');
+ const https = await import('node:https');
const httpsOptions = {
...config.https,
key: parseHTTPSConfig(config.https.key),