From 0dc3fecaf2011aa9a54ce8511145799c36392457 Mon Sep 17 00:00:00 2001 From: David Anson Date: Sun, 15 Dec 2024 23:13:37 -0800 Subject: [PATCH] wip --- markdownlint-cli2.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdownlint-cli2.mjs b/markdownlint-cli2.mjs index dd02ca2..6db8cbd 100755 --- a/markdownlint-cli2.mjs +++ b/markdownlint-cli2.mjs @@ -77,7 +77,7 @@ const importModule = async (dirOrDirs, id, noRequire) => { try { let moduleName = null; try { - moduleName = resolveModule(dynamicRequire, expandId, dirs); + moduleName = pathToFileURL(resolveModule(dynamicRequire, expandId, dirs)); } catch { moduleName = // eslint-disable-next-line n/no-unsupported-features/node-builtins