WICG / import-maps

How to control the behavior of JavaScript imports
https://html.spec.whatwg.org/multipage/webappapis.html#import-maps
Other
2.68k stars 69 forks source link

Consider dual support for std: and @std/ #162

Closed hiroshige-g closed 5 years ago

hiroshige-g commented 5 years ago

As https://github.com/tc39/proposal-javascript-standard-library/issues/12 is still open, it would be helpful to consider how to support @std/ specifiers in the spec.

Once the issue is resolved, then we can either

depending on the conclusion there.

domenic commented 5 years ago

Oh, sorry, I think you misinterpreted what I meant in our meeting. There is nobody in the standards space considering @std/ at this point, just different URL schemes (like lib:).

Ultimately I think we should not treat this as a spec issue (or an MVP issue), and instead just a potential compat issue for Chrome if the import maps spec needs to change from std: to lib: or similar in the future.

ljharb commented 5 years ago

I don't think that's accurate; TC39 hasn't yet ruled out namespaces, nor has node.

domenic commented 5 years ago

I think we have different interpretations of different conversations. For the import maps spec purpose, I am content saying we do not need to complicate the specification with support for @std/.

ljharb commented 5 years ago

I was responding to "There is nobody in the standards space", which is inaccurate; I think you're making the right choice by not complicating import maps at this time.