TypeStrong / ts-loader

TypeScript loader for webpack
https://johnnyreilly.com/ts-loader-goes-webpack-5
MIT License
3.44k stars 429 forks source link

How to silent any error from ts-loader? #1648

Open aspirisen opened 3 months ago

aspirisen commented 3 months ago

Hi, how to ignore all errors from ts-loader. I am using ts-loader just as a ts transformer for https://typia.io/ I can't disable type check because type information is needed for typia. I perform type check with ForkTsCheckerWebpackPlugin so type errors logs from the loader are not needed. Also, nextjs just stops building on ts error at all, what is strange.

I tried silent: true and reportFiles: ['!**/*.{ts,tsx}'] and it didn't help.

Thanks.

johnnyreilly commented 3 months ago

Does transpileOnly help?

aspirisen commented 3 months ago

@johnnyreilly I can't disable type checker because typia needs it.

I have separate files *.typia.ts and ts-loader applied only to these files. I do not need type checking, transpilation etc. from ts-loader, only transform but with type information.