UNPKG

@lonelyplanet/dotcom-core

Version:

This package is meant to house some of our more common UI and shared libs across dotcom applications.

17 lines (15 loc) 319 B
const tsc = require('typescript'); const tsConfig = require('./tsconfig.json'); module.exports = { process(src, path) { if (path.endsWith('.ts') || path.endsWith('.tsx')) { return tsc.transpile( src, tsConfig.compilerOptions, path, [] ); } return src; }, };