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

[wasm] Mark 'os' as excluded in browser bundles #5302

Merged
merged 2 commits into from Jul 8, 2021

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Jul 8, 2021

The threaded wasm backend conditionally imports 'os' in node to check how many cores are available (and uses a different method in browsers). This PR adds "os": false to the browser field in package.json so bundlers know not to include it when bundling for a browser.

Fixes #4745

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

@mattsoulanille mattsoulanille merged commit 088bbf9 into tensorflow:master Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tfjs-backend-wasm 3.2.0 additional undocumented dependencies
2 participants