require of JSON returns empty object
Open
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.