Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for optional dependencies #788

Merged
merged 1 commit into from
Feb 12, 2018
Merged

Add support for optional dependencies #788

merged 1 commit into from
Feb 12, 2018

Conversation

devongovett
Copy link
Member

Put a require call inside a try…catch block, and it becomes optional. If that dependency cannot be resolved, it will throw a runtime error instead of a build time one. Fixes #210.

Put a `require` call inside a try…catch block, and it becomes optional. If that dependency cannot be resolved, it will throw a runtime error instead of a build time one.
Copy link
Contributor

@brandon93s brandon93s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼

@devongovett devongovett merged commit 47f252b into master Feb 12, 2018
@devongovett devongovett deleted the optional-deps branch February 12, 2018 01:57
devongovett added a commit that referenced this pull request Oct 15, 2018
Put a `require` call inside a try…catch block, and it becomes optional. If that dependency cannot be resolved, it will throw a runtime error instead of a build time one.
devongovett added a commit that referenced this pull request Oct 15, 2018
Put a `require` call inside a try…catch block, and it becomes optional. If that dependency cannot be resolved, it will throw a runtime error instead of a build time one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: Support Optional Requires
2 participants