From 004967af7dff9d7c1f87ef89d8bbafddf830afce Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 13 Aug 2023 15:45:35 -0300 Subject: infra: always use ./ style for dynamic import --- src/content/dependencies/index.js | 8 +++++--- 1 file 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; -- cgit 1.3.0-6-gf8a5