Skip to content

Remix - enable tree shaking #7058

Answered by alexblack
alexblack asked this question in Q&A
Feb 6, 2023 · 10 comments · 2 replies
Discussion options

You must be logged in to vote

Thanks for the response.  We're not using replay. I got things working, I think the issue was that Remix uses esbuild, and to properly tree shake requires ESM modules, but our own internal libraries were CJS, and they used sentry too.  

Once we converted them to ESM they treeshake, and it looks like sentry does now too, looks like we're down to 61kb now, nice!

Replies: 10 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AbhiPrasad
Comment options

@alexblack
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AbhiPrasad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants