Skip to content

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

@dborstelmann

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 }
]

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