Skip to content

Commit cce3d79

Browse files
Display build warnings before updating the bundle
1 parent 57eacce commit cce3d79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/wrangler/src/dev/use-esbuild.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,16 @@ export function useEsbuild({
138138
return;
139139
}
140140

141+
if (warnings.length > 0) {
142+
logBuildWarnings(warnings);
143+
}
144+
141145
if (!bundled) {
142146
// First bundle, no need to update bundle
143147
bundled = true;
144148
} else {
145149
await updateBundle();
146150
}
147-
148-
if (warnings.length > 0) {
149-
logBuildWarnings(warnings);
150-
}
151151
});
152152
},
153153
};

0 commit comments

Comments
 (0)