UNPKG

typed-catch-of-the-day

Version:

typescript version of wes bos' catch of the day app

18 lines (17 loc) 352 B
const tsc = require('typescript'); module.exports = { process(src, path) { if (path.endsWith('.ts') || path.endsWith('.tsx')) { return tsc.transpile( src, { module: tsc.ModuleKind.CommonJS, jsx: tsc.JsxEmit.React }, path, [] ); } return src; } };