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

Registering components in V5 as jQuery plugins prevents treeshaking #32664

Open
Bobris opened this issue Jan 3, 2021 · 1 comment
Open

Registering components in V5 as jQuery plugins prevents treeshaking #32664

Bobris opened this issue Jan 3, 2021 · 1 comment

Comments

@Bobris
Copy link

Bobris commented Jan 3, 2021

It is nice that V5 removes dependency on jQuery, but every component still try to register as jQuery pluging if jQuery is available. But that makes all components as used in every treeshaking or dead code elimination bundler.

It would be good to have bootstrap build version without this code making applicactions much smaller if they will use only some components.

@Bobris Bobris added the feature label Jan 3, 2021
@XhmikosR
Copy link
Member

XhmikosR commented Jan 5, 2021

PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants