fix(angular): local imports in webpack-dev-server custom config (#13156)
This commit is contained in:
parent
e42da40438
commit
e971ffba71
@ -84,6 +84,12 @@ export function executeWebpackDevServerBuilder(
|
|||||||
options.tsConfig = tsConfigPath;
|
options.tsConfig = tsConfigPath;
|
||||||
return options;
|
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, {
|
return executeDevServerBuilder(options as DevServerBuilderOptions, context, {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user