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

update side effects to fix tree shaking errors #4258

Merged
merged 2 commits into from
Nov 18, 2020
Merged

Conversation

tafsiri
Copy link
Contributor

@tafsiri tafsiri commented Nov 18, 2020

  • Moves the backend registration in wasm into base.ts (which is already in the sideEffects list)
  • Update tfjs-core package json to include engine.ts in sideEffects

Resolves #4248

As a follow-up investigating #4248 revealed that as of October, webpack 5 does not require the sideEffects entry anymore. However I'm not removing it in this PR since i want to (1) investigate how well it (and our other target bundlers do) without that field, and (2) try and get a better sense of how webpack 5 adoption is going. But it does point towards a better future where we won't have to manually maintain that list. I'll make an issue to track removing that.

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


This change is Reviewable

@tafsiri tafsiri merged commit f3c1409 into master Nov 18, 2020
@tafsiri tafsiri deleted the side-effects-fix branch November 18, 2020 20:52
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.

"sideEffects" annotation in package.json may be out of date
2 participants