Skip to content

Commit

Permalink
fix(hmr/css): fix infinite recursion on hmr (#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdinando-ferreira committed Jun 19, 2021
1 parent 7362e6e commit 0d5726f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ async function compileCSS(
if (preprocessResult.deps) {
preprocessResult.deps.forEach((dep) => {
// sometimes sass registers the file itself as a dep
if (dep !== opts.filename) {
if (normalizePath(dep) !== normalizePath(opts.filename)) {
deps.add(dep)
}
})
Expand Down

0 comments on commit 0d5726f

Please sign in to comment.