Skip to content

Add trace method to servicesHost #691

@onigoetz

Description

@onigoetz

Expected Behaviour

Adding "traceResolution": true, to tsconfig.json should display logs of how imported modules are resolved. It's very useful for debugging.

Actual Behaviour

Setting traceResolution to true makes no difference in the output. The cause is that the declared ServicesHost doesn't provide a trace method.

Can we add a method that will output those informations ?

Normal output is like:

Module 'http' was resolved as locally declared ambient module in file '/home/sgoetz/workspace/foundation/ts-project/server-war/src/main/frontend/node_modules/@types/node/index.d.ts'.

Steps to Reproduce the Problem

Add "traceResolution": true, to your compilerOptions in tsconfig.json and see that nothing is different in your build.

Location of a Minimal Repository that Demonstrates the Issue.

I don't have one, but it works on any project using ts-loader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions