File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,17 @@ namespace Uno.WebAssembly.Bootstrap {
102
102
preRun : ( ) => bootstrapper . wasmRuntimePreRun ( ) ,
103
103
} )
104
104
. withRuntimeOptions ( config . config . uno_runtime_options )
105
- . withConfig ( { loadAllSatelliteResources : config . config . uno_loadAllSatelliteResources } ) ;
105
+
106
+ if ( config . config . uno_loadAllSatelliteResources ) {
107
+ m . dotnet
108
+ . withConfig ( { loadAllSatelliteResources : config . config . uno_loadAllSatelliteResources } ) ;
109
+ }
110
+
111
+ var features = config . config . environmentVariables [ 'UNO_BOOTSTRAP_MONO_RUNTIME_FEATURES' ] ;
112
+ if ( features && features . includes ( 'threads' ) ) {
113
+ m . dotnet
114
+ . withConfig ( { jsThreadBlockingMode : "DangerousAllowBlockingWait" } ) ;
115
+ }
106
116
107
117
const dotnetRuntime = await m . default (
108
118
( context : DotnetPublicAPI ) => {
You can’t perform that action at this time.
0 commit comments