Skip to content

require of JSON returns empty object #7

@zbysekmartoch

Description

@zbysekmartoch

On the line 73 is called _compile() and it results into empty object when the content of required module is JSON. I changed my code and assign result of JSON.parse() directly to exports, if extension is '.json'. I'm not sure if it is correct fix and maybe it brings other issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions