Guy Bedford (2013-06-08T19:49:04.000Z)
github at esdiscuss.org (2013-07-12T02:27:37.697Z)
Will it be possible to ensure that HTML imports can allow the specific ES6 loader to be specified (just as I asked about script tags in my previous post)? HTML imports using ES6 modules makes a lot of sense, because script tag duplication causes unnecessary script re-execution otherwise (imagine jquery being a `<script>` tag on many imports - if it is an imported module its code is executed only once). So the main issue I'm worried about is that there needs to be some way to indicate that a custom loader should be used all the way down the import tree. ```html <script> window['my-es6-loader'] = new Loader( ... ); </script> <link rel="import" loader="my-es6-loader" href="/imports/something.html"> ``` is not enough because imports within the imported document would then revert to the system loader. Not sure how this gets solved. In terms of the build tooling, these will now need to include the scope of both systems, but this seems rather inevitable at this point.