bahmutov / bahmutov/node-hook

require of JSON returns empty object

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
66
Forks
7
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.