Re: [w3c/webcomponents] HTML Modules: multiple scripts exporting same named export (#831)

Thanks for the clarification. Would this clarification be useful in the spec itself? Or does the pseudocode in the docs make it clear for those more familiar than me with `export *` and es module linking?

For the SystemJS polyfill, I don't think we'll be able to be 100% spec compliant with this, since our module linking passes the entire module to the dependent module, without knowing which of its exports are being used or not (cc @guybedford who might be able to clarify).

But we can detect when the same thing is exported twice by two different modules, and can throw when that happens. So the SystemJS polyfill would end up a bit stricter than the spec -- it would always throw even if you aren't importing that specific export.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/831#issuecomment-526395657

Received on Thursday, 29 August 2019 23:16:19 UTC