Closed
Description
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When compiling with optimizations: true
in angular.json it'll enable esbuild which will transpile to ES2015 which causes spreads to be replaced with a polyfill. zone.js has a property patch that overrides Object.defineProperties
where it's using Object.keys()
to iterate over the properties of the object to merge into the spread. This causes all symbol keys to be omitted: Object.keys({ a: 1, b: Symbol() }) === ['a']
angular/packages/zone.js/lib/browser/define-property.ts
Lines 38 to 43 in a92a89b
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
No response
Anything else?
No response