-
Notifications
You must be signed in to change notification settings - Fork 12k
Add option to exclude certain files from sourcemap. #11305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello there, Best regards |
This is as well relevant for any Angular workspace containing multiple projects. For this issue the bare minimum would be to at least split "libs" and |
I'm also interested in this feature. |
As @klemenoslaj mentioned, there needs to be a way to include our local libraries without including all vendor source maps. We have recently switched to a MonoRepo pattern using angular libraries, and debugging was a nightmare. For debugging to be possible I had to use a custom builder called "@angular-builders/custom-webpack:browser" so I could modify the webpack configuration. My webpack.config.js file looks like this:
|
We discussed this in our tooling triage meeting. Sourcemaps can definitely take a long time to process and we agree that the current behavior of We'll update Regarding the performance issue, specifying For now, we'll start with updating |
…ithout `vendor: true` With this change we apply sourcemaps of libraries in a monorepo without the need to enable `vendor: true`. This is more intuitive behavior and in line with what the users expect. We also suppress the `Failed to parse source map from` in-actionable warning. Closes #11305
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Area
Versions
Repro steps
The log given by the failure
Desired functionality
I have projects where enabling sourcemaps slows down the ng build operation by a factor of 10. It would be useful to add an option to exclude certain files from source maps generation, or, even better, being able to specify only the files you want to use to generate source map.
This will allow us to specify which file we want to debug without slowing a lot the compilation time.
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: