Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

Support @* #40

Open
lihz6 opened this issue Sep 22, 2021 · 2 comments
Open

Support @* #40

lihz6 opened this issue Sep 22, 2021 · 2 comments

Comments

@lihz6
Copy link

lihz6 commented Sep 22, 2021

This config didn't works, but it should:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@*": ["./src/*"]
    }
  }
}
@risen228
Copy link
Owner

risen228 commented Sep 22, 2021

This config didn't works, but it should:

{

  "compilerOptions": {

    "baseUrl": ".",

    "paths": {

      "@*": ["./src/*"]

    }

  }

}
{
  "@/*": ["./src/*"]
}

@lihz6
Copy link
Author

lihz6 commented Sep 22, 2021

This config didn't works, but it should:

{

  "compilerOptions": {

    "baseUrl": ".",

    "paths": {

      "@*": ["./src/*"]

    }

  }

}
{
  "@/*": ["./src/*"]
}

The / in the middle might be a little unpleasant. And tsc is able to resolve @*.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants