Skip to content

Commit

Permalink
Scope down import: URLs
Browse files Browse the repository at this point in the history
This closes #75 by acknowledging that we won't be able to solve that problem.

import: URLs become less primary to the formulation of the spec; it is no longer about controlling import: URL resolution, with module specifier resolution being a natural extension of that, but instead is about changing module specifier resolution, with import: URLs as an additional feature that builds on module specifier resolution.

import: URLs no longer involve URL parser changes, as #75 explains how making URL parsing sensitive to the active script conflicts badly with URLs' nature as string-serializable things which can be passed around. Instead, we retreat to a position of import: URL fetches being relative to the request's referrer, i.e. using the request's referrer to resolve ./ specifiers or determine which scopes apply. This will hopefully work better.

We also note in the proto-spec explicitly our plans to first spec without fallback between fetch schemes.
  • Loading branch information
domenic committed Nov 28, 2018
1 parent e4dd5e3 commit 20104f1
Show file tree
Hide file tree
Showing 2 changed files with 145 additions and 203 deletions.
Loading

0 comments on commit 20104f1

Please sign in to comment.