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

Analyse and optimise dependencies and polyfills #163

Open
4 tasks
aurelticot opened this issue Apr 21, 2023 · 0 comments
Open
4 tasks

Analyse and optimise dependencies and polyfills #163

aurelticot opened this issue Apr 21, 2023 · 0 comments
Labels
dependencies Pull requests and issues updating a dependency optimisation

Comments

@aurelticot
Copy link
Member

Check the following:

  • Upgrade dependencies
  • Remove unused dependencies
  • Check polyfills are actually needed (see in config-overrides.js), try disabling them
  • Check @verida/* deps for optimisations
    • For tree-shaking, use named export instead of default
    • For tree-shaking, use named import instead of global
      • Example lodash is often fully imported in a file but only the function merge is used
    • Challenge having classes
    • Try pure functions instead of static methods in a class
@aurelticot aurelticot added this to the beta milestone Apr 26, 2023
@aurelticot aurelticot added optimisation dependencies Pull requests and issues updating a dependency labels Apr 26, 2023
@aurelticot aurelticot modified the milestones: 1.0.0-beta.1, 1.0.0-beta.2 Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests and issues updating a dependency optimisation
Projects
None yet
Development

No branches or pull requests

1 participant