We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab0b9ad commit e269233Copy full SHA for e269233
src/build/start.ts
@@ -1,7 +1,7 @@
1
import path from "node:path";
2
import fs from "node:fs/promises";
3
import { buildSpessaSynth } from "./build_script.ts";
4
-import { fileURLToPath } from "node:url";
+import { fileURLToPath, pathToFileURL } from "node:url";
5
6
// Don't use meta.dirname: https://github.com/spessasus/SpessaSynth
7
const REPO_ROOT = path.resolve(
@@ -27,4 +27,4 @@ if (!(await fileExists(SERVER_FILE))) {
27
28
console.info("🖥️ Starting server...");
29
// Execute!
30
-await import(SERVER_FILE);
+await import(pathToFileURL(SERVER_FILE).toString());
0 commit comments