@@ -57,38 +57,11 @@ public string CreateWasmTemplateProject(string id, string template = "wasmbrowse
5757 if ( runAnalyzers )
5858 extraProperties += "<RunAnalyzers>true</RunAnalyzers>" ;
5959
60- if ( template == "wasmconsole" )
61- {
62- UpdateRuntimeconfigTemplateForNode ( _projectDir ) ;
63- }
64-
6560 AddItemsPropertiesToProject ( projectfile , extraProperties ) ;
6661
6762 return projectfile ;
6863 }
6964
70- private static void UpdateRuntimeconfigTemplateForNode ( string projectDir )
71- {
72- // TODO: Can be removed once Node >= 20
73-
74- string runtimeconfigTemplatePath = Path . Combine ( projectDir , "runtimeconfig.template.json" ) ;
75- string runtimeconfigTemplateContent = File . ReadAllText ( runtimeconfigTemplatePath ) ;
76- var runtimeconfigTemplate = JsonObject . Parse ( runtimeconfigTemplateContent ) ;
77- if ( runtimeconfigTemplate == null )
78- throw new Exception ( $ "Unable to parse runtimeconfigtemplate at '{ runtimeconfigTemplatePath } '") ;
79-
80- var perHostConfigs = runtimeconfigTemplate ? [ "wasmHostProperties" ] ? [ "perHostConfig" ] ? . AsArray ( ) ;
81- if ( perHostConfigs == null || perHostConfigs . Count == 0 || perHostConfigs [ 0 ] == null )
82- throw new Exception ( $ "Unable to find perHostConfig in runtimeconfigtemplate at '{ runtimeconfigTemplatePath } '") ;
83-
84- perHostConfigs [ 0 ] ! [ "host-args" ] = new JsonArray (
85- "--experimental-wasm-simd" ,
86- "--experimental-wasm-eh"
87- ) ;
88-
89- File . WriteAllText ( runtimeconfigTemplatePath , runtimeconfigTemplate ! . ToString ( ) ) ;
90- }
91-
9265 public ( string projectDir , string buildOutput ) BuildTemplateProject ( BuildArgs buildArgs ,
9366 string id ,
9467 BuildProjectOptions buildProjectOptions )
0 commit comments