fix(ngcc): support simple browser
property in entry-points (#36396)
The `browser` package.json property is now supported to the same level as `main` - i.e. it is sniffed for UMD, ESM5 and CommonJS. The `browser` property can also contain an object with file overrides but this is not supported by ngcc. Fixes #36062 PR Close #36396
This commit is contained in:

committed by
Kara Erickson

parent
93cbef26c7
commit
b0d680daa0
@ -793,7 +793,7 @@ runInEachFileSystem(() => {
|
||||
const propertiesToConsider = ['es1337', 'fesm42'];
|
||||
const errorMessage =
|
||||
'No supported format property to consider among [es1337, fesm42]. Supported ' +
|
||||
'properties: fesm2015, fesm5, es2015, esm2015, esm5, main, module';
|
||||
'properties: fesm2015, fesm5, es2015, esm2015, esm5, main, module, browser';
|
||||
|
||||
expect(() => mainNgcc({basePath: '/node_modules', propertiesToConsider}))
|
||||
.toThrowError(errorMessage);
|
||||
|
Reference in New Issue
Block a user