Support require('filename.json') so more node modules work

I have seen some node modules using require to load json files
Enonic require fails because it tries to load filename.json/index.js
Which makes it impossible to use a bunch of node modules, perhaps that is something Enonic require should support to?


Good suggestion. We are adding it to the backlog.

1 Like