express-ts-auth-service icon indicating copy to clipboard operation
express-ts-auth-service copied to clipboard

Modules Alias

Open TyCoding opened this issue 1 year ago • 1 comments

I would like to ask, how can I change the import statement from import * from ../../xxx to import * from @/xxx? I have tried various open-source tools but haven't been successful in configuring it.

TyCoding avatar Sep 04 '23 08:09 TyCoding

set path aliases in the tsconfig.json or jsconfig.json. and then you need a transformer to transform the import module paths

arshia-gh avatar Dec 05 '23 01:12 arshia-gh