From 8ff7f4696c201a0db9a27c3b883870c5ac883abf Mon Sep 17 00:00:00 2001 From: Yuki Hattori Date: Sun, 30 Jun 2019 00:23:30 +0900 Subject: [PATCH] Revert excessive posix join in `getPath()` (#19) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8d8baad..c21cdf3 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join( const getPath = (filepath, cwd) => { const pth = filepath[0] === '!' ? filepath.slice(1) : filepath; - return path.isAbsolute(pth) ? pth : path.posix.join(cwd, pth); + return path.isAbsolute(pth) ? pth : path.join(cwd, pth); }; const addExtensions = (file, extensions) => {