Update Solid ecosystem package logic to include packages with peerDep… (#6934)
* Update Solid ecosystem package logic to include packages with peerDep of Solid * Remove solid as a noExternal * Update the changeset
This commit is contained in:
parent
72c6bf01fe
commit
b6797fc858
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
|
||||
---
|
||||
|
||||
Allow Solid ecosystem packages to not need special export map configuration. By default Solid is now treated as an external package in SSR, so any other dependent packages will receive the same instance.
|
|
@ -47,7 +47,7 @@ async function getViteConfiguration(isDev: boolean, astroConfig: AstroConfig) {
|
|||
ssr: {
|
||||
target: 'node',
|
||||
external: ['babel-preset-solid', ...solidPkgsConfig.ssr.external],
|
||||
noExternal: ['solid-js', ...solidPkgsConfig.ssr.noExternal],
|
||||
noExternal: [...solidPkgsConfig.ssr.noExternal],
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue