Skip to content

Commit

Permalink
Make skipLibCheck overridable (#1617)
Browse files Browse the repository at this point in the history
* Make skipLibCheck overridable

* Bump to version 9.4.4

* Add changelog entry
  • Loading branch information
haakonflatval-cognite authored Jun 28, 2023
1 parent 6f7380b commit d13d9c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 9.4.4
* [Bug fix: let users override skipLibCheck](https://github.com/TypeStrong/ts-loader/pull/1617) - thanks @haakonflatval-cognite

## 9.4.3
* [Bug fix: add config file as build dependency](https://github.com/TypeStrong/ts-loader/pull/1611) - thanks @alexander-akait

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ts-loader",
"version": "9.4.3",
"version": "9.4.4",
"description": "TypeScript loader for webpack",
"main": "index.js",
"types": "dist",
Expand Down
13 changes: 9 additions & 4 deletions src/compilerSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ export function getCompilerOptions(
configParseResult: typescript.ParsedCommandLine,
compiler: typeof typescript
) {
const compilerOptions = Object.assign({}, configParseResult.options, {
skipLibCheck: true,
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
} as typescript.CompilerOptions);
const defaultOptions = { skipLibCheck: true };

const compilerOptions = Object.assign(
defaultOptions,
configParseResult.options,
{
suppressOutputPathCheck: true, // This is why: https://github.com/Microsoft/TypeScript/issues/7363
} as typescript.CompilerOptions
);

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

0 comments on commit d13d9c3

Please sign in to comment.