-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue
Description
🐞 Bug report
Command (mark with an x)
- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Description
I have a simple Angular application, using an external library my-lib. This library comes with one minified main.js and main.js.map. main.js ends with //# sourceMappingURL=main.js.map.
In angular.json I have enabled "sourceMaps": true and I would expect all vendor source maps to be merged in the final vendors.js.map, but it does not seem to be the case. When I open Developer Tools -> Debugger -> webpack I see the original minified version of my external library, rather than the individual files inside it.
🔬 Minimal Reproduction
- Create a simple library with 2 ts files and build it using tsc or webpack with sourcemaps. Run npm pack
- Create a simple Angular application using the library as a npm package. Enable source maps in
angular.json - Run
ng serveand check Developer Tools
🌍 Your Environment
Angular CLI: 7.3.8
Node: 10.16.0
OS: win32 x64
Angular: 7.2.13
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.13.8
@angular-devkit/build-angular 0.13.8
@angular-devkit/build-ng-packagr 0.13.8
@angular-devkit/build-optimizer 0.13.8
@angular-devkit/build-webpack 0.13.8
@angular-devkit/core 7.3.8
@angular-devkit/schematics 7.3.8
@angular/cdk 7.3.7
@angular/cli 7.3.8
@angular/material 7.3.7
@angular/material-moment-adapter 7.3.7
@ngtools/json-schema 1.1.0
@ngtools/webpack 7.3.8
@schematics/angular 7.3.8
@schematics/update 0.13.8
ng-packagr 5.1.0
rxjs 6.4.0
typescript 3.2.4
webpack 4.29.0
Metadata
Metadata
Assignees
Labels
needs: more infoReporter must clarify the issueReporter must clarify the issue