Changes since 24.0.0.rc2
Fixes
-
Not throw for not yet copied CSS when checking for re-bundling (CP: 24.0)
Commit · Pull requestWhen the stylesheet is imported by
AtCssImport
fromsrc/main/resources/META-INF/resources/frontend
, the Flow copies the stylesheets tofrontend/generated/jar-resources
in Vite dev server mode, and only then checks that the needed files are present.
For the dev bundle mode, these kind of files are checked even before any of the tasks run (when Flow check if re-bundling is needed), so before these files are copied.
The fix is to makeGenerateMainImports
ignore missing files, because this class only runs for checking dev bundle and the absence of files is expected. -
Skip checking @vaadin/flow-frontend package
Commit · Pull request@vaadin/flow-frontend package was used in previous Vaadin versions to alias .target/flow-frontend folder. Since it is present only under "dependencies" object, Flow cannot decide was it added by user or not. Now Flow ignores this legacy package to not re-bundle erroneously.
-
Exclude Vite specific import parameters for project's file imports (CP: 24.0)
Commit · Pull requestExcludes parameters added by Vite (e.g.
?inline
) forfrontendFiles
entries in thestats.json
of dev-bundle.
These parameters cause a mistake in import string comparison and false re-bundling.