caridy (2015-02-26T08:29:08.000Z)
Glen, better to ask this question on https://github.com/whatwg/loader/issues/new <https://github.com/whatwg/loader/issues/new>, we will be happy to provide more details since this has nothing to do with ES2015 specifications.

/caridy

> On Feb 26, 2015, at 3:24 AM, Glen Huang <curvedmark at gmail.com> wrote:
> 
> In nodejs you can require a json file directly to get its value: `var value = require(“./package.json”)`.
> 
> Is there an equivalent construct in es2015? Or developers have to turn it into a module before it can be imported?
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150226/7adbd502/attachment.html>
d at domenic.me (2015-03-06T01:04:47.558Z)
Glen, better to ask this question on https://github.com/whatwg/loader/issues/new, we will be happy to provide more details since this has nothing to do with ES2015 specifications.