"import *"
# Erik Arvidsson (11 years ago)
import * as m from './file.js'
Imports module instance object. It only creates one binding, m in the example above.
import * as m from './file.js' Imports module instance object. It only creates one binding, m in the example above. On Mon, Sep 22, 2014 at 9:31 PM, John Lenz <concavelenz at gmail.com> wrote: > As per http://www.2ality.com/2014/09/es6-modules-final.html > <http://www.google.com/url?q=http%3A%2F%2Fwww.2ality.com%2F2014%2F09%2Fes6-modules-final.html&sa=D&sntz=1&usg=AFQjCNHrAwyLFF0tL0Lfh38xylgEjmgB2g>, > "import *" is back (but not in the spec) but I didn't see any discussion > about mitigating the problem of new exports breaking down stream consumers > (shadowing globals or creating duplicate definitions for module local > definitions). > > Is the post accurate? Were these issues debated? > > _______________________________________________ > es-discuss mailing list > es-discuss at mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > > -- erik -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140922/28d0b484/attachment-0001.html>
# John Lenz (11 years ago)
ah, thanks. That makes more sense.
ah, thanks. That makes more sense. On Mon, Sep 22, 2014 at 6:37 PM, Erik Arvidsson <erik.arvidsson at gmail.com> wrote: > import * as m from './file.js' > > Imports module instance object. It only creates one binding, m in the > example above. > > On Mon, Sep 22, 2014 at 9:31 PM, John Lenz <concavelenz at gmail.com> wrote: > >> As per http://www.2ality.com/2014/09/es6-modules-final.html >> <http://www.google.com/url?q=http%3A%2F%2Fwww.2ality.com%2F2014%2F09%2Fes6-modules-final.html&sa=D&sntz=1&usg=AFQjCNHrAwyLFF0tL0Lfh38xylgEjmgB2g>, >> "import *" is back (but not in the spec) but I didn't see any discussion >> about mitigating the problem of new exports breaking down stream consumers >> (shadowing globals or creating duplicate definitions for module local >> definitions). >> >> Is the post accurate? Were these issues debated? >> >> _______________________________________________ >> es-discuss mailing list >> es-discuss at mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >> >> > > > -- > erik > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140922/62c6d9d1/attachment.html>
As per www.2ality.com/2014/09/es6-modules-final.html, www.google.com/url?q=http%3A%2F%2Fwww.2ality.com%2F2014%2F09%2Fes6-modules-final.html&sa=D&sntz=1&usg=AFQjCNHrAwyLFF0tL0Lfh38xylgEjmgB2g, "import *" is back (but not in the spec) but I didn't see any discussion about mitigating the problem of new exports breaking down stream consumers (shadowing globals or creating duplicate definitions for module local definitions).
Is the post accurate? Were these issues debated?