Skip to content

Commit 7459c87

Browse files
committed
a few changes for vite dev server
1 parent 5733792 commit 7459c87

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Editor/Helpers/ReactUnityTextAssetsImporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99

1010
namespace ReactUnity.Editor
1111
{
12-
[ScriptedImporter(3, new string[] {
12+
[ScriptedImporter(4, new string[] {
1313
"css",
14+
"mjs",
1415
#if UNITY_2021_2 || UNITY_2021_3 || UNITY_2021_4 || UNITY_2022_2_OR_NEWER
1516
"js",
1617
#endif

Runtime/Scripting/DomProxies/Document.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ public object onerror
333333
get => new Action(() => onerrorCallback.Call());
334334
}
335335

336+
public object relList = new {
337+
supports = new Func<object, Boolean>((object val) => true),
338+
};
336339

337340
public LinkProxy(DocumentProxy document)
338341
{

0 commit comments

Comments
 (0)