Closed jedireza closed 9 years ago
See: https://github.com/jedireza/hapi-react-views/blob/master/index.js#L37-L42
We may be able to simply remove the current required module by key (constant time vs looping over everything). An added benefit would be that we wouldn't need to worry about the file extension used and could remove the regex check also.
require
See: https://github.com/jedireza/hapi-react-views/blob/master/index.js#L37-L42
We may be able to simply remove the current
require
d module by key (constant time vs looping over everything). An added benefit would be that we wouldn't need to worry about the file extension used and could remove the regex check also.