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 <[email protected]> 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
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to