Skip to content

Commit 32795f4

Browse files
Merge pull request #1315 from mungodewar/stub-console-entirely
include the entire console api in the production stub
2 parents b1d5f4a + 2ea8222 commit 32795f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/registry/routes/helpers/get-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ export default function getComponent(conf: Config, repository: Repository) {
491491
(...args: unknown[]) => unknown
492492
>
493493
},
494-
console: conf.local ? console : { log: _.noop },
494+
console: conf.local ? console : Object.fromEntries(Object.keys(console).map(key => [key, _.noop])),
495495
setTimeout,
496496
Buffer
497497
};

0 commit comments

Comments
 (0)