diff --git a/packages/ngtools/webpack/src/angular_compiler_plugin.ts b/packages/ngtools/webpack/src/angular_compiler_plugin.ts index 6bc056745611..316bec3df26c 100644 --- a/packages/ngtools/webpack/src/angular_compiler_plugin.ts +++ b/packages/ngtools/webpack/src/angular_compiler_plugin.ts @@ -275,6 +275,14 @@ export class AngularCompilerPlugin { ); } + if (this._compilerOptions.strictMetadataEmit) { + this._warnings.push( + new Error( + `Using Angular compiler option 'strictMetadataEmit' for applications might cause undefined behavior.`, + ), + ); + } + if (this._discoverLazyRoutes === false && this.options.additionalLazyModules && Object.keys(this.options.additionalLazyModules).length > 0) { this._warnings.push(