diff --git a/.changeset/purple-lamps-sleep.md b/.changeset/purple-lamps-sleep.md new file mode 100644 index 000000000000..9dd063e6aa73 --- /dev/null +++ b/.changeset/purple-lamps-sleep.md @@ -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. diff --git a/packages/integrations/solid/src/index.ts b/packages/integrations/solid/src/index.ts index edf58fdeae16..8ec9f4d8d0d6 100644 --- a/packages/integrations/solid/src/index.ts +++ b/packages/integrations/solid/src/index.ts @@ -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], }, }; }