Skip to content

Commit

Permalink
fix(rspack): fix for @nx/rspack/plugin for config options resolution
Browse files Browse the repository at this point in the history
WHen using @nx/rspack/plugin coupled with an rspack application, nx graph fails to resolve the
rspack config.
This happens because a return is missing when nxRspackComposablePlugin is enabled.

closed nrwl#30011
  • Loading branch information
ryok90 committed Feb 12, 2025
1 parent 8b1cd48 commit bdd0016
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/rspack/src/utils/read-rspack-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ export async function readRspackOptions(
const resolveConfig = async (
config: unknown
): Promise<Configuration | Configuration[]> => {
let resolvedConfig: Configuration;
if (isNxRspackComposablePlugin(config)) {
resolvedConfig = await config(
return await config(
{},
{
// These values are only used during build-time, so passing stubs here just to read out
Expand Down

0 comments on commit bdd0016

Please sign in to comment.