Skip to content

Commit 426f1ff

Browse files
committed
DRY
1 parent 56d4d44 commit 426f1ff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export const isAsyncFunction = function (fn) {
4848
*/
4949
export const importModule = async function (modulePath, options) {
5050
if (isWindows() && typeof modulePath === 'string' && path.isAbsolute(modulePath)) {
51-
return import(pathToFileURL(modulePath).href, options)
51+
return await import(pathToFileURL(modulePath).href)
5252
}
53-
return import(modulePath, options)
53+
return await import(modulePath)
5454
}
5555

5656
export const fileExists = function (filePath) {

0 commit comments

Comments
 (0)