-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
[Bug]: @floating-ui/*
dependencies is both added to bundle and installed in client's node_modules
#443
Comments
floating-ui
dependency is both bundled and installed from the client's side@floating-ui/*
dependencies is both bundled and installed from the client's side
@floating-ui/*
dependencies is both bundled and installed from the client's side@floating-ui/*
dependencies is both added to bundle and installed from in client's node_modules
@floating-ui/*
dependencies is both added to bundle and installed from in client's node_modules
@floating-ui/*
dependencies is both added to bundle and installed in client's node_modules
@sadeghbarati adding I'm not too familiar with the release cadence of that package and the lifecycle of their major versions. What do you think? My team is building a large component library and we're facing similar challenges and decisions, so we're trying to gain a broader perspective on some of the best practices around the |
Hey @floroz ! We've included You are right about setting |
Environment
Link to minimal reproduction
N/A
Steps to reproduce
N/A
Describe the bug
I was looking at the build setup of the library and I noticed that
@floating-ui/vue
and@floating-ui/dom
are shipped asdependencies
inpackage.json
.This means that when client are going to install
radix-vue
they will also install a copy of those two libraries in theirnode_modules
.At the same time, in the
vite.config.ts
, the onlybuild.rollupOptions.external
dependency declared isvue
.This means, that the library also does bundle the functions from floating-ui directly into the
index.js
.Is my understanding correct?
Expected behavior
Either
@floating-ui/*
toexternal
to avoid bundling the referencesor
@floating-ui/*
fromdependencies
todevDependencies
to avoid client to having to install it in their node_modules.Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: