We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f08dcc2 commit d11ff1eCopy full SHA for d11ff1e
lib/process.js
@@ -10,7 +10,7 @@ const compileCoffeeScript = require('./compilers/coffee-compiler')
10
const splitRE = /\r?\n/g
11
12
function processScript (scriptPart) {
13
- if (scriptPart.lang === 'typescript' || scriptPart.lang === 'ts') {
+ if (/^typescript|tsx?$/.test(scriptPart.lang)) {
14
return compileTypescript(scriptPart.content)
15
}
16
0 commit comments