diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-13 15:45:35 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-13 15:45:35 -0300 |
commit | 004967af7dff9d7c1f87ef89d8bbafddf830afce (patch) | |
tree | 001d9018b44970c1fae51207b6dfdc600d4db827 /src | |
parent | e587d189f76cb537628bed0f3cde08625032ee16 (diff) |
infra: always use ./ style for dynamic import
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/index.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/content/dependencies/index.js b/src/content/dependencies/index.js index 4f7c5244..3c9ad328 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; |