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

[Bug]: meteor-component-library bundles all instead of used meteor icons #278

Open
1 task done
cyl3x opened this issue Sep 5, 2024 · 0 comments
Open
1 task done
Labels
type: bug 🐛 Something isn't working

Comments

@cyl3x
Copy link
Contributor

cyl3x commented Sep 5, 2024

Package

@meteor/component-library

Package version

3.11.0

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-xmwwbk?file=src%2Fmain.js

Steps to reproduce

  • Create a simple vue + vite project
  • Install the meteor component library
  • use something from the library, like import { DeviceHelperPlugin, TooltipDirective } from '@shopware-ag/meteor-component-library'
  • build the project
  • take a look at the resulting dist folder

Actual behavior

All meteor-icons are pre-built in the dist folder of the component library.
It does not matter which or if an icon is used, they will be bundled/copied with your app.

Expected behavior

Only used meteor-icons are bundled to reduce the bundle size and pollution of my project, or the meteor-icons aren't pre-built with the component library, but you have to install the meteor-icons yourself.

System Info

No response

Any additional comments?

No response

Code of Conduct

@cyl3x cyl3x added the type: bug 🐛 Something isn't working label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant