Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

require_optional

christkv1.1mApache-2.01.0.1

Allows you declare optionalPeerDependencies that can be satisfied by the top level module but ignored if they are not.

optional, require, optionalPeerDependencies

readme

require_optional

Work around the problem that we do not have a optionalPeerDependencies concept in node.js making it a hassle to optionally include native modules

changelog

1.0.1 03-02-2016

  • Fix dependency resolution issue when a component in peerOptionalDependencies is installed at the level of the module declaring in peerOptionalDependencies.

1.0.0 03-02-2016

  • Initial release allowing us to optionally resolve dependencies in the package.json file under the peerOptionalDependencies tag.