fix(angular): local imports in webpack-dev-server custom config (#13156)

This commit is contained in:
Michał Mrozek 2022-11-18 10:57:27 +01:00 committed by GitHub
parent e42da40438
commit e971ffba71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,6 +84,12 @@ export function executeWebpackDevServerBuilder(
options.tsConfig = tsConfigPath;
return options;
};
// The buildTargetConfiguration also needs to use the generated tsconfig path
// otherwise the build will fail if customWebpack function/file is referencing
// local libs. This synchronize the behavior with webpack-browser and
// webpack-server implementation.
buildTargetConfiguration.tsConfig = tsConfigPath;
}
return executeDevServerBuilder(options as DevServerBuilderOptions, context, {