We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e09b3e commit 95c5260Copy full SHA for 95c5260
packages/ngtools/webpack/src/angular_compiler_plugin.ts
@@ -792,7 +792,9 @@ export class AngularCompilerPlugin {
792
if (this._discoverLazyRoutes) {
793
// Add lazy modules to the context module for @angular/core
794
compiler.hooks.contextModuleFactory.tap('angular-compiler', cmf => {
795
- const angularCorePackagePath = require.resolve('@angular/core/package.json');
+ const angularCorePackagePath = require.resolve('@angular/core/package.json', {
796
+ paths: [this._basePath],
797
+ });
798
799
// APFv6 does not have single FESM anymore. Instead of verifying if we're pointing to
800
// FESMs, we resolve the `@angular/core` path and verify that the path for the
0 commit comments