Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: regenerate theme files if not existing during Vite resolution #14307

Merged
merged 1 commit into from Aug 10, 2022

Conversation

mcollovati
Copy link
Collaborator

It may happen that when Vite analyses imports for theme.js file,
they are not yet generated of filesystem and this make compilation
fail.
This change checks for theme.js imports existence, and if not present
forces theme generation process

Should fix ThemeSwitchLiveReloadIT flakiness

It may happen that when Vite analyses imports for theme.js file,
they are not yet generated of filesystem and this make compilation
fail.
This change checks for theme.js imports existence, and if not present
forces theme generation process
@sonarcloud
Copy link

sonarcloud bot commented Aug 10, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 10 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

Unit Test Results

   917 files  ±0     917 suites  ±0   52m 2s ⏱️ -26s
6 008 tests ±0  5 954 ✔️ ±0  54 💤 ±0  0 ±0 
6 221 runs   - 2  6 159 ✔️  - 2  62 💤 ±0  0 ±0 

Results for commit 3dc9e61. ± Comparison against base commit fccffb2.

@mshabarov mshabarov merged commit 1d604ad into master Aug 10, 2022
@mshabarov mshabarov deleted the fix/theme_regeneration_on_themejs_missing_deps branch August 10, 2022 09:47
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 23.2.0.beta1 and is also targeting the upcoming stable 23.2.0 version.

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.

None yet

3 participants