Skip to content

Conversation

@mcollovati
Copy link
Contributor

No description provided.

@mcollovati mcollovati added the flow label Aug 8, 2025
@github-actions
Copy link

github-actions bot commented Aug 8, 2025

AI Language Review

In the "vaadin-plugin-properties" section, under `optimizeBundle`, the default value for this property has been updated from an implicit `false` in the old version to an explicit `true` in the new version. Ensure users are aware of this change, as it may affect the build output if they rely on the default behavior.

Additionally, consider adding a clarifying note in the description to inform users about the potential increase in build time when optimizing bundles due to bytecode scanning. This information was present in the `devmode.optimizeBundle` property description in the main "Properties Defined" table, but it should also be included here to maintain comprehensive and consistent documentation.

In general, ensure consistency between the main properties table and the Vaadin Plugin Properties table for shared settings.

@peholmst peholmst added the target/main cherry pick to main branch label Aug 8, 2025
@mshabarov mshabarov self-requested a review August 11, 2025 11:41
|`vaadin.devmode.optimizeBundle`
|Optimizes frontend resource bundles. All frontend resources in the classpath are included by default in the generated bundle in development mode. When set to `true`, the frontend build creates an optimized bundle by including only frontend resources that are used from the application entry points. It uses bytecode scanning, which increases application start-up time. Set to `false` to skip the optimization in production mode.
|`false`
|`true`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem correct to me.
devmode.optimizeBundle is false by default (dev mode) whereas optimizeBundle build parameter is true.
I'd rather add optimizeBundle with true default into the Vaadin Plugin Properties section.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! Let me fix the PR as suggested

@mcollovati mcollovati requested a review from mshabarov October 20, 2025 13:39
@mshabarov mshabarov merged commit e38f32e into v24 Oct 21, 2025
4 checks passed
@mshabarov mshabarov deleted the fix/optimizeBundle-default-value branch October 21, 2025 06:43
vaadin-bot pushed a commit that referenced this pull request Oct 21, 2025
* fix: fix default value of optimizeBundle setting

* apply review suggestions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants