@@ -18,7 +18,7 @@ public interface IJsxTransformer
1818 /// Transforms a JSX file. Results of the JSX to JavaScript transformation are cached.
1919 /// </summary>
2020 /// <param name="filename">Name of the file to load</param>
21- /// <param name="useHarmony"><c>true</c> if support for es6 syntax should be rewritten. </param>
21+ /// <param name="useHarmony"><c>true</c> if support for ES6 syntax should be enabled </param>
2222 /// <returns>JavaScript</returns>
2323 string TransformJsxFile ( string filename , bool ? useHarmony = null ) ;
2424
@@ -27,16 +27,25 @@ public interface IJsxTransformer
2727 /// <see cref="TransformJsxFile"/> if loading from a file since this will cache the result.
2828 /// </summary>
2929 /// <param name="input">JSX</param>
30- /// <param name="useHarmony"><c>true</c> if support for es6 syntax should be rewritten. </param>
30+ /// <param name="useHarmony"><c>true</c> if support for ES6 syntax should be enabled </param>
3131 /// <returns>JavaScript</returns>
3232 string TransformJsx ( string input , bool ? useHarmony = null ) ;
33+
34+ /// <summary>
35+ /// Transforms JSX to regular JavaScript and also returns a source map to map the compiled
36+ /// source to the original version. The result is not cached.
37+ /// </summary>
38+ /// <param name="input">JSX</param>
39+ /// <param name="useHarmony"><c>true</c> if support for ES6 syntax should be enabled</param>
40+ /// <returns>JavaScript and source map</returns>
41+ JavaScriptWithSourceMap TransformJsxWithSourceMap ( string input , bool ? useHarmony ) ;
3342
3443 /// <summary>
3544 /// Transforms a JSX file to JavaScript, and saves the result into a ".generated.js" file
3645 /// alongside the original file.
3746 /// </summary>
3847 /// <param name="filename">Name of the file to load</param>
39- /// <param name="useHarmony"><c>true</c> if support for es6 syntax should be rewritten. </param>
48+ /// <param name="useHarmony"><c>true</c> if support for ES6 syntax should be enabled </param>
4049 /// <returns>File contents</returns>
4150 string TransformAndSaveJsxFile ( string filename , bool ? useHarmony = null ) ;
4251
0 commit comments