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

feat: add ability to ignore certain meta items from the final packaged bundle #4398

Open
techfg opened this issue Jan 3, 2025 · 0 comments

Comments

@techfg
Copy link
Collaborator

techfg commented Jan 3, 2025

Currently, when creating a package bundle, all meta items in the workspace are included in the final bundle.

However, in the case of developing component packs and possibly other scenarios, meta items that are used in "development" are not required to be included in the "prod" bundle.

For example, if I'm developing a component "Swiper", in order to test my component, I have a view in my workspace that contains the component. This view is strictly for dev/test purposes and not required to be distributed with my bundle. The solution for this currently is one (or more) of the following:

  1. Prior to "final", delete the unnecessary meta items (e.g., view) from the web builder
  2. Mark the meta item private but this still results in it being packaged, just not visible
  3. When developing, have two workspaces - one for the component only and another for a view that uses the component

None of these are ideal or a good developer experience.

Possibly consider a way to configure this in bundle.yaml and/or define a dotignore file.

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

No branches or pull requests

1 participant