Skip to content

Commit

Permalink
Update Solid ecosystem package logic to include packages with peerDep… (
Browse files Browse the repository at this point in the history
#6934)

* Update Solid ecosystem package logic to include packages with peerDep of Solid

* Remove solid as a noExternal

* Update the changeset
  • Loading branch information
matthewp authored May 2, 2023
1 parent 72c6bf0 commit b6797fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/purple-lamps-sleep.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion packages/integrations/solid/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
};
}
Expand Down

0 comments on commit b6797fc

Please sign in to comment.