简体   繁体   中英

Debugging imported Angular library in chrome dev tools

I'm working on an Angular project with angular-cli as the base. I've imported a library in package.json and I'd like to step through the library in the Chrome dev tools debugger. How can I make the libraries original typescript source show up in dev tools? I assume this is related to some webpack configuration?

Newer versions of the CLI have the "vendorSourceMap" option.

ng build --vendor-source-map

See https://github.com/angular/angular-cli/wiki/build

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM