Skip to content

Commit

Permalink
fix(angular): local imports in webpack-dev-server custom config (#13156)
Browse files Browse the repository at this point in the history
(cherry picked from commit e971ffb)
  • Loading branch information
Michsior14 authored and FrozenPandaz committed Nov 18, 2022
1 parent 558b99c commit c0ee01f
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -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, {
Expand Down

0 comments on commit c0ee01f

Please sign in to comment.