Closed
Description
Duplicates #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
- In a Webpack+ts-loader project, use a dependency which will create an error if the Lib Check is not skipped. One example of such a dependency is
@cognite/[email protected]
(note the exact patch version). - Make sure
skipLibCheck
isfalse
intsconfig.json
. - Compile. If the lib check was performed, the build should fail, complaining about some missing type. With current behavior, build succeeds.
- Modify
node_modules/ts-loader/dist/compilerSetup.js
so thatskipLibCheck
isfalse
. Compile again - The build fails, as expected
Location of a Minimal Repository that Demonstrates the Issue.
Can provide upon request
Metadata
Metadata
Assignees
Labels
No labels