Repository navigation
fix: bundle the Video and Audio JS definitions in the optimized prod bundle - #9966
Merged
Merged
Conversation
…bundle Flow 25.5 (vaadin/flow#27158) gives Media, the base of Video and Audio, JavaScript definitions for its playback controls and state. No view of the prod bundle uses Video or Audio, so an optimized build left their functions out, while the unoptimized bundle, which scans the whole class path, carried them. AllComponentsIncludedTest.compareStatsWithUnoptimized fails on the hash of generated/vaadin-js-definitions.js. Name Audio and Video with @uses, which bundles those definitions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcollovati
approved these changes
Dec 2, 2026
ZheSun88
added a commit
that referenced
this pull request
Dec 2, 2026
…bundle (#9966) (#9967) Flow 25.5 (vaadin/flow#27158) gives Media, the base of Video and Audio, JavaScript definitions for its playback controls and state. No view of the prod bundle uses Video or Audio, so an optimized build left their functions out, while the unoptimized bundle, which scans the whole class path, carried them. AllComponentsIncludedTest.compareStatsWithUnoptimized fails on the hash of generated/vaadin-js-definitions.js. Name Audio and Video with @uses, which bundles those definitions. Co-authored-by: Zhe Sun <zhe@vaadin.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AllComponentsIncludedTest.compareStatsWithUnoptimizedfails on main since vaadin/flow#27158 (playback control and state for Video and Audio), e.g. in the PR validation of #9955:Media, the base ofVideoandAudio, now declares JavaScript definitions forplay,pause,load, seeking and the playback state. No view of the prod bundle usesVideoorAudio, so the optimized build leaves those functions out, while the unoptimized bundle, which scans the whole class path, carries them.Same kind of fix as #9937: name
AudioandVideowith@UsesinFakeAppConf.Test plan
mvn -Pproduction,ee,oss -pl :vaadin-prod-bundle installpassesAllComponentsIncludedTest(2 tests, 0 failures).🤖 Generated with Claude Code