5

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.

halfmatthalfcat
  • 177
  • 3
  • 12

2 Answers2

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