File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,22 @@ public class TransformJsx : Task
30
30
[ Required ]
31
31
public string SourceDir { get ; set ; }
32
32
33
+ /// <summary>
34
+ /// A value indicating if es6 syntax should be rewritten.
35
+ /// </summary>
36
+ /// <returns><c>true</c> if support for es6 syntax should be rewritten.</returns>
37
+ public bool UseHarmony { get ; set ; }
38
+
33
39
/// <summary>
34
40
/// Executes the task.
35
41
/// </summary>
36
42
/// <returns><c>true</c> on success</returns>
37
43
public override bool Execute ( )
38
44
{
39
45
MSBuildHost . EnsureInitialized ( ) ;
46
+ var config = React . AssemblyRegistration . Container . Resolve < IReactSiteConfiguration > ( ) ;
47
+ config . UseHarmony = UseHarmony ;
48
+
40
49
_environment = React . AssemblyRegistration . Container . Resolve < IReactEnvironment > ( ) ;
41
50
42
51
Log . LogMessage ( "Starting TransformJsx" ) ;
You can’t perform that action at this time.
0 commit comments