-
Notifications
You must be signed in to change notification settings - Fork 12k
Feature request to generate sourcemaps for external services #12375
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
Is there any word when/if something like this might be implemented? |
I'll try and create a pull request for this feature this weekend. webpack already contains this functionality encompassed in the |
@NikolaJankovic any news on this feature? thanks! |
@templth I'm still working on having it done but its a lot more involved than I originally thought. I'll hopefully have a pull request in the next few weeks. |
@NikolaJankovic if I can help you in anyway in this work, feel free to tell me! |
Hi, this has been implemented and addressed in the latest beta (7.2.0-beta.0) with #13062 In your
|
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
)Command (mark with an
x
)Desired functionality
Angular cli doesn't support functionality that would enable uploading sourcemaps to an external service.
Right now if you build with sourcemaps the .map files are generated and their filepath is referenced in the bundle as a comment. The only use case that supports is if you want to host the sourcemaps on the site which has a lot of disadvantages. In most cases you want to generate the sourcemaps and upload them directly to a service that requires them (i.e. sentry) so that they remain private.
Creating 2 independent builds - one with sourcemaps and one without - deploying the latter and uploading the former to a third party service does not work because the filepath reference to the .map file changes the bundle file hash and therefore the 2 builds have different filenames.
Desired functionality would involve passing an argument that would generate .map files in a separate directory under /dist without their filepath referenced in the bundle files as a comment.
The text was updated successfully, but these errors were encountered: