Skip to content

Commit 2b6a68f

Browse files
fix(qwik-nx): handle absence of vendor roots (#238)
1 parent be20c64 commit 2b6a68f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

packages/qwik-nx/src/plugins/qwik-nx-vite.plugin.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ export function qwikNxVite(options?: QwikNxVitePluginOptions): Plugin {
4040
// it's not expected to have the plugin duplicated, but handling it as an edge case
4141
const pluginOptions = qwikPlugin.api.getOptions();
4242

43-
const vendorRoots = await getVendorRoots(options, pluginOptions);
44-
45-
pluginOptions.vendorRoots.push(...vendorRoots);
43+
if (pluginOptions.vendorRoots) {
44+
const vendorRoots = await getVendorRoots(options, pluginOptions);
45+
pluginOptions.vendorRoots.push(...vendorRoots);
46+
}
4647
}
4748
},
4849
};

0 commit comments

Comments
 (0)