Skip to content

Commit

Permalink
fix: call-stack-exceeded introduced in #372 (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Jun 9, 2022
1 parent b523d75 commit 7819ebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite-plugin-svelte/src/utils/log.ts
Expand Up @@ -123,9 +123,10 @@ export function logCompilerWarnings(
const extra = buildExtraWarnings(warnings, isBuild);
const allWarnings = [...notIgnored, ...extra];
if (sendViaWS) {
const _warn = warn;
warn = (w: Warning) => {
handledByDefaultWarn.push(w);
warn(w);
_warn(w);
};
}
allWarnings.forEach((warning) => {
Expand Down

0 comments on commit 7819ebb

Please sign in to comment.