Skip to content

Commit

Permalink
(fix) renamed method in angular 13.1 to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed Dec 17, 2021
1 parent 8c6427b commit 854e374
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/angular/src/server/angular-cli-webpack-13.x.x.js
Expand Up @@ -5,6 +5,7 @@ const {
const {
getCommonConfig,
getStylesConfig,
getDevServerConfig,
getTypescriptWorkerPlugin,
} = require('@angular-devkit/build-angular/src/webpack/configs');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
Expand Down Expand Up @@ -41,7 +42,11 @@ exports.getWebpackConfig = async (baseConfig, { builderOptions, builderContext }
aot: false,
},
builderContext,
(wco) => [getCommonConfig(wco), getStylesConfig(wco), getTypescriptWorkerPlugin(wco)]
(wco) => [
getCommonConfig(wco),
getStylesConfig(wco),
getTypescriptWorkerPlugin ? getTypescriptWorkerPlugin(wco) : getDevServerConfig(wco),
]
);

/**
Expand Down

0 comments on commit 854e374

Please sign in to comment.