Move bootstrap to peerDependencies
See original GitHub issueI think bootstrap should be in peerDependencies, so that bootstrap-vue-3 doesn’t install it’s own conflicting one in node_modules/bootstrap-vue-3/node_modules/bootstrap.
The instructions already say yarn add bootstrap bootstrap-vue-3
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7
Top Results From Across the Web
Declare bootstrap as a peer dependency (!29817) - GitLab.org
... moving bootstrap to the peerDependencies will help us to avoid conflicting versions of bootstrap between the gitlab-ui and gitlab-ce.
Read more >1.7.0 moved jQuery to peerDependencies which is a breaking ...
Hm... I still consider moving to peerDependencies a breaking change as it requires changes in consumer code. It's up to you to decide...
Read more >Webpack - Bootstrap
Bootstrap is dependent on jQuery and Popper, these are defined as peerDependencies , this means that you will have to make sure to...
Read more >npm WARN bootstrap@4.2.1 requires a peer of jquery@1.9.1
npm WARN bootstrap@4.2.1 requires a peer of popper.js@^1.14.6 but none is installed. You must install peer dependencies yourself. I am using ...
Read more >Difference between dependencies, devDependencies and ...
Peer Dependencies : In package.json file, there is an object called as peerDependencies and it consists of all the packages that are exactly ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am not sure if I understand this topic correctly, but: I am trying to develop our own custom library with just few special components, based on Vue 3 + Bootstrap 5. As this library should be used in Vue 3 + Bootstrap 5 applications, any of its component does not import Bootstrap nor Bootstrap-Icons (I use Storybook for development, so Bootstrap is imported in stories, not in component itself, mimicking the real application inside which my component will be used). So the build size of my library is relatively small (~ tens of kBs).
Now I tried to incorporate
bootstrap-vue-3
library to use itsBTable
component. Even if I import only BTable component withimport { BTable } from "bootstrap-vue-3";
build size of my library increased to 1+ MB asBTable
“injected” whole Bootstrap and especially Bootstrap Icons into the build.It would be great if Bootstrap could be really externalized from
bootstrap-vue-3
.Got it