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 b6ed3a3 commit bf2dfd7Copy full SHA for bf2dfd7
index.js
@@ -194,14 +194,14 @@ async function load() {
194
loadStart = 0;
195
}
196
197
-async function unloadModule(moduleName) {
198
- let nodeModule = require.cache[moduleName];
+async function unloadModule(modulePath) {
+ let nodeModule = require.cache[modulePath];
199
if (nodeModule) {
200
if (nodeModule.children.length) await chillout.forEach(nodeModule.children, async (child) => {
201
if (child.filename) unloadModule(child.filename);
202
});
203
204
- delete require.cache[moduleName];
+ delete require.cache[modulePath];
205
206
207
async function unload() {
0 commit comments