angular-cn/packages/compiler-cli/ngcc/test/rendering
George Kalpakas 10e29355db fix(ngcc): do not add trailing commas in UMD imports (#34545)
Previously, if `UmdRenderingFormatter#addImports()` was called with an
empty list of imports to add (i.e. no new imports were needed), it would
add trailing commas in several locations (arrays, function arguments,
function parameters), thus making the code imcompatible with legacy
browsers such as IE11.

This commit fixes it by ensuring that no trailing commas are added if
`addImports()` is called with an empty list of imports.
This is a follow-up to #34353.

Fixes #34525

PR Close #34545
2020-01-07 10:42:06 -08:00
..
commonjs_rendering_formatter_spec.ts fix(ngcc): do not add trailing commas in UMD imports (#34545) 2020-01-07 10:42:06 -08:00
dts_renderer_spec.ts fix(ngcc): correctly match aliased classes between src and dts files (#34254) 2019-12-18 11:25:01 -08:00
esm5_rendering_formatter_spec.ts fix(ngcc): do not add trailing commas in UMD imports (#34545) 2020-01-07 10:42:06 -08:00
esm_rendering_formatter_spec.ts fix(ngcc): do not add trailing commas in UMD imports (#34545) 2020-01-07 10:42:06 -08:00
renderer_spec.ts refactor(ngcc): use bundle src to create reflection hosts (#34254) 2019-12-18 11:25:01 -08:00
umd_rendering_formatter_spec.ts fix(ngcc): do not add trailing commas in UMD imports (#34545) 2020-01-07 10:42:06 -08:00