Import wildcards on the right side of the statement

Francisco Méndez Vilas fmvilas at gmail.com
Fri Apr 22 13:20:52 UTC 2016


Hi Caridy,

Thank you very much for your feedback. I will definitely go for the loader
option.

Cheers,
Francisco

El jue., 21 abr. 2016 a las 18:22, Caridy Patiño (<caridy at gmail.com>)
escribió:

> Hey Francisco
>
> There is nothing in the spec that prevent you from doing `import * from
> 'shared/features/**/reducers';`, the module identifier is just a literal.
> What to do with it is not described by 262.
>
> As for "from many", you can easily do that with a loader without having to
> introduce new grammar. The steps are simple, your loader will detect that
> module identifier (via hooks), as a result, it produces a new reflective
> module that is a composition of all the modules associated to the token in
> question.
>
> /caridy
>
> On Apr 21, 2016, at 5:36 AM, Francisco Méndez Vilas <fmvilas at gmail.com>
> wrote:
>
> import * from 'shared/features/**/reducers';
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160422/5e099bd6/attachment.html>


More information about the es-discuss mailing list