That is currently valid syntax for a module that has no exports - ie, a module for which you're relying solely on side effects. One popular usage is `import 'es6-shim';` for example.
On Tue, Jan 26, 2016 at 12:31 PM, Paul Tyng <[email protected]> wrote: > I went through the archives and existing proposals, I didn't see one > similar to this. I apologize if its been covered before. I thought that > redundant import statements could be simplified with a shorthand that works > similar to object literal notation. > > import fs; > > vs > > import fs from 'fs'; > > https://github.com/paultyng/proposal-shorthand-import > > I would welcome any feedback. > > Thanks, > Paul Tyng > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

