TypeStrong / ts-loader

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

Overriding `skipLibCheck` compiler option does not work #1613

Closed haakonflatval-cognite closed 1 year ago

haakonflatval-cognite commented 1 year ago

Duplicates https://github.com/TypeStrong/ts-loader/issues/1247

Expected Behaviour

Compiler options specified in tsconfig.json (or options.compiler field in the Webpack config object) should override the defaults specified in ts-loader. In particular, the user should be able to set the skipLibCheck field to be false, although it is given the default value true in compilerSetup.ts.

Actual Behaviour

Setting skipLibCheck to false in either tsconfig.json or options in the Webpack config does not override the default value.

Steps to Reproduce the Problem

Location of a Minimal Repository that Demonstrates the Issue.

Can provide upon request

haakonflatval-cognite commented 1 year ago

@johnnyreilly Do you have time to address this?

johnnyreilly commented 1 year ago

Would you like to submit a PR and I'll take a look?

haakonflatval-cognite commented 1 year ago

@johnnyreilly Sure, I've submitted a PR now: https://github.com/TypeStrong/ts-loader/pull/1617

haakonflatval-cognite commented 1 year ago

Fixed in https://github.com/TypeStrong/ts-loader/pull/1617