Skip to content

Commit

Permalink
don't pass the qwik plugin twice
Browse files Browse the repository at this point in the history
  • Loading branch information
thejackshelton committed Jan 4, 2025
1 parent 54241bc commit 25cec4e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion libs/qwikdev-astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,18 +277,28 @@ export default defineIntegration({
const isAllowedPlugin =
plugin.name === "astro:transitions" || plugin.name.includes("virtual");
const isAstroBuildPlugin = plugin.name.startsWith("astro:build");
const isQwikPlugin =
plugin.name === "vite-plugin-qwik" ||
plugin.name === "vite-plugin-qwik-post" ||
plugin.name === "overrideEsbuild";

if (isAllowedPlugin) {
return true;
}

return !(isCoreBuildPlugin || isAstroInternalPlugin || isAstroBuildPlugin);
return !(
isCoreBuildPlugin ||
isAstroInternalPlugin ||
isAstroBuildPlugin ||
isQwikPlugin
);
});

// client build -> passed into server build
await build({
...astroConfig?.vite,
plugins: [...astroPlugins, qwikVite(qwikClientConfig)],
clearScreen: false,
build: {
ssr: false,
outDir: finalDir,
Expand Down

0 comments on commit 25cec4e

Please sign in to comment.