-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Dataviews: dedupe Ariakit dependencies #63433
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Haha! So the That's why the build fails with type errors. We should probably upgrade Ariakit in the entire repo. @ciampo is that easy? 😉 |
Interesting, the other thing I noticed that we import all of Ariakit |
@jsnajdr I was literally typing a message very similar to yours pointing to https://ariakit.org/changelog#new-autoselect-mode
@DaniGuardiola is already on it #62947 — I agree that it's better to update ariakit to the latest version and then dedupe We should definitely aim at updating
That's the suggested approach from ariakit, and I believe it should work with tree shaking — but I'll let @diegohaz reply here. |
That's a matter of code conventions and taste, webpack tree shaking is not affected. Webpack is able to figure out which imports are actually used by the module and ignores the rest. |
Are there any blockers for this PR? |
Thanks, @DaniGuardiola! |
I noticed that there is a duplicate version of Ariakit packages installed in
packages/dataviews/node_modules
so in this PR I'm deduping them. There is a good enough version (0.3.2) in the rootnode_modules
, shared withpackages/components
.