Commit df145bb
This PR cherry-picks changes from the original PR #24851 to branch 25.2.
---
#### Original PR description
> ## What changed
>
> `flow-react` and `flow-dnd` shipped their `@JsModule` bundle sources
(`ReactRouterOutletElement.tsx` and `dndConnector.js`) under the
deprecated `META-INF/resources/frontend/` location. With recent builds
this triggers a per-jar deprecation warning.
>
> - Moved `ReactRouterOutletElement.tsx` and `dndConnector.js` to
`META-INF/frontend/`, the current location for `@JsModule`/`@CssImport`
bundle sources.
> - Updated the `ReactRouterOutlet` entry-point detection in
`FrontendDependencies` to resolve the resource from the new location,
falling back to the legacy `META-INF/resources/frontend/` location for
backwards compatibility with older add-on jars.
>
> ## Why
>
> Eliminates the per-jar deprecation warning emitted during the build
while keeping older add-on jars (which still ship sources in the legacy
location) working.
>
> Fixes #24848
Co-authored-by: totally-not-ai[bot] <290682512+totally-not-ai[bot]@users.noreply.github.com>
1 parent e0e70fb commit df145bb
3 files changed
Lines changed: 4 additions & 2 deletions
File tree
- flow-build-tools/src/main/java/com/vaadin/flow/server/frontend/scanner
- flow-dnd/src/main/resources/META-INF/frontend
- flow-react/src/main/resources/META-INF/frontend
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| |||
0 commit comments