craco-alias icon indicating copy to clipboard operation
craco-alias copied to clipboard

Support `@*`

Open lihz6 opened this issue 2 years ago • 2 comments

This config didn't works, but it should:

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

lihz6 avatar Sep 22 '21 09:09 lihz6

This config didn't works, but it should:


{

  "compilerOptions": {

    "baseUrl": ".",

    "paths": {

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

    }

  }

}

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

risen228 avatar Sep 22 '21 09:09 risen228

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 @*.

lihz6 avatar Sep 22 '21 10:09 lihz6