From 225102ae56df6ae9b92a1301a8f9ef26495cbcf7 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 20 Jul 2023 21:24:25 +0200 Subject: [PATCH] fix: drop double posix --- lib/support/compile-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/support/compile-config.js b/lib/support/compile-config.js index 61a51ea..25b41a7 100644 --- a/lib/support/compile-config.js +++ b/lib/support/compile-config.js @@ -156,7 +156,7 @@ function computeRuleImport(resolver, pkg, rule) { if (rule.startsWith('.')) { const pkgDir = path.dirname(resolver.require.resolve(pkg)); - return path.posix.normalize(`${ pkgDir }/${ rule }`); + return path.normalize(`${ pkgDir }/${ rule }`); } // absolute reference