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.
|
// Otherwise, user should define `devServer` option directly in their webpack config.
|
||||||
if (
|
if (
|
||||||
typeof userDefinedWebpackConfig === 'function' &&
|
typeof userDefinedWebpackConfig === 'function' &&
|
||||||
isNxWebpackComposablePlugin(userDefinedWebpackConfig) &&
|
(isNxWebpackComposablePlugin(userDefinedWebpackConfig) ||
|
||||||
!buildOptions.standardWebpackConfigFunction
|
!buildOptions.standardWebpackConfigFunction)
|
||||||
) {
|
) {
|
||||||
config = await userDefinedWebpackConfig(
|
config = await userDefinedWebpackConfig(
|
||||||
{ devServer },
|
{ devServer },
|
||||||
|
|||||||
@ -60,8 +60,8 @@ async function getWebpackConfigs(
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
typeof userDefinedWebpackConfig === 'function' &&
|
typeof userDefinedWebpackConfig === 'function' &&
|
||||||
isNxWebpackComposablePlugin(userDefinedWebpackConfig) &&
|
(isNxWebpackComposablePlugin(userDefinedWebpackConfig) ||
|
||||||
!options.standardWebpackConfigFunction
|
!options.standardWebpackConfigFunction)
|
||||||
) {
|
) {
|
||||||
// Old behavior, call the Nx-specific webpack config function that user exports
|
// Old behavior, call the Nx-specific webpack config function that user exports
|
||||||
return await userDefinedWebpackConfig(config, {
|
return await userDefinedWebpackConfig(config, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user