tsickle-loader icon indicating copy to clipboard operation
tsickle-loader copied to clipboard

Handling declaration files?

Open pbadenski opened this issue 3 years ago • 0 comments

I had to monkeypatch the code to include declaration files:

var declarationFiles = _b.compilerConfig.fileNames.filter(f => f.endsWith(".d.ts"));
var files = [sourceFileName].concat(declarationFiles);
var program = typescript_1.default.createProgram(files, options, compilerHost);

Am I missing something or doing something wrong?

pbadenski avatar Oct 29 '20 08:10 pbadenski