Currently, in an angular library there's no way to remove zone.js from the polyfills configuration in project.json as the option is not there.
When running tests in a zoneless configuration, you get the error:
console.warn
NG0914: The application is using zoneless change detection, but is still loading Zone.js.Consider removing Zone.js to get the full benefits of zoneless. In applications using the Angular CLI, Zone.js is typically included in the "polyfills" section of the angular.json file.
If you add polyfills: [] to the project.json, you get the error:
Thank you for bringing this issue to our attention! I want to assure you that I will take a look as soon as I can. Your patience and understanding in this matter is greatly appreciated.
Current Behavior
Currently, in an angular library there's no way to remove
zone.js
from the polyfills configuration inproject.json
as the option is not there.When running tests in a zoneless configuration, you get the error:
If you add
polyfills: []
to theproject.json
, you get the error:Expected Behavior
Being able to configure polyfills in an angular library
project.json
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response