The Wayback Machine - https://web.archive.org/web/20201023163124/https://github.com/angular/angular-cli/issues/18834
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove baseUrl in tsconfig.json #18834

Open
xiaoxiangmoe opened this issue Sep 21, 2020 · 0 comments
Open

Remove baseUrl in tsconfig.json #18834

xiaoxiangmoe opened this issue Sep 21, 2020 · 0 comments

Comments

@xiaoxiangmoe
Copy link

@xiaoxiangmoe xiaoxiangmoe commented Sep 21, 2020

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Description

https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/

paths without baseUrl
Using path-mapping is fairly common – often it’s to have nicer imports, often it’s to simulate monorepo linking behavior.

Unfortunately, specifying paths to enable path-mapping required also specifying an option called baseUrl, which allows bare specifier paths to be reached relative to the baseUrl too. This also often caused poor paths to be used by auto-imports.

In TypeScript 4.1, the paths option can be used without baseUrl. This helps avoid some of these issues.

We can remove baseUrl in tsconfig now!

@ngbot ngbot bot added this to the Backlog milestone Sep 21, 2020
@alan-agius4 alan-agius4 marked this as a duplicate of #7964 Oct 22, 2020
@alan-agius4 alan-agius4 marked this as not a duplicate of #7964 Oct 22, 2020
@alan-agius4 alan-agius4 reopened this Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.