Skip to content

User defined path shortcuts defined in tsconfig.json are not resolved in transpiled code #180

Open
@mstn

Description

@mstn

Hi there!

I am using shortcut paths in my tsconfig.json file. For example:

{
  "compilerOptions": {
    ...
    "paths": {
      "@app/*": ["./src/*"],
    }
  }
}

Paths are not expanded/resolved in transpiled code. This is a known feature/bug of Typescript microsoft/TypeScript#26722

There are a few workarounds as discussed in the issue above. One suggestion is to resolve the problem at the level of the output bundler (e.g. webpack and, in our case, this plugin).

I was just wondering if this plugin could resolve shortcuts before/after transpiling the code.

thanks

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