Skip to content

Commit d11ff1e

Browse files
blake-newmaneddyerburgh
authored andcommitted
feat(tsx): Add TSX support (#14)
Add tsx support
1 parent f08dcc2 commit d11ff1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const compileCoffeeScript = require('./compilers/coffee-compiler')
1010
const splitRE = /\r?\n/g
1111

1212
function processScript (scriptPart) {
13-
if (scriptPart.lang === 'typescript' || scriptPart.lang === 'ts') {
13+
if (/^typescript|tsx?$/.test(scriptPart.lang)) {
1414
return compileTypescript(scriptPart.content)
1515
}
1616

0 commit comments

Comments
 (0)