fix(@angular-devkit/build-angular): add symlinks option to resolveLoader

This is needed as otherwise under Bazel it will fail with `Angular Compiler was detected but it was an instance of the wrong class.` when not using the linker since node_modules will be linked to `external/npm`. Under Bazel `preserveSymlinks` is to be set to true, however with the current behaviour this doesn't effect resolveLoader.
This commit is contained in:
Alan Agius 2019-12-06 10:09:25 +01:00 committed by Keen Yee Liau
parent 713f95d678
commit 41c63ea871

View File

@ -489,6 +489,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
alias,
},
resolveLoader: {
symlinks: !buildOptions.preserveSymlinks,
modules: loaderNodeModules,
},
context: projectRoot,