Skip to content

Commit c899c56

Browse files
clydinhansl
authored andcommitted
refactor(@angular-devkit/build-angular): allow webpack plugin to use default host
1 parent 56cd6f7 commit c899c56

File tree

1 file changed

+2
-3
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+2
-3
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/typescript.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const webpackLoader: string = g['_DevKitIsLocal']
2828
function _createAotPlugin(
2929
wco: WebpackConfigOptions,
3030
options: any,
31-
host: virtualFs.Host<Stats>,
31+
_host: virtualFs.Host<Stats>,
3232
useMain = true,
33-
extract = false
33+
extract = false,
3434
) {
3535
const { root, buildOptions } = wco;
3636
options.compilerOptions = options.compilerOptions || {};
@@ -82,7 +82,6 @@ function _createAotPlugin(
8282
forkTypeChecker: buildOptions.forkTypeChecker,
8383
contextElementDependencyConstructor: require('webpack/lib/dependencies/ContextElementDependency'),
8484
...options,
85-
host,
8685
};
8786
return new AngularCompilerPlugin(pluginOptions);
8887
}

0 commit comments

Comments
 (0)