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 028784b commit 6d5d4e5Copy full SHA for 6d5d4e5
1 file changed
rewrite.js
@@ -1,6 +1,7 @@
1
const fs = require("fs");
2
+const path = require("path");
3
4
fs.writeFileSync(
- "./node_modules/watchpack/lib/DirectoryWatcher.js",
5
- fs.readFileSync("./DirectoryWatcher.js"),
+ path.normalize(path.join(__dirname, "node_modules/watchpack/lib/DirectoryWatcher.js")),
6
+ fs.readFileSync(path.normalize(path.join(__dirname, "DirectoryWatcher.js"))),
7
);
0 commit comments