Skip to content

CompilerOptions.skipLibCheck in tsconfig.json doesn't work in ts-loader #1247

Closed
@hiyuki

Description

@hiyuki

Expected Behaviour

CompilerOptions.skipLibCheck works normally as tsc does when it has been setted.

Actual Behaviour

CompilerOptions.skipLibCheck will be merged by true in ts-loader dist/compilerSetup.js(47:0) and no way to change this behavior, which is different from tsc's default behavior.

I think CompilerOptions.skipLibCheck:true could be a default behavior but not a forceful behavior, like this:

// from
const compilerOptions = Object.assign({}, configParseResult.options, {
    skipLibCheck: true,
    suppressOutputPathCheck: true,
});
// to
const compilerOptions = Object.assign({
    skipLibCheck: true,
    suppressOutputPathCheck: true,
}, configParseResult.options);

Steps to Reproduce the Problem

Location of a Minimal Repository that Demonstrates the Issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions