Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fb94db7

Browse files
alan-agius4filipesilva
authored andcommittedAug 10, 2020
fix(@ngtools/webpack): issue warning when using strictMetadataEmit
`strictMetadataEmit` option which is not intended to be used for applications. See: https://angular.io/guide/angular-compiler-options#strictmetadataemit Closes #18424
1 parent 780c82d commit fb94db7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎packages/ngtools/webpack/src/angular_compiler_plugin.ts

+8
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,14 @@ export class AngularCompilerPlugin {
275275
);
276276
}
277277

278+
if (this._compilerOptions.strictMetadataEmit) {
279+
this._warnings.push(
280+
new Error(
281+
`Using Angular compiler option 'strictMetadataEmit' for applications might cause undefined behavior.`,
282+
),
283+
);
284+
}
285+
278286
if (this._discoverLazyRoutes === false && this.options.additionalLazyModules
279287
&& Object.keys(this.options.additionalLazyModules).length > 0) {
280288
this._warnings.push(

0 commit comments

Comments
 (0)
Please sign in to comment.