redis-weighted-pool
Version:
Simple weighted round robin implementation using Redis list and sorted set
13 lines (11 loc) • 336 B
JavaScript
// Copyright 2004-present Facebook. All Rights Reserved.
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;
},
};