You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it intentional? I can understand that it may be a precaution to prevent breaking application source maps by some nasty dependency with invalid source maps... But since Angular CLI is for the Angular framework and it's always included, I believe CLI can trust at least framework's source maps.
So I'm asking to relieve this restriction to allow people to have debugging/stack traces over TypeScript source of the framework instead of compiler JS. I did a quick experiment by ejecting Webpack config and removing exclude property and browser picked up source maps and provided correct stack traces (at least in this simple case).
Ideally I would prefer to have an option to either disable the behavior of ignoring third-party source maps completely or enable for specific packages only. It's very useful to be able to debug over source code instead of processed code. Especially, when dealing with minified dependencies :)
PS Source maps are not available for 4.0.0 RC at the moment, but they will be fixed eventually. So request still persists.
The text was updated successfully, but these errors were encountered:
FWIW source maps shipped with 4.1.0 have embedded sources of transpiled code, but the sources lists paths to original typescript code, that is very unintuitive.
Versions.
@angular/cli: 1.0.0-rc.0
@angular/*: 2.4.8
Repro steps.
debugger;
to the constructor ofAppComponent
.ng serve
.Mention any other details that might be useful.
This is because
source-map-loader
excludes everything in thenode_modules
folder. See excerpt from the Webpack config:Is it intentional? I can understand that it may be a precaution to prevent breaking application source maps by some nasty dependency with invalid source maps... But since Angular CLI is for the Angular framework and it's always included, I believe CLI can trust at least framework's source maps.
So I'm asking to relieve this restriction to allow people to have debugging/stack traces over TypeScript source of the framework instead of compiler JS. I did a quick experiment by ejecting Webpack config and removing
exclude
property and browser picked up source maps and provided correct stack traces (at least in this simple case).Ideally I would prefer to have an option to either disable the behavior of ignoring third-party source maps completely or enable for specific packages only. It's very useful to be able to debug over source code instead of processed code. Especially, when dealing with minified dependencies :)
PS Source maps are not available for 4.0.0 RC at the moment, but they will be fixed eventually. So request still persists.
The text was updated successfully, but these errors were encountered: