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

Modules Alias #22

Open
TyCoding opened this issue Sep 4, 2023 · 1 comment
Open

Modules Alias #22

TyCoding opened this issue Sep 4, 2023 · 1 comment

Comments

@TyCoding
Copy link

TyCoding commented Sep 4, 2023

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.

@arshia-gh
Copy link

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

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

No branches or pull requests

2 participants