Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions packages/qwik-nx/src/plugins/qwik-nx-vite.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ export function qwikNxVite(options?: QwikNxVitePluginOptions): Plugin {
// it's not expected to have the plugin duplicated, but handling it as an edge case
const pluginOptions = qwikPlugin.api.getOptions();

const vendorRoots = await getVendorRoots(options, pluginOptions);

pluginOptions.vendorRoots.push(...vendorRoots);
if (pluginOptions.vendorRoots) {
const vendorRoots = await getVendorRoots(options, pluginOptions);
pluginOptions.vendorRoots.push(...vendorRoots);
}
}
},
};
Expand Down
Loading