Skip to content

[Bug] Paths seems to be required but not sure why #146

Description

@dborstelmann

I don't use paths in my project, just baseUrl like so:

{
  "extends": "../../tsconfig.packages.json",
  "compilerOptions": {
    "rootDir": "src",
    "outDir": "dist",
    "baseUrl": "./src"
  }
}

I have to add a blank paths to make this work. Is this avoidable?

Doesn't work:

"plugins": [
  { "transform": "typescript-transform-paths", "useRootDirs": true },
  { "transform": "typescript-transform-paths", "useRootDirs": true, "afterDeclarations": true }
]

Works great:

"paths": {
  "*": ["*"]
},
"plugins": [
  { "transform": "typescript-transform-paths", "useRootDirs": true },
  { "transform": "typescript-transform-paths", "useRootDirs": true, "afterDeclarations": true }
]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions