vite-plugin-handlebars
vite-plugin-handlebars copied to clipboard
Reloading not happening when partial changes (windows 10)
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:
The values (set and filename) being checked:
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
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
Any update on this?
Any update?