node-optional
node-optional copied to clipboard
NodeJS module to let you optionally include modules (instead of 'require')
Results
2
node-optional issues
Sort by
recently updated
recently updated
newest added
Sometimes if an optional module `optModule` is installed in one of the sub-packages instead of in `projectRoot/node_modules`, then it won't be found by `optional('optModule')`.
If I'm in `/home/kflorence/dev/project/foo/bar` and I require: `optional("../baz/qux")` it will fail because it's trying to look up `/home/kflorence/dev/project/baz/qux` instead of `/home/kflorence/dev/project/foo/baz/qux`