Re: [heycam/webidl] Declaring modules in WebIDL (#592)

Some notes on how it might make sense to specify modules in WebIDL:
- Modules can be created in JavaScript with this mechanism that @domenic proposed: https://github.com/tc39/proposal-javascript-standard-library/pull/44
- I think it'd make sense to have WebIDL initialize the module map, given that import-maps' current draft specification is based on modifying the "resolve a module specifier" algorithm, see https://wicg.github.io/import-maps/#resolving .
- We may need a separate entry-point into HTML; right now, we rely on being called when a new global object is created, but we'd also want to be called separately when a new module map is created (and given the realm as a parameter).

Any concerns with this outline?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/592#issuecomment-468972111

Received on Saturday, 2 March 2019 23:57:20 UTC