Skip to content
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

[Feature request] Implement module entry point ES6 exports to support tree-shaking #266

Open
Havunen opened this issue Mar 16, 2018 · 6 comments

Comments

@Havunen
Copy link

Havunen commented Mar 16, 2018

Hey!

It would be nice to be able to import only the things we need from this library. For example when we are not using pulse or other tracking features. Those could be stripped out from the bundle.

https://webpack.js.org/guides/tree-shaking/
https://medium.com/@netxm/what-is-tree-shaking-de7c6be5cadd
https://medium.com/@Rich_Harris/tree-shaking-versus-dead-code-elimination-d3765df85c80

@BenjaminHarding
Copy link
Contributor

This would definitely be useful to have. I think in order to support this we would have to restructure how the library is used currently and so wouldn't be a quick thing we can roll out but I'll add it to the radar for us to consider in the future :)

@pbessone
Copy link

Since version 10, Angular has started to warn about projects not using ES modules and don't support tree shaking.
These warnings can be ignored but it would be good if we could see some traction implementing this feature.

@mduncan26
Copy link
Contributor

Hi @pbessone

Thank you for letting us know. I have passed on this feedback onto the product team here at Raygun. They will consider this when updating the roadmap for the products. Unfortunately this will not be available in the short term, but we will update this thread once we have more information.

Thank you,
Mitchell.

@akauppi
Copy link

akauppi commented Aug 2, 2021

@mduncan26 Nice to see recent activity on this! I filed a customer request (23657) last week. Could you check that out and align with the product team?

It’s about allowing easy use of Raygun for users of this open source web app template: https://github.com/akauppi/GroundLevel-firebase-es

@burymm
Copy link

burymm commented Apr 6, 2022

Any updates on this?

@sumitramanga
Copy link
Contributor

Hi there,

This is still on our feature request list but we haven't forgotten about it! We can continue to keep this thread open in the mean time and let you all know when this feature request gets picked up.

Thank you for your patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants