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

Does anyone know how to tree-shake dependencies? #1

Open
JacobWeisenburger opened this issue Mar 6, 2023 · 2 comments
Open

Does anyone know how to tree-shake dependencies? #1

JacobWeisenburger opened this issue Mar 6, 2023 · 2 comments
Labels
help wanted need help from someone

Comments

@JacobWeisenburger
Copy link
Owner

I'm looking for a way to tree-shake dependencies such as lodash. Does someone know how to do this using Deno to Node Transform?

@JacobWeisenburger JacobWeisenburger added the help wanted need help from someone label Mar 6, 2023
@JacobWeisenburger JacobWeisenburger changed the title Does anyone know how to shrink the bundle size? Does anyone know how to tree-shake dependencies? Mar 6, 2023
@JacobWeisenburger
Copy link
Owner Author

denoland/dnt#258

@KyleGashler
Copy link

probably not new info for you but just make sure you're using full path imports wherever you can and avoid barrel imports. Here's an old stack overflow discussion on lodash in particular: https://stackoverflow.com/questions/35250500/correct-way-to-import-lodash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted need help from someone
Projects
None yet
Development

No branches or pull requests

2 participants