Skip to content
Snippets Groups Projects
Unverified Commit a20fa18b authored by Diego Rodríguez Baquero's avatar Diego Rodríguez Baquero Committed by GitHub
Browse files

feat: support detecting ESM libraries (#11440)

parent 78e8ca25
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment