After upgrading to Angular 12, the source maps of a custom Angular library component are not available for debugging anymore.
Here is part of angular.json from the Angular application module, which consumes the library:
"projects": {
"myapp": {
"build": {
"configurations": {
"development": {
"optimization": false,
"sourceMap": true,
"namedChunks": true,
"extractLicenses": false,
"vendorChunk": true,
"buildOptimizer": false,
"budgets": []
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "myapp:build"
},
"configurations": {
"production": {
"browserTarget": "myapp:build:production"
},
"development": {
"browserTarget": "myapp:build:development"
}
},
"defaultConfiguration": "development"
}
}
}