-
Notifications
You must be signed in to change notification settings - Fork 7
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
also in Script, or just Module? #3
Comments
Good question. I think there is an interesting overlap with import maps. Particularly “import:” URLs or something like it. The larger story around how URLs will work in the larger web platform can be informative of how it could work in scripts. |
if this syntax works in a way that requires IO/async ops to perform resolution before starting code evaluation I don't think this would work for Scripts since they are expected for run synchronously. |
I would assume the synchronous form is not available in Scripts, but the asynchronous one should work, just like |
@ljharb is this mostly about consistency? If the location operations are not timed specifically we can still produce the reference synchronously. |
Yes, I think a lack of consistency will be confusing, including in terms of thinking about the phases in ESM. |
Can you explain how these values are directly tied in part to the phases of ESM? |
With static forms, i expect that all imports are fully resolved and valid before any actual code evaluates. |
import()
works in both Scripts and Modules. Shouldasset
work in Scripts, for the same reasons?The text was updated successfully, but these errors were encountered: