UNPKG

@octopusx/ndk

Version:

octopus x sdk to connect to the octopusx grids and services

12 lines (10 loc) 300 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; } };