TypeScript with following options:
const options = {
module: typescript.ModuleKind.CommonJS,
target: typescript.ScriptTarget.Latest,
suppressOutputPathCheck: false,
noEmitOnError: true,
esModuleInterop: true,
allowSyntheticDefaultImports: true,
};
typescript.createCompilerHost(options);
Feel free to leave a comment in this post if you want to change/extend/improve something.
Created at: 2020/04/25 09:21; Updated at: 2021/11/20 08:57