diff --git a/lib/manager/npm/extract/type.ts b/lib/manager/npm/extract/type.ts index 941cff67233cc96ee66b61dc363df0f97b149087..bf0f4b64486ecbf063307977caa0724c9cf4e3b4 100644 --- a/lib/manager/npm/extract/type.ts +++ b/lib/manager/npm/extract/type.ts @@ -6,7 +6,7 @@ export function mightBeABrowserLibrary(packageJson: NpmPackage): boolean { // it's not published return false; } - if (packageJson.main === undefined) { + if (packageJson.main === undefined && packageJson.exports === undefined) { // it can't be required return false; }