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

React build takes very long #97

Open
davidleomay opened this issue Aug 31, 2023 · 4 comments
Open

React build takes very long #97

davidleomay opened this issue Aug 31, 2023 · 4 comments

Comments

@davidleomay
Copy link

Adding the bitbox02-api package to a React project (created with create-react-app) has drastically increased the build time, from under 2 minutes to 20-30 minutes (using a Github workflow).

Any ideas on how to speed up the build?

@benma
Copy link
Contributor

benma commented Aug 31, 2023

20-30 min is not reasonable. You can try to exclude bitbox02-api-go.js from being processed by minifiers, optimizers, and other tools.

What project are you working on? We are working on a new TypeScript/WASM library that may be a better fit.

@davidleomay
Copy link
Author

Thanks for the quick response! We tried to exclude bitbox02-api-go.js but it seems like Webpack with Terser cannot exclude single source files. We're working on a Node.js TypeScript React project.

Cool, sounds good. Will the new library be available on npm?

@benma
Copy link
Contributor

benma commented Sep 1, 2023

Yeah that is the plan. I hope we will get to it soon.

@davidleomay
Copy link
Author

Very cool, looking forward!

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

No branches or pull requests

2 participants