diff --git a/lib/Config.js b/lib/Config.js index 4be5d58..b00fec8 100644 --- a/lib/Config.js +++ b/lib/Config.js @@ -23,14 +23,6 @@ class Config { if (!this.directory) { throw new Error('directory not given'); } if (this.filter && typeof this.filter !== 'function') { throw new Error('filter must be a function'); } - if ('string' === typeof this.tsConfig) { - debug('preparsing the ts config into an object for performance'); - const ts = require('typescript'); - const tsParsedConfig = ts.readJsonConfigFile(this.tsConfig, ts.sys.readFile); - const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(this.tsConfig)); - this.tsConfig = obj.raw; - } - debug('given filename: ' + this.filename); this.filename = path.resolve(process.cwd(), this.filename);