onejs-react 0.1.17 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onejs-react",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "React 19 renderer for OneJS (Unity UI Toolkit)",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -36,6 +36,10 @@ const _imageCache = new Map<string, any>()
36
36
 
37
37
  function _resolveAssetPath(src: string): string {
38
38
  const Path = CS.System.IO.Path
39
+ // Absolute paths bypass asset resolution entirely
40
+ if (Path.IsPathRooted(src)) {
41
+ return src
42
+ }
39
43
  if (CS.UnityEngine.Application.isEditor) {
40
44
  const workingDir = typeof (globalThis as any).__workingDir === "string"
41
45
  ? (globalThis as any).__workingDir