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 fecbbfb commit 140ef89Copy full SHA for 140ef89
Plugins/UnrealJS/Source/V8/Private/JavascriptContext_Private.cpp
@@ -1313,11 +1313,14 @@ class FJavascriptContextImplementation : public FJavascriptContext
1313
#endif
1314
if (!(required_module[0] == '.' && inner2(current_script_path)))
1315
{
1316
- for (const auto& path : Self->Paths)
+ if (!inner2(current_script_path / TEXT("node_modules")))
1317
1318
- if (inner2(path)) break;
+ for (const auto& path : Self->Paths)
1319
+ {
1320
+ if (inner2(path)) break;
1321
- if (inner2(path / TEXT("node_modules"))) break;
1322
+ if (inner2(path / TEXT("node_modules"))) break;
1323
+ }
1324
}
1325
1326
0 commit comments