You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
To me, import on the browser looks like a http request followed by evaluation of the code.
But with http requests (like on the fetch function), you can add extra data: authentication, a body, etc. See documentation on the fetch function
I don't see that specified here, so I guess it doesn't exist in this proposal. But is there a reason why it doesn't exist?
Adding a body would be handy f.e. to specify a version of a module. Adding authentication would make it easier to keep your code private. Basically just the same reasons fetch supports request options.