angular/packages/compiler-cli/src/transformers
Alex Rickabaugh c9aa87cec0 fix(compiler-cli): show a more specific error for Ivy NgModules (#41534)
When an Ivy NgModule is imported into a View Engine build, it doesn't have
metadata.json files that describe it as an NgModule, so it appears to VE
builds as a plain, undecorated class. The error message shown in this
situation generic and confusing, since it recommends adding an @NgModule
annotation to a class from a library.

This commit adds special detection into the View Engine compiler to give a
more specific error message when an Ivy NgModule is imported.

PR Close #41534
2021-04-13 07:34:45 -07:00
..
api.ts docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
compiler_host.ts fix(compiler-cli): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
downlevel_decorators_transform.ts fix(compiler-cli): prevent stack overflow in decorator transform for large number of files (#40374) 2021-01-11 10:39:10 -08:00
entry_points.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
inline_resources.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
lower_expressions.ts feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
metadata_cache.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
metadata_reader.ts fix(compiler-cli): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
node_emitter.ts feat(compiler): support nullish coalescing in templates (#41437) 2021-04-07 12:04:28 -07:00
node_emitter_transform.ts refactor(compiler): replace Comment nodes with leadingComments property (#38811) 2020-09-18 08:01:25 -07:00
patch_alias_reference_resolution.ts docs: remove duplicated the (#40434) 2021-01-14 11:33:57 -08:00
program.ts fix(compiler-cli): show a more specific error for Ivy NgModules (#41534) 2021-04-13 07:34:45 -07:00
r3_metadata_transform.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
r3_transform.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
util.ts refactor(compiler): replace Comment nodes with leadingComments property (#38811) 2020-09-18 08:01:25 -07:00