On Tue, Apr 1, 2014 at 11:08 AM, Jacob Gable <[email protected]> wrote:

> ...
>
> Finally, my real question is, can I achieve a "shimming" system like
> requirejs (http://requirejs.org/docs/api.html#config-shim) has through
> the creation of a custom Loader?  It seems like the Instantiate method
> could be overridden to potentially achieve something like this?  It would
> evaluate the code, then export the window.jQuery value as the instantiated
> module?  Functionality like this would be ideal for us since we would then
> be able to only include the necessary vendor libraries on the page through
> imports instead of making sure all were on the page already (or making page
> specific vendor script builds).
>

IMO we should aim for having this feature in the standard Loader. Otherwise
we are just going to go through incompatible custom loaders to achieve real
work with es6 modules, defeating the very purpose of standardization.

jjb
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to