Skip to content

Commit 8af9d73

Browse files
fix: hide export note behind debug bindings flag (#256)
1 parent 0071816 commit 8af9d73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/componentize.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,11 @@ export async function componentize(
140140
// manual implementation of wasi:http/incoming-handler, so we should
141141
// disable fetch-event
142142
if (features.has('http') && detectedExports.has('incomingHandler')) {
143-
console.error(
144-
'Detected `incomingHandler` export, disabling fetch-event...',
145-
);
143+
if (debugBindings) {
144+
console.error(
145+
'Detected `incomingHandler` export, disabling fetch-event...',
146+
);
147+
}
146148
features.delete('fetch-event');
147149
}
148150

0 commit comments

Comments
 (0)