Open eu-sou-o-duardo opened 1 year ago
When I hit save the therminal shows [vite] page reload partiasl/fine.html but the browser never reloads.
[vite] page reload partiasl/fine.html
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
partialsSet.has(file)
Any update on this?
Any update?
this fork seems to work https://www.npmjs.com/package/@agilebot/vite-plugin-handlebars
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:
Suggestion: Remove the check
partialsSet.has(file)
, looks like its no necessary