I would like a vendor.js to accompany my angular library JavaScript. (This excludes the ts-js transpilation and enables analysis of domain only code). When I add "vendorChunk": true
to the architect/builder/options or architect/builder/configurations/{env}, ng build
complains:
Schema validation failed with the following errors:
Data path "" must NOT have additional properties(vendorChunk).
The builder schema appears to agree. The schema for the standard application 'browser' builder supports many customizations including vendorChunk, nameChunks, optimization, etc. The current schema, which doesn't appear to have changed even since angular 10 schema, for the builder for libraries called ng-packagr has none of these options. It seems to be fixed to named chunks, no optimization or compression but does not chunk out the vendor stuff.
Is there another way to signal to the library build to extract the vendor javascript?