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

[Browser] Improve TreeShaking approach for webpack #834

Open
claytonneal opened this issue Apr 30, 2024 · 2 comments
Open

[Browser] Improve TreeShaking approach for webpack #834

claytonneal opened this issue Apr 30, 2024 · 2 comments

Comments

@claytonneal
Copy link
Member

claytonneal commented Apr 30, 2024

Objective is to review the output webpack js file size for browser users
This could be optimised by looking at how TreeShaking works and what exports we have
Ideally if a browser app is just doing minimal operations, the output js file should be small

@leszek-vechain
Copy link
Collaborator

This is webpack approach to tree shaking, not sure if we are using it:

https://webpack.js.org/guides/tree-shaking/

There is a couple of options we can set there.

@leszek-vechain
Copy link
Collaborator

Added config for tsup to use rollup optimisations plus minify (esbuild is using tree shake by defult too)

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

3 participants