Skip to content

Commit

Permalink
fix(angular): fix ts build with angular 13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudAV committed Jan 11, 2022
1 parent 0f36cb7 commit 49982f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/angular/src/server/angular-cli-webpack-13.x.x.js
Expand Up @@ -6,7 +6,7 @@ const {
getCommonConfig,
getStylesConfig,
getDevServerConfig,
getTypescriptWorkerPlugin,
getTypeScriptConfig,
} = require('@angular-devkit/build-angular/src/webpack/configs');
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');

Expand Down Expand Up @@ -45,7 +45,7 @@ exports.getWebpackConfig = async (baseConfig, { builderOptions, builderContext }
(wco) => [
getCommonConfig(wco),
getStylesConfig(wco),
getTypescriptWorkerPlugin ? getTypescriptWorkerPlugin(wco) : getDevServerConfig(wco),
getTypeScriptConfig ? getTypeScriptConfig(wco) : getDevServerConfig(wco),
]
);

Expand Down
2 changes: 1 addition & 1 deletion app/angular/src/server/framework-preset-angular-cli.ts
Expand Up @@ -47,8 +47,8 @@ export async function webpackFinal(baseConfig: webpack.Configuration, options: P
return getWebpackConfig13_x_x(_baseConfig, {
builderOptions: {
watch: options.configType === 'DEVELOPMENT',
...builderOptions,
...legacyDefaultOptions,
...builderOptions,
},
builderContext,
});
Expand Down

0 comments on commit 49982f6

Please sign in to comment.