Skip to content

Commit 3be30b1

Browse files
author
Joel Denning
committed
Fix Windows bug.
1 parent 49ed76b commit 3be30b1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/node-loader-core.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import path from "path";
2+
import url from "url";
23

34
let configPromise;
45

5-
const configPath = path.join(
6-
process.cwd(),
7-
process.env.NODE_LOADER_CONFIG || "node-loader.config.js"
6+
const configPath = url.pathToFileURL(
7+
path.join(
8+
process.cwd(),
9+
process.env.NODE_LOADER_CONFIG || "node-loader.config.js"
10+
)
811
);
912

1013
let loadingConfig = false;

0 commit comments

Comments
 (0)