vite-plugin-handlebars icon indicating copy to clipboard operation
vite-plugin-handlebars copied to clipboard

Reloading not happening when partial changes (windows 10)

Open eu-sou-o-duardo opened this issue 1 year ago • 3 comments

When I hit save the therminal shows [vite] page reload partiasl/fine.html but the browser never reloads.

I did a investigation I found out that there is a check if the file changed must trigger a full-reload, and that check is broken. At least at windows.

The check: image

The values (set and filename) being checked: image

For some reason, the slashes are the being misplaced.

I have noticed that the problem appear immediately after the partial filename has been added to the set

image

image

My vite config is the following:

export default defineConfig({
  root: "src",
  assetsInclude: ["/src/partials/*"],
  plugins: [
    handlebarsPlugin({
      partialDirectory: resolve(__dirname, "src/partials"),
    }),
  ],
});

Suggestion: Remove the check partialsSet.has(file), looks like its no necessary

eu-sou-o-duardo avatar Jun 08 '23 14:06 eu-sou-o-duardo

Any update on this?

Raven0us avatar Feb 22 '24 14:02 Raven0us

Any update?

owaisahmed5300 avatar Apr 15 '24 09:04 owaisahmed5300