-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Is it true that you can use a jsconfig.json
?
#8782
Comments
This feature comes from Vite, it is even used on some of their examples, so it should just work. Astro doesn't do anything special regarding that. Might be worth looking into whether something we set implicitly disables this. |
Thanks Fyuni! @Princesseuh - would you be able to confirm here whether there might be anything we do that makes As with all Feedback Fish reports, it's a single user so a very specific problem with an individual project is always a possibility! But I'm also not sure how many people are actually using |
It is true, it should work, however I would never recommend it. Since it's so rare, we don't test it often (I think we do have a test for it in the core repo, not sure), nor does any of our dependencies (we do a fair amount of tsconfig things ourselves, using the same library that Vite uses) |
OK, sounds like we should maybe just remove the suggestion and stick to the standard? Our Unless anyone screams loudly in protest, I'll remove mention of also being able to use |
GOOD FIRST ISSUE TASK: Find everywhere in the docs that There is no need to mention that "this used to be allowed/recommended", nor any need to mention that it can be used but is not recommended. All changes should pretend |
📚 Subject area/topic
import aliases
📋 Page(s) affected (or suggested, for new content)
https://docs.astro.build/en/guides/aliases/
📋 Description of content that is out-of-date or incorrect
From feedback fish:
I tried setting up import aliases with a jsconfig.json file, per the docs. And this seemed to be ignored. I switched over to a tsconfig.json file, and everything worked as expected. Does this page need to be updated or is this a bug?
🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)
No response
The text was updated successfully, but these errors were encountered: