This repository was archived by the owner on Aug 20, 2018. It is now read-only.
This repository was archived by the owner on Aug 20, 2018. It is now read-only.
[v0.5.5] : JSON Object gets exported with default key (harmony export
) #54
Closed
Description
Example :
sample.json
{
"key1": "value1",
"key2": "value2"
}
Usage
let data = require('./sample.json');
console.log(data);
With json-loader 0.5.4
{
"key1": "value1",
"key2": "value2"
}
With json-loader 0.5.5 : It is adding a wrapper object with key : 'default'.
{
"default": {
"key1": "value1",
"key2": "value2"
}
}
With this existing code is breaking.
FYI : Using https://github.com/AngularClass/angular-starter