Skip to content

How to release an angular library with both typescript source code and source map? #22701

Closed
@UchihaYuki

Description

@UchihaYuki

🚀 Feature request

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Description

I want to release my angular libraries alongside their typescript source code. When people consuming my libraries, they can set break point inside my code for debugging. (I can set breakpoints for other libraries, for exmaple, rxjs. I hope I can do the same for angular libraries.)

Describe alternatives you've considered

I tried to use ng-package.json to copy my src folder to dist/my-lib/src. Then I write code to modify all dist/my-lib/**/*.map. But the breakpoints are still unbound under vscode chrome remote debug. But I can at least use the vscode go to implementation now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions