« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/index.js')
-rw-r--r--src/content/dependencies/index.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js
index 4f7c524..3c9ad32 100644
--- a/src/content/dependencies/index.js
+++ b/src/content/dependencies/index.js
@@ -163,9 +163,11 @@ export function watchContentDependencies({
         const module =
           await import(
             cachebust(
-              '.' +
-              path.sep +
-              path.relative(metaDirname, filePath)));
+              './' +
+              path
+                .relative(metaDirname, filePath)
+                .split(path.sep)
+                .join('/')));
         spec = module.default;
       } catch (caughtError) {
         error = caughtError;