We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56d4d44 commit 426f1ffCopy full SHA for 426f1ff
1 file changed
lib/utils.js
@@ -48,9 +48,9 @@ export const isAsyncFunction = function (fn) {
48
*/
49
export const importModule = async function (modulePath, options) {
50
if (isWindows() && typeof modulePath === 'string' && path.isAbsolute(modulePath)) {
51
- return import(pathToFileURL(modulePath).href, options)
+ return await import(pathToFileURL(modulePath).href)
52
}
53
- return import(modulePath, options)
+ return await import(modulePath)
54
55
56
export const fileExists = function (filePath) {
0 commit comments