I want to add the optional-chaining
babel plugin to my Angular 7 build but can't find any documentation on if it's possible to add a .babelrc
or schematic to my current project to amend/add custom plugins.
Asked
Active
Viewed 2,175 times
5

halfmatthalfcat
- 177
- 3
- 12
2 Answers
1
Unfortunately it's not currently possible.
You can find the angular-cli repo conversation over here which describes the community attitude and possible solutions.
UPD: There is a tool ngx-build-plus which could partially fix your problem

Yevhenii Dovhaniuk
- 1,073
- 5
- 11
0
Angular officially doesn't support Babel, so you would need to wire up it yourself with ngx-build-plus or completely exiting the cli.

William Grasel
- 1,181
- 1
- 10
- 11