Issue details
Executing browser-sync with Yarn 2 PnP gives the following error:
browser-sync tried to access chalk, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Steps to reproduce/test case
Use browser-sync with Yarn 2
Checked in package.json file and indeed chalk is only defined as a devDependency however, because it is used in the public API, which is exposed to dependent packages it should be a dependency instead.