Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Commit b3008b5

Browse files
committed
Fix module loading path
1 parent c8eeaf9 commit b3008b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/com.mkmarek.uielements.react/Runtime/JsRuntime/ModuleLoader.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,9 @@ record = CreateModule(reference, _predefinedModules[moduleName]);
8787
return JavaScriptErrorCode.NoError;
8888
}
8989

90-
moduleName = moduleName.Replace("./", "");
9190
var modulePath = string.IsNullOrWhiteSpace(parentPath)
9291
? moduleName
93-
: $"{Path.Combine(Path.GetDirectoryName(parentPath), moduleName)}";
92+
: Path.GetFullPath($"{Path.Combine(Path.GetDirectoryName(parentPath), moduleName)}");
9493

9594
modulePath = RemovePathToResources(modulePath);
9695

0 commit comments

Comments
 (0)