build excludes from application project are not applied to dependencies
@flovogt đang làm issue này rồi.
Từ ngày 2/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
When building a UI5 workspace where the root project is of type application and includes local (workspace) dependencies of type library and component, builder.resources.excludes from the root project's config are applied to the root project, but not to dependency outputs included in the build graph.
As a result, the final build output still contains dependency test resources such as:
/resources/<component-dependency>/test/**/test-resources/<library-dependency>/**
Versions
@ui5/cli:5.0.0-alpha.5
Scenario
The root project is a UI5 project of type application.
That root application includes local workspace dependencies of different project types, specifically:
librarydependenciescomponentdependencies
The root project's deploy config ui5-deploy.yaml contains:
builder:
resources:
excludes:
- "/resources/**/test/**"
- "/resources/**/localService/**"
- "/test-resources/**"
The build is executed with:
ui5 build --workspace=local --all --clean-dest --dest <dist> --config ui5-deploy.yaml
Background: the dependency projects intentionally do not define builder.resources.excludes in their own ui5.yaml, because their unit and integration test resources must remain available when running the dev server.
Actual behavior
The final dist output still contains test resources from workspace dependencies.
Examples:
- component dependencies still contribute files under:
/resources/<namespace>/test/**
- library dependencies still contribute files under:
/test-resources/<namespace>/**
Typical examples in the generated output include:
/resources/.../test/testsuite.qunit.html/resources/.../test/Test.qunit.html/resources/.../test/unit/unitTests.qunit.js/test-resources/.../testsuite.qunit.js
So the root application's excludes do not prevent dependency test assets from being written to the final build result.
Expected behavior
Currently, builder.resources.excludes being evaluated per project, not globally across the composed build.
It should be considered if a root-project builder.resources.excludes should also be honored for dependency outputs written into the final build result, including both library and component dependencies.
Why this is problematic
For deploy packaging, the root application project is often the place where the final artifact is assembled.
In that setup, it is natural to expect deploy-specific excludes from the root application config to remove test assets from the final bundle, including assets contributed by:
- local
componentdependencies - local
librarydependencies
Without that, users have to either:
- duplicate deploy-only excludes in every dependency project,
- maintain separate deploy configs for every dependency, or
- post-process the dist folder to remove test artifacts
Minimal reproduction
- Create a UI5 workspace with:
- one root project of type
application - one local dependency of type
componentcontaining test files - one local dependency of type
librarycontaining test files
- one root project of type
- Add the dependencies to the root project
- Configure the root
ui5-deploy.yamlwith:
builder:
resources:
excludes:
- "/resources/**/test/**"
- "/test-resources/**"
- Run:
ui5 build --workspace=local --all --config ui5-deploy.yaml --clean-dest
- Inspect the output and observe that:
- component dependency test resources are still present under
/resources/.../test/** - library dependency test resources are still present under
/test-resources/.../**
- component dependency test resources are still present under
- Ngôn ngữ chính
- JavaScript
- Star
- 511
- Fork
- 83
- Merge trung bình
- 1 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 55
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của UI5/cli
-
module/ui5-builder
-
Build cache: buildThemes cache is invalidated by irrelevant library.js / .library content changes Đang mởmodule/ui5-builder module/ui5-fs module/ui5-project
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
-
module/ui5-project
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 64/100
-
roadmap
Issue tương tự
-
Update HugeIcons library Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
antfu-collective/icones#398 ·
-
ECmail.com Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
wesbos/burner-email-providers#554 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
components-web-app/docs#92 ·