Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only catch error if provider module itself does not exist
Fixes DevExpress#4522 and DevExpress#4673. First uses `require.resolve`, which will only throw an error if the provider module itself doesn't exist. If it does exist, we then use `require` to load the module, not catching errors. That way, any errors caused by a 3rd party dependency will show up.
- Loading branch information