mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
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:
parent
713f95d678
commit
41c63ea871
@ -489,6 +489,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
|
||||
alias,
|
||||
},
|
||||
resolveLoader: {
|
||||
symlinks: !buildOptions.preserveSymlinks,
|
||||
modules: loaderNodeModules,
|
||||
},
|
||||
context: projectRoot,
|
||||
|
Loading…
x
Reference in New Issue
Block a user