whatwg / loader

Loader Standard
https://whatwg.github.io/loader/
Creative Commons Zero v1.0 Universal
607 stars 45 forks source link

Per module-script tree information #148

Closed Constellation closed 8 years ago

Constellation commented 8 years ago

Looking through whatwg module spec and I think that the module-script assumes per-module-script-tree information. For example, nonce is propagated through the module script tree fetching.

However, in the current loader spec, it seems that BrowserLoader's @@fetch hook just takes the entry and the key. So the above information seems discarded through the pipeline. Is there any discussion to solve this?

Maybe, I misunderstand something. Please point it.

Personally, the easiest way to solve this issue is, instantiate BrowserLoader per script tag. OR, passing metadata info throught the pipeline is one choise.

caridy commented 8 years ago

metadata was discussed here: https://github.com/whatwg/loader/issues/37, is that enough?

Constellation commented 8 years ago

Looks nice. We need to discuss it in #37.