Skip to content

Commit ef77ff0

Browse files
committed
Disabled MultiThreading on WASM
1 parent 3132391 commit ef77ff0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ProjectHeads/App.Head.Wasm.props

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<WasmShellMonoRuntimeExecutionMode Condition="Exists('aot.profile')">InterpreterAndAOT</WasmShellMonoRuntimeExecutionMode>
2121

2222
<!-- MultiThreading: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-threading.html -->
23-
<WasmShellEnableThreads>true</WasmShellEnableThreads>
24-
<WasmShellPThreadsPoolSize>8</WasmShellPThreadsPoolSize>
23+
<WasmShellEnableThreads>false</WasmShellEnableThreads>
24+
<WasmShellPThreadsPoolSize Condition="'$(WasmShellEnableThreads)' == 'true'">8</WasmShellPThreadsPoolSize>
2525

26-
<!-- MultiThreading SharedArrayBuffer: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-additional-files.html -->
27-
<WasmShellIndexHtmlPath>$(MSBuildProjectDirectory)\wwwroot\index.html</WasmShellIndexHtmlPath>
26+
<!-- MultiThreading SharedArrayBuffer workaround: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-additional-files.html -->
27+
<WasmShellIndexHtmlPath Condition="'$(WasmShellEnableThreads)' == 'true'">$(MSBuildProjectDirectory)\wwwroot\index.html</WasmShellIndexHtmlPath>
2828

2929
<!-- Pre-compression: https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-pre-compression.html -->
3030
<WasmShellCompressionLayoutMode>InPlace</WasmShellCompressionLayoutMode>

0 commit comments

Comments
 (0)