Skip to content

feat: add local web components plugin to vite.generated.ts (#23793) (CP: 25.1)#23860

Merged
vaadin-bot merged 1 commit into25.1from
cherry-pick-23793-to-25.1-1773391257375
Mar 13, 2026
Merged

feat: add local web components plugin to vite.generated.ts (#23793) (CP: 25.1)#23860
vaadin-bot merged 1 commit into25.1from
cherry-pick-23793-to-25.1-1773391257375

Conversation

@vaadin-bot
Copy link
Collaborator

This PR cherry-picks changes from the original PR #23793 to branch 25.1.

Original PR description

Auto-detects a web-components/node_modules directory in the project root and redirects @polymer/* and @vaadin/* imports to it in dev mode. A custom folder can be specified through vite.config.ts using the
overrideVaadinConfig mechanism.

* feat: add local web components plugin to vite.generated.ts

Auto-detects a web-components/node_modules directory in the project
root and redirects @polymer/* and @vaadin/* imports to it in dev mode.
A custom folder can be specified through vite.config.ts using the
overrideVaadinConfig mechanism.

* refactor: extract local web components plugin to separate file

Follows the same pattern as other plugins in
flow-build-tools/src/main/resources/plugins/.

* Register plugin

* Plugin package.json

* Apply suggestions from code review

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>

* Fix test

---------

Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
@vaadin-bot
Copy link
Collaborator Author

This PR is eligible for auto-merging policy, so it has been approved automatically. If there are pending conditions, auto merge (with 'squash' method) has been enabled for this PR [Message is sent from bot]

@vaadin-bot vaadin-bot enabled auto-merge (squash) March 13, 2026 08:51
@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

 1 384 files  ±0   1 384 suites  ±0   1h 25m 52s ⏱️ - 1m 38s
 9 905 tests ±0   9 834 ✅ ±0  71 💤 ±0  0 ❌ ±0 
10 378 runs  ±0  10 298 ✅ ±0  80 💤 ±0  0 ❌ ±0 

Results for commit 955c56e. ± Comparison against base commit 63ec641.

@vaadin-bot vaadin-bot merged commit 2b09827 into 25.1 Mar 13, 2026
30 checks passed
@vaadin-bot vaadin-bot deleted the cherry-pick-23793-to-25.1-1773391257375 branch March 13, 2026 08:57
@vaadin-bot
Copy link
Collaborator Author

This ticket/PR has been released with Vaadin 25.1.0-rc2.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants