如何调试angular13库?

How to debug angular 13 library?

我创建了一个新的 angular 13 库,但遇到了问题。所以试图调试它。我按照现有 angular 库问题中提到的步骤更新 angular json like

{
  "projects": {
    "your-app": {
      "architect": {
        "serve": {
          "options": {
            "vendorSourceMap": true

但我仍然无法使用 firefox 开发工具来调试库。

由于您使用的是 angular 版本 12 或更高版本,因此 vendorSource 将被弃用,而必须添加 sourceMapscriptsstylesvendor 在主机应用程序的构建选项中为真 angular.json

{
  "projects": {
    "your-app": {
      "architect": {
        "build": {
          "options": {
            "sourceMap": {
              "scripts": true,
              "styles": true,
              "vendor": true
            },