webpack-contrib / json-loader

json loader module for webpack - UNMAINTAINED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable ES2015 syntax

call-a3 opened this issue · comments

Add a flag/option to use the new export syntax added in ES2015 instead of module.exports.
Tools like babel used for post-processing might not be configured to recognize both module.exports/require and export/import.

This is a low priority issue, though should be (I think) easy to add.

I'll try to update all loaders when webpack 2 is stable...

#15 has the fix for this. It will be released around the webpack v2 stable release.

Since webpack >= v2.0.0 has build-in support for JSON now, this is issue obsolete