Update Solid ecosystem package logic to include packages with peerDep of Solid
This commit is contained in:
parent
7888251955
commit
960cdba30d
2 changed files with 6 additions and 1 deletions
5
.changeset/purple-lamps-sleep.md
Normal file
5
.changeset/purple-lamps-sleep.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/solid-js": patch
|
||||
---
|
||||
|
||||
Update Solid ecosystem package logic to include packages with peerDep of Solid
|
|
@ -8,7 +8,7 @@ export async function getSolidPkgsConfig(isBuild: boolean, astroConfig: AstroCon
|
|||
isBuild,
|
||||
viteUserConfig: astroConfig.vite,
|
||||
isFrameworkPkgByJson(pkgJson) {
|
||||
return containsSolidField(pkgJson.exports || {});
|
||||
return containsSolidField(pkgJson.exports || {}) || !!(pkgJson.peerDependencies || {})['solid-js'];
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue