angular-cn/packages/compiler-cli/ngcc/test
JoostK 271d2b51a9 fix(ivy): ngcc - prevent crash for packages without "main" property (#30950)
When determining the module type of a bundle pointed to by the "main"
property, ngcc needs to read the bundle to figure out if it is CommonJS
or UMD format. However, when the "main" property does not exist ngcc
would crash while determining the path to the main bundle file.

This commit fixes the crash by checking if the "main" property is present
at all, before attempting to derive a full path to the bundle file.

Fixes #30916
Fixes FW-1369

PR Close #30950
2019-06-11 00:12:03 +00:00
..
analysis refactor(ivy): ngcc - add MockFileSystem (#29643) 2019-04-29 12:37:21 -07:00
dependencies feat(ivy): ngcc - turn on CommonJS support (#30200) 2019-05-22 16:24:15 -07:00
helpers refactor(ivy): ngcc - fake core and tslib should be typings files (#25445) 2019-05-16 12:11:04 -07:00
host feat(ivy): static evaluation of TypeScript's `__spread` helper (#30492) 2019-06-10 23:53:04 +00:00
integration fix(ivy): ngcc - prevent crash for packages without "main" property (#30950) 2019-06-11 00:12:03 +00:00
logging
packages feat(ivy): ngcc - turn on CommonJS support (#30200) 2019-05-22 16:24:15 -07:00
rendering refactor(ivy): inherently call ɵɵselect(0) (#30830) 2019-06-07 08:48:31 -07:00
writing test: fix ngcc unit tests in windows (#30297) 2019-05-13 11:26:56 -07:00
BUILD.bazel refactor(ivy): use a named type for ImportManager import structures (#25445) 2019-05-16 12:11:03 -07:00
utils_spec.ts