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 0a30042 commit 755186fCopy full SHA for 755186f
1 file changed
lib/utils.js
@@ -47,10 +47,10 @@ export const isAsyncFunction = function (fn) {
47
* @returns {Promise<any>} The imported module.
48
*/
49
export const importModule = async function (modulePath, options) {
50
- if (isWindows() && typeof modulePath === 'string' && path.isAbsolute(modulePath)) {
51
- return await import(pathToFileURL(modulePath).href)
+ if (typeof modulePath === 'string' && path.isAbsolute(modulePath)) {
+ return import(pathToFileURL(modulePath).href, options)
52
}
53
- return await import(modulePath)
+ return import(modulePath, options)
54
55
56
export const fileExists = function (filePath) {
0 commit comments