From 4fbdc8115d3d8daacd6a3cdd9a423f7b6a2f6f4d Mon Sep 17 00:00:00 2001 From: Blake Newman Date: Fri, 20 Oct 2017 18:09:38 +0100 Subject: [PATCH] Feature: Add TSX support Add tsx support --- lib/process.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/process.js b/lib/process.js index 71ed8212..2754a98e 100644 --- a/lib/process.js +++ b/lib/process.js @@ -10,7 +10,7 @@ const compileCoffeeScript = require('./compilers/coffee-compiler') const splitRE = /\r?\n/g function processScript (scriptPart) { - if (scriptPart.lang === 'typescript' || scriptPart.lang === 'ts') { + if (/^typescript|tsx?$/.test(scriptPart.lang)) { return compileTypescript(scriptPart.content) }