You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Updates to global style do not get rebuilt in watch mode on windows. #4898
Stencil in watch mode does not rebuild when config.globalStyle is updated on windows. This is because buildCtx.filesChanged is normalised but config.globalStyle is not so the string compare fails. This probably effecting imports as well however i don't use them in my project so haven't checked.
Here is the diff that solved my problem:
diff --git a/node_modules/@stencil/core/compiler/stencil.js b/node_modules/@stencil/core/compiler/stencil.js
index aa7fe89..2e0da39 100644
--- a/node_modules/@stencil/core/compiler/stencil.js+++ b/node_modules/@stencil/core/compiler/stencil.js@@ -226142,7 +226142,7 @@ const canSkipGlobalStyles = async (config, compilerCtx, buildCtx) => {
if (buildCtx.isRebuild && !buildCtx.hasStyleChanges) {
return true;
}
- if (buildCtx.filesChanged.includes(config.globalStyle)) {+ if (buildCtx.filesChanged.includes(normalizePath$2(config.globalStyle))) {
// changed file IS the global entry style
return false;
}
Thanks for the issue report. It looks like this bug report may have been generated using patch-package - could you please use our issue template to create a new issue? We kindly ask that folks fill that out to better root cause bugs and having something concrete to test against when we do have a fix. Thanks!
Thanks for the issue! It appears that you have not filled out the provided issue template. We use this issue template in order to gather more information and further assist you. Please create a new issue and ensure the template is fully filled out.
Activity
rwaskiewicz commentedon Oct 5, 2023
👋 Hey there!
Thanks for the issue report. It looks like this bug report may have been generated using
patch-package- could you please use our issue template to create a new issue? We kindly ask that folks fill that out to better root cause bugs and having something concrete to test against when we do have a fix. Thanks!ionitron-bot commentedon Oct 5, 2023
Thanks for the issue! It appears that you have not filled out the provided issue template. We use this issue template in order to gather more information and further assist you. Please create a new issue and ensure the template is fully filled out.
Thank you for using Stencil!