Skip to content

Commit d13d9c3

Browse files
authoredJun 28, 2023
Make skipLibCheck overridable (#1617)
* Make skipLibCheck overridable * Bump to version 9.4.4 * Add changelog entry
1 parent 6f7380b commit d13d9c3

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 9.4.4
4+
* [Bug fix: let users override skipLibCheck](https://github.com/TypeStrong/ts-loader/pull/1617) - thanks @haakonflatval-cognite
5+
36
## 9.4.3
47
* [Bug fix: add config file as build dependency](https://github.com/TypeStrong/ts-loader/pull/1611) - thanks @alexander-akait
58

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ts-loader",
3-
"version": "9.4.3",
3+
"version": "9.4.4",
44
"description": "TypeScript loader for webpack",
55
"main": "index.js",
66
"types": "dist",

‎src/compilerSetup.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,15 @@ export function getCompilerOptions(
5555
configParseResult: typescript.ParsedCommandLine,
5656
compiler: typeof typescript
5757
) {
58-
const compilerOptions = Object.assign({}, configParseResult.options, {
59-
skipLibCheck: true,
60-
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
61-
} as typescript.CompilerOptions);
58+
const defaultOptions = { skipLibCheck: true };
59+
60+
const compilerOptions = Object.assign(
61+
defaultOptions,
62+
configParseResult.options,
63+
{
64+
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
65+
} as typescript.CompilerOptions
66+
);
6267

6368
// if `module` is not specified and not using ES6+ target, default to CJS module output
6469
if (

0 commit comments

Comments
 (0)
Please sign in to comment.