fix(webpack): fix check for standardWebpackConfigFunction (#20728)
This commit is contained in:
parent
d9540ef7cd
commit
3655269411
@ -83,8 +83,8 @@ export async function* devServerExecutor(
|
||||
// Otherwise, user should define `devServer` option directly in their webpack config.
|
||||
if (
|
||||
typeof userDefinedWebpackConfig === 'function' &&
|
||||
isNxWebpackComposablePlugin(userDefinedWebpackConfig) &&
|
||||
!buildOptions.standardWebpackConfigFunction
|
||||
(isNxWebpackComposablePlugin(userDefinedWebpackConfig) ||
|
||||
!buildOptions.standardWebpackConfigFunction)
|
||||
) {
|
||||
config = await userDefinedWebpackConfig(
|
||||
{ devServer },
|
||||
|
||||
@ -60,8 +60,8 @@ async function getWebpackConfigs(
|
||||
|
||||
if (
|
||||
typeof userDefinedWebpackConfig === 'function' &&
|
||||
isNxWebpackComposablePlugin(userDefinedWebpackConfig) &&
|
||||
!options.standardWebpackConfigFunction
|
||||
(isNxWebpackComposablePlugin(userDefinedWebpackConfig) ||
|
||||
!options.standardWebpackConfigFunction)
|
||||
) {
|
||||
// Old behavior, call the Nx-specific webpack config function that user exports
|
||||
return await userDefinedWebpackConfig(config, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user