-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
[html] support 'import' in <script type=module> tags #29315
Comments
Adding a note to say that ideally VSCode would also autocomplete import specifiers in |
Seems like this issue is vastly ignored. |
This feature would fit greatly with HTML Modules proposal |
duplicate of #26338 |
Is this a duplicate of #26338? They feel quite different — this issue is about being able to reuse the logic around |
@Rich-Harris Not exactly the same, I agree. Both issues are about making HTML following references and configuring the typescript service with additional files. The challenge for both is that we likely need a project understanding as to where to find the files. |
As long as the import URL is relative ( If the import URL has a http[s] schema, then potentially fetch the file there. Isn't the only case that's hard to handle an absolute import URL ( |
Steps to Reproduce:
a.js:
index.html:
a(
, the type information is not picked up from the definition ofa()
ina.js
.Now that
import
is beginning to appear in browsers I think handling this would make senseThe text was updated successfully, but these errors were encountered: