johnjbarton at google.com
Tue Apr 1 14:00:14 PDT 2014
On Tue, Apr 1, 2014 at 11:08 AM, Jacob Gable <jacob.gable at gmail.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss