Skip to content
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
@sasidhar

Description

@sasidhar

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions