Commit 2cd63845 authored by Joel Einbinder's avatar Joel Einbinder Committed by Commit Bot

DevTools: Highlight tsx files

Bug: 832175
Change-Id: I8723a8d5e92d1439760ae6a40b0cb444aad00531
Reviewed-on: https://chromium-review.googlesource.com/1014253Reviewed-by: default avatarAndrey Lushnikov <lushnikov@chromium.org>
Commit-Queue: Joel Einbinder <einbinder@chromium.org>
Cr-Commit-Position: refs/heads/master@{#551160}
parent 760ef910
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
"className": "CmModes.DefaultCodeMirrorMimeMode", "className": "CmModes.DefaultCodeMirrorMimeMode",
"fileName": "jsx.js", "fileName": "jsx.js",
"mimeTypes": [ "mimeTypes": [
"text/jsx" "text/jsx",
"text/typescript-jsx"
] ]
}, },
{ {
......
...@@ -274,7 +274,7 @@ Common.ResourceType._mimeTypeByExtension = new Map([ ...@@ -274,7 +274,7 @@ Common.ResourceType._mimeTypeByExtension = new Map([
['dart', 'text/javascript'], ['dart', 'text/javascript'],
// TypeScript // TypeScript
['ts', 'text/typescript'], ['tsx', 'text/typescript'], ['ts', 'text/typescript'], ['tsx', 'text/typescript-jsx'],
// JSON // JSON
['json', 'application/json'], ['gyp', 'application/json'], ['gypi', 'application/json'], ['json', 'application/json'], ['gyp', 'application/json'], ['gypi', 'application/json'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment