Skip to content

Commit

Permalink
Exclude from standalone build
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-lee committed Dec 18, 2024
1 parent 492f283 commit 3f010e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/zudoku/src/vite/plugin-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ const viteApiPlugin = (getConfig: () => ZudokuPluginOptions): Plugin => {
if (id === resolvedVirtualModuleId) {
const config = getConfig();

if (config.mode === "standalone") {
return `export const configuredApiPlugins = undefined; export const configuredApiCatalogPlugins = undefined;`;
}

const code = [
`import config from "virtual:zudoku-config";`,
`import { openApiPlugin } from "zudoku/plugins/openapi";`,
Expand Down

0 comments on commit 3f010e3

Please sign in to comment.