Skip to content

Commit 7819ebb

Browse files
authored
fix: call-stack-exceeded introduced in #372 (#374)
1 parent b523d75 commit 7819ebb

File tree

1 file changed

+2
-1
lines changed
  • packages/vite-plugin-svelte/src/utils

1 file changed

+2
-1
lines changed

packages/vite-plugin-svelte/src/utils/log.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,10 @@ export function logCompilerWarnings(
123123
const extra = buildExtraWarnings(warnings, isBuild);
124124
const allWarnings = [...notIgnored, ...extra];
125125
if (sendViaWS) {
126+
const _warn = warn;
126127
warn = (w: Warning) => {
127128
handledByDefaultWarn.push(w);
128-
warn(w);
129+
_warn(w);
129130
};
130131
}
131132
allWarnings.forEach((warning) => {

0 commit comments

Comments
 (0)