Add option to output .js files while preserving jsx

This commit adds the ability to preserve jsx in source code, but
also to output .js files rather than .jsx files. This is useful
for react-native which does not support .jsx files.
This commit is contained in:
David Sheldrick committed 2017-01-23 18:17:16 +01:00
1 parent 3cf326a8c4
commit dd0ed44b9a
9 files changed
+125 -13

No files matched your search

+2 -1
View File
@@ -67,10 +67,11 @@ namespace ts {
name: "jsx",
type: createMapFromTemplate({
"preserve": JsxEmit.Preserve,
"preservewithjsextension": JsxEmit.PreserveWithJsExtension,
"react": JsxEmit.React
}),
paramType: Diagnostics.KIND,
description: Diagnostics.Specify_JSX_code_generation_Colon_preserve_or_react,
description: Diagnostics.Specify_JSX_code_generation_Colon_preserve_preserveWithJsExtension_or_react,
},
{
name: "reactNamespace",