Skip to content

Commit

Permalink
fix(rspack): fix error with 'TypeError: userDefinedConfig is not a fu…
Browse files Browse the repository at this point in the history
…nction' (nrwl#29514)
  • Loading branch information
AdrianDuan committed Jan 5, 2025
1 parent 21d5bd8 commit 23c70eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rspack/src/executors/rspack/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export async function getRspackConfigs(

if (
(typeof userDefinedConfig === 'function' &&
isNxRspackComposablePlugin(userDefinedConfig)) ||
!options.standardRspackConfigFunction
(isNxRspackComposablePlugin(userDefinedConfig) ||
!options.standardRspackConfigFunction))
) {
// Old behavior, call the Nx-specific rspack config function that user exports
return await userDefinedConfig(config, {
Expand Down

0 comments on commit 23c70eb

Please sign in to comment.