Skip to content

Commit c99536b

Browse files
committed
Disable pooling in MSBuild as it's not really needed there
1 parent a036b92 commit c99536b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/React.MSBuild/TransformJsx.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ public override bool Execute()
4949
{
5050
MSBuildHost.EnsureInitialized();
5151
var config = React.AssemblyRegistration.Container.Resolve<IReactSiteConfiguration>();
52-
config.UseHarmony = UseHarmony;
53-
config.StripTypes = StripTypes;
52+
config
53+
.SetReuseJavaScriptEngines(false)
54+
.SetUseHarmony(UseHarmony)
55+
.SetStripTypes(StripTypes);
5456

5557
_environment = React.AssemblyRegistration.Container.Resolve<IReactEnvironment>();
5658

0 commit comments

Comments
 (0)