So I recently upgraded my Angular packages to 16, as my understanding the Angular 16 devkit switched from Webpack to Vite. We have not changed anything in the tsconfig file or any other build configuration file.
However every time we try to build we get this error:
Error: Optimization error [main.c3f825f1c692aa5f.js]: X [ERROR] Transforming destructuring to the configured target environment ("chrome86.0", "edge16.0", "firefox83.0", "ios11.0", "safari11.0") is not supported yet
main.c3f825f1c692aa5f.js:89728:12:
89728 │ const {
For some reason it does not transform to older JS versions if I understood the error correctly. Does anyone know what I should do, or have I missed some type of documentation?